Re: [R] bootstrapping - number of items to replace is not a multiple of replacement length

2008-09-10 Thread Gabriela Bucini
HI Steve, I've checked the random forest package. The VariableImportance does exactly what I need. Thank you so much! Gabriela -Original Message- From: Steven McKinney [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2008 8:48 PM To: Gabriela Bucini; r-help@r-project.org

[R] bootstrapping - number of items to replace is not a multiple of replacement length

2008-09-09 Thread Gabriela Bucini
Hello, I'm new to boostrapping and I'd need some help to understand the error message that pops up when I run my script. I have a data.frame with 73 lines and 21 column. I am running a stepwise regression to find the best model using the R function step. I apply bootstrapping to obtain model

Re: [R] bootstrapping - number of items to replace is not a multiple of replacement length

2008-09-09 Thread Steven McKinney
Hello, Your theta() function is returning different sets of coefficients depending on the results of step(). You'll need to add code to theta() to figure out which variables were selected, and store them into the right positions of a vector of length 20 (the apparent number of covariates you