Quantcast

keep parameter in step function

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

keep parameter in step function

matibie
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.
Thank you all
Mati Bielawski

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: keep parameter in step function

Uwe Ligges-3


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




> Thank you all
> Mati Bielawski
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] 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.
>

______________________________________________
[hidden email] 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.
Loading...