Re: [R] Error of Stepwise Regression with number of rows in use has changed: remove missing values?

2010-02-22 Thread Kum-Hoe Hwang
This solution such as data-na.omit(original database) before you run step() or stepAIC() has some limitations, I think. I reduced the number of data lines, and it enhance R square value. If you have some tips or advices for another solution, I welcome. Kum Urban and Regional Planning, GRI On

Re: [R] Error of Stepwise Regression with number of rows in use has changed: remove missing values?

2010-02-19 Thread Greg Snow
Have you considered the implications of that solution? -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- project.org] On Behalf Of Kum-Hoe

Re: [R] Error of Stepwise Regression with number of rows in use has changed: remove missing values?

2010-02-17 Thread Kum-Hoe Hwang
I thank those who helped to solve a error in stepwise regression with missing values. Kum * * A good solution that I have tried was Andreas's advice. = Try data-na.omit(original database) before you run step() or stepAIC()

Re: [R] Error of Stepwise Regression with number of rows in use has changed: remove missing values?

2010-02-17 Thread Kum-Hoe Hwang
Sorry for my faulty email and another correct email I thank those who helped to solve a error in stepwise regression with missing values. A good solution that I have tried was Andreas's advice. = Try data-na.omit(original

[R] Error of Stepwise Regression with number of rows in use has changed: remove missing values?

2010-02-16 Thread Kum-Hoe Hwang
Howdy, R Grues I have enjoyed R, but I cannot solve one problem easily. Please help my problem. When I tried the R script, I got the following Error. This error results from input data file exported through a Excel spreadsheet software. Error in step(lm(pop.rate ~ as.numeric(year) +

Re: [R] Error of Stepwise Regression with number of rows in use has changed: remove missing values?

2010-02-16 Thread Mohamed Lajnef
Hi Kum, If you look at the code step function ( by typing step in the R console), the condition (if (length(fit$residuals) != n) ) is not fulfilled, this explains the error! i hope this can help Regards M Kum-Hoe Hwang a écrit : Howdy, R Grues I have enjoyed R, but I cannot solve one

Re: [R] Error of Stepwise Regression with number of rows in use has changed: remove missing values?

2010-02-16 Thread Peter Ehlers
On 2010-02-16 1:24, Kum-Hoe Hwang wrote: Howdy, R Grues I have enjoyed R, but I cannot solve one problem easily. Please help my problem. When I tried the R script, I got the following Error. This error results from input data file exported through a Excel spreadsheet software. Error in