Skip to content
Prev 205185 / 398506 Next

Please help me!!!! Error in `[.data.frame`(x, , retained, drop = FALSE) : undefined columns selected

Your data set has 217 predictors and 166 samples. If you read the
vignette on feature selection for this package, you'll see that the
default ranking mechanism that it uses for linear models requires a
linear model fit. The note that:

   >  prediction from a rank-deficient fit may be misleading

should tell you something. If it doesn't: the model fit is over
determined and there is no unique solution, so many of the parameter
estimates are NA.

Either create a modified version of lmFuncs that suits your needs or
remove variables prior to modeling (or try some other method that
doesn't require more samples than predictors, such as the lasso or
elasticnet).

Max
On Fri, Jan 1, 2010 at 10:14 PM, bbslover <dluthm at yeah.net> wrote: