On 18.07.2012 18:03, Mati Bielawski wrote:
> I would like to know how to use the keep parameter in the step function. Or
> the way to always keep one of my Xs, and the other Xs to be keep or not by
> step forward method.
See ?step and in particular the "lower" part of its scope argument:
step(...., scope = list(lower = ~ XtoKeep, upper = ~ X1 + X2 + etc))
Best,
Uwe Ligges
______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide
http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code.