Skip to content
Back to formatted view

Raw Message

Message-ID: <20080314105237.fwl00n3rhckwok00@wm-imp-1.unl.edu>
Date: 2008-03-14T15:52:37Z
From: wkoh at bigred.unl.edu
Subject: Forward Selection with regsubsets

Hi,

I would like to perform a forward selection procedure on a data set  
with 6 observations and 10 predictors. I tried to run it with  
regsubsets (I set nvmax=number of observations) but I keep getting  
these warning messages:

Warning messages:
1: 5  linear dependencies found in: leaps.setup(x, y, wt = weights,  
nbest = nbest, nvmax = nvmax,
2: nvmax reduced to  5 in: leaps.setup(x, y, wt = weights, nbest =  
nbest, nvmax = nvmax,

I think the problem was due to inadequate observations, is there any  
way to perform subset selection in R if the number of observations are  
less than the predictors?

Thanks!

Woonyuen