Re: [R] stepwise on generlized linear model

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Mon 17 Oct 2005 - 19:03:18 EST

On Sun, 16 Oct 2005, Weijie Cai wrote:

> Can anybody give me a quick answer that whether step() can be directly
> applied to a glm model including both continuous variables and categorical
> variables (by factor())? Maybe my data is not suitable, I applied step() on
> my glm object and did not get any reduction (i.e., returned full model).

Yes, it can. There are examples in e.g. MASS4.

-- 
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 Mon Oct 17 19:23:35 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 18:58:55 EST