[R] mypredict.

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Jun 24 09:35:18 CEST 2005


Jenny Edmondson wrote:

> Hi,
> 
> I am wondering what does "mypredict.lda<-function(object, 
> newdata)predict(object, newdata=newdata)$class" actually do?
> 
> I run a few errorest commands in the same function on the same dataset using 
> the same classifier lda. The only difference is some use "cv", other use 
> "boot" and "632plus". They all share one mypredict.lda.
> 
> Will it cause any problem?


No.

mypredict.lda() is a wrapper for errorest() which expects to get the 
class from predict(), but not all the other "stuff" predict.lda() provides.

Uwe Ligges



> Regards, justin
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list