Re: [R] missing values in step procedure

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat 08 Oct 2005 - 00:35:17 EST

On Fri, 7 Oct 2005, Andreas Cordes wrote:

> I have the problem that for the step procedure stops due to missing
> values. There are no options in Step or stepAIC to handle missing
> values. Is there any way to run stepwise modelselection in R in an
> automated way in this case?

Try the hint it gives you, or see the help page (which covers this in a warning with an explanation).

[...]

> Error in step(mod2, direction = "back") :
> number of rows in use has changed: remove missing values?

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat Oct 08 00:39:18 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:28:38 EST