Re: [R] regsubsets() [leaps package] - please share some good examples of use

2011-03-15 Thread Thomas Lumley
On Wed, Mar 16, 2011 at 3:18 AM, agent dunham wrote: > Does it mean that regsubsets doesn't work with categorical variables? No. > It's because I'm trying the following and I don't know what happens. Any > help would be appreciated. > > varin <- data.frame(v1,v2,...,v7, factor1,..., factor4) > >

Re: [R] regsubsets() [leaps package] - please share some good examples of use

2011-03-15 Thread agent dunham
Does it mean that regsubsets doesn't work with categorical variables? It's because I'm trying the following and I don't know what happens. Any help would be appreciated. varin <- data.frame(v1,v2,...,v7, factor1,..., factor4) Dependent variable: height Then: eu.subsets <- regsubsets(varinc ,

Re: [R] regsubsets() [leaps package] - please share some good examples of use

2009-03-13 Thread Thomas Lumley
On Fri, 13 Mar 2009, Tal Galili wrote: Thanks Thomas. Assuming I want to change the "k" factor (used in AIC type procedures), is there a way to do that ? There is no "k" factor in the leaps algorithm. It always reports the best model with one predictor, the best model with two predictors, th

Re: [R] regsubsets() [leaps package] - please share some good examples of use

2009-03-12 Thread Tal Galili
Thanks Thomas. Assuming I want to change the "k" factor (used in AIC type procedures), is there a way to do that ? Also - is there a way to force the model to make only one "step" in the creation of the model ? (My aim is to be able to create an adaptive procedure, and I am looking for a way of doi

Re: [R] regsubsets() [leaps package] - please share some good examples of use

2009-03-12 Thread Thomas Lumley
If you run the example from ?biglm data(trees) ff<-log(Volume)~log(Girth)+log(Height) chunk1<-trees[1:10,] chunk2<-trees[11:20,] chunk3<-trees[21:31,] a <- biglm(ff,chunk1) a <- update(a,chunk2) a <- update(a,chunk3) summary(a) you can then do b <-regsubsets(a, method="forward") summary(b) to

[R] regsubsets() [leaps package] - please share some good examples of use

2009-03-12 Thread Tal Galili
Hello dear R-help members, I recently became interested in using biglm with leaps, and found myself somewhat confused as to how to use the two together, in different settings. I couldn't find any example codes for the leaps() package (except for in the help file, and the examples there are not as

[R] regsubsets() [leaps package] - please share some good examples of use

2009-03-11 Thread Tal Galili
Hello dear R-help members, I recently became interested in using biglm with leaps, and found myself somewhat confused as to how to use the two together, in different settings. I couldn't find any example codes for the leaps() package (except for in the help file, and the examples there are not as