Re: [R] Applying lm to data with combn

2008-02-10 Thread Henrique Dallazuanna
I think that what you want do is stepwise, see step function On 09/02/2008, AliR <[EMAIL PROTECTED]> wrote: > > Thank you, can you suggest wht is the shortest way to store the combination > with min residual error term? > > > > AliR wrote: > > > > http://www.nabble.com/file/p15359204/test.data.cs

Re: [R] Applying lm to data with combn

2008-02-09 Thread AliR
Thank you, can you suggest wht is the shortest way to store the combination with min residual error term? AliR wrote: > > http://www.nabble.com/file/p15359204/test.data.csv > http://www.nabble.com/file/p15359204/test.data.csv test.data.csv > > Hi, > > I have used apply to have certian co

Re: [R] Applying lm to data with combn

2008-02-08 Thread Henrique Dallazuanna
I think what you want is this: lapply(apply(combn(5, 4), 2, function(x)mD[,x]), function(x)lm(X.SSMII ~ ., data=x)) On 08/02/2008, AliR <[EMAIL PROTECTED]> wrote: > > http://www.nabble.com/file/p15359204/test.data.csv > http://www.nabble.com/file/p15359204/test.data.csv test.data.csv > > Hi, >

[R] Applying lm to data with combn

2008-02-08 Thread AliR
http://www.nabble.com/file/p15359204/test.data.csv http://www.nabble.com/file/p15359204/test.data.csv test.data.csv Hi, I have used apply to have certian combinations, but when I try to use these combinations I get the error [Error in eval(expr, envir, enclos) : object "X.GDAXI" not found].