I am trying to get familiar with the lars package and find out by repeating
the cv.lars() function, I am not getting the same result consistently. Could
someone help on that? Here is a simple reproducible example.

> library(lars)
> data(diabetes)
> attach(diabetes)
> cv.lars(x,y,K=2)
> cv.lars(x,y,K=2)

The last two runs of cv.lars give out different cross-validation plots.

Thanks,
minxolee

--
View this message in context: 
http://r.789695.n4.nabble.com/cv-lars-function-in-LARS-package-tp3434822p3434822.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to