[R] keep parameter in step function

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Jul 18 18:11:04 CEST 2012

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))

Uwe Ligges

> Thank you all
> Mati Bielawski
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list