Re: [R] Stepwise Regression with no Origin

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Fri, 15 Apr 2011 17:28:10 +0200

On 12.04.2011 21:52, Zd Gibbs wrote:
> Sorry, the first version was incomplete. I'm trying again.
>
> I am running a regression equation and i want to enter in 12 IV then stepwise
> enter 8 variables and not have an origin.
>
> DV is "shfl".
> I want to enter in the following 12 independent dummy variables
> ajan
> bfeb
> cmar
> dapr
> emay
> fjun
>
> And then I want to enter in a stepwise fashion
> slag6
> slag7
> slag8
> slag9
> slag10
> slag11
> slag12
>
> And finally, I want there to be no origin.
>
> I've done simple regression, but nothing quite like this.

See ?step which allows to specify minimal, maximal models as well as forward stepwise selection.

BTW: Someone called Frank Harrell will shortly let you know about possible problems in model interpretation when using stepwise variable selection.

Best,
Uwe Ligges

> I would appreciate your help.
>
> Thanks
>
> Zeda
> [[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.



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. Received on Fri 15 Apr 2011 - 15:31:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 18 Apr 2011 - 12:20:32 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive