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

From: minxolee <minxolee_at_hotmail.com>
Date: Thu, 07 Apr 2011 16:08:25 -0700 (PDT)

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_at_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.
Received on Fri 08 Apr 2011 - 00:47:49 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 08 Apr 2011 - 04:40:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive