Re: [R] the output of function lars

2010-12-08 Thread Peter Ehlers
I think the authors of lars could do a better job of the 'Value' section of the help page. Nevertheless, most of the list elements are pretty obvious if you understand the LARS procedure. Your questions indicate that you would benefit from studying the references listed on the help page before att

[R] the output of function lars

2010-12-08 Thread poko2000
Hi here is the code as example lars is in package lars > x<-matrix(rnorm(20*5,0,1),20,5) > bs<-matrix(sample(seq(1:10),5),5,1) > er<-rnorm(20,0,1) > y<-x%*%bs+er > lobj<-lars(x,y,type="lasso") > names(lobj) [1] "call" "type" "df" "lambda" "R2" [6] "RSS""Cp