[R] cv.lars() function in LARS package

minxolee minxolee at hotmail.com
Fri Apr 8 01:08:25 CEST 2011

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.


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.

More information about the R-help mailing list