Skip to content
Prev 28680 / 398500 Next

PRESS again

library(ipred)
errorest(y ~., data=mydata, model=lm, estimator="cv",
               est.para=control.errorest(k=nrow(mydata)))

does the job, given that your data is organized in a data.frame "mydata"
with numeric response "y".

Torsten