Re: [R] FW: lasso regression

2011-07-12 Thread Patrick Breheny
On 07/12/2011 09:53 AM, Heiman, Thomas J. wrote: ## define x and y x= x<-crs[,9]#predictor variables y= y<-crs[1:8,] #response variable This cannot be correct. The response variable is a vector, while the predictor variables form a matrix. You have the response variable consisting

Re: [R] FW: lasso regression

2011-07-12 Thread Steve Lianoglou
Hi, (i) As David suggested, please use `dput` to provide examples of data! (ii) The nut of your problem is that you are giving lars an object that it is not expecting. It wants a *matrix* for its `x` variable, as you'll see in the help for ?lars. So, as long as this expression: R> is.numeric(x)

Re: [R] FW: lasso regression

2011-07-12 Thread David Winsemius
On Jul 12, 2011, at 10:12 AM, Heiman, Thomas J. wrote: Hi, Hopefully I got the formatting down.. I am trying to do a lasso regression using the lars package with the following data (the data files is in .csv format): V1 V2 V3 V4

Re: [R] FW: lasso regression

2011-07-12 Thread Gavin Simpson
On Tue, 2011-07-12 at 10:12 -0400, Heiman, Thomas J. wrote: > Hi, > > Hopefully I got the formatting down.. I am trying to do a lasso regression > using the lars package with the following data (the data files is in .csv > format): > > V1 V2 V3

[R] FW: lasso regression

2011-07-12 Thread Heiman, Thomas J.
Hi, I am trying to do a lasso regression using the lars package with the following data (see attached): FastestTime WinPercentage PlacePercentage ShowPercentage BreakAverage FinishAverage Time7Average Time3Average Finish 116.90 0.14 0.14 0.29 4.43 3.29 117.56 117.77 5.00 116.23

[R] FW: lasso regression

2011-07-12 Thread Heiman, Thomas J.
Hi, Hopefully I got the formatting down.. I am trying to do a lasso regression using the lars package with the following data (the data files is in .csv format): V1 V2 V3 V4 V5 V6 V7

Re: [R] FW: lasso regression

2011-07-12 Thread David Winsemius
On Jul 12, 2011, at 9:53 AM, Heiman, Thomas J. wrote: Hi, I am trying to do a lasso regression using the lars package with the following data (see attached): Nothing attached. (And now you have also sent an exact duplicate.) snipped failed attempt to include data inline that was sabotaged

[R] FW: lasso regression

2011-07-12 Thread Heiman, Thomas J.
Hi, I am trying to do a lasso regression using the lars package with the following data: FastestTime WinPercentage PlacePercentage ShowPercentage BreakAverage FinishAverage Time7Average Time3Average Finish 116.90 0.14 0.14 0.29 4.43 3.29 117.56 117.77 5.00 116.23 0.29 0.43 0

[R] FW: lasso regression

2011-07-12 Thread Heiman, Thomas J.
Hi, I am trying to do a lasso regression using the lars package with the following data (see attached): FastestTime WinPercentage PlacePercentage ShowPercentage BreakAverage FinishAverage Time7Average Time3Average Finish 116.90 0.14 0.14 0.29 4.43 3.29 117.56 117.77 5.00 116.23