[R] Stepwise analysis with fixed variables

2012-12-02 Thread rahul143
Hello, How can I run a backward stepwise regression with part of the variables fixed, while the others participate in the backward stepwise analysis? Thank you - TO GET MORE DETAILS CLICK HERE -- View this message in context: http://r.789695.n4.nabble.com/Stepwise-analysis-with-fixed-vari

Re: [R] Stepwise analysis with fixed variables

2012-11-22 Thread Einat
Thanks. -- View this message in context: http://r.789695.n4.nabble.com/Stepwise-analysis-with-fixed-variables-tp4650015p4650419.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/m

Re: [R] Stepwise analysis with fixed variables

2012-11-21 Thread PIKAL Petr
eter alpha in a step function. Regards Petr > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Einat > Sent: Wednesday, November 21, 2012 1:41 PM > To: r-help@r-project.org > Subject: Re: [R] Stepwise a

Re: [R] Stepwise analysis with fixed variables

2012-11-21 Thread Marc Schwartz
On Nov 21, 2012, at 6:41 AM, Einat wrote: > These are my questions: > > 1. For example, if this is my code: > >> RegModel = > lm(glucose~sex+BMI+height+weight+education+ses,weight=w_without_non_response) >> summary(RegModel) >> step(RegModel, direction ="backward",scope=list(lower=?,upper=?)

Re: [R] Stepwise analysis with fixed variables

2012-11-21 Thread Einat
These are my questions: 1. For example, if this is my code: >RegModel = lm(glucose~sex+BMI+height+weight+education+ses,weight=w_without_non_response) >summary(RegModel) >step(RegModel, direction ="backward",scope=list(lower=?,upper=?)) and I want the sex and height variables to be fixed, but

Re: [R] Stepwise analysis with fixed variables

2012-11-21 Thread Einat
These are my questions: 1. For example, if this is my code: >RegModel = lm(glucose~sex+BMI+height+weight+education+ses,weight=w_without_non_response) >summary(RegModel) >step(RegModel, direction ="backward",scope=list(lower=?,upper=?)) and I want the sex and height variables to be fixed, b

Re: [R] Stepwise analysis with fixed variables

2012-11-21 Thread PIKAL Petr
Hi. What questions? I do not see any. Petr > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Einat > Sent: Wednesday, November 21, 2012 9:32 AM > To: r-help@r-project.org > Subject: Re: [R] Stepwise a

Re: [R] Stepwise analysis with fixed variables

2012-11-21 Thread Einat
I am sorry, but I think my questions were forgotten. Can someone please answer them? Thank you :) -- View this message in context: http://r.789695.n4.nabble.com/Stepwise-analysis-with-fixed-variables-tp4650015p4650264.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Stepwise analysis with fixed variables

2012-11-19 Thread Einat
Thank you for the quick reply. Two more questions: 1. For example, if this is my code: >RegModel = lm(glucose~sex+BMI+height+weight+education+ses,weight=w_without_non_response) >summary(RegModel) >step(RegModel, direction ="backward",scope=list(lower=?,upper=?)) and I want the sex and height var

Re: [R] Stepwise analysis with fixed variables

2012-11-19 Thread Uwe Ligges
On 19.11.2012 08:49, Einat wrote: Hello, How can I run a backward stepwise regression with part of the variables fixed, while the others participate in the backward stepwise analysis? Thank you, Einat Read ?step and about its argument "scope" that can be a list with a "lower" component where

[R] Stepwise analysis with fixed variables

2012-11-19 Thread Einat
Hello, How can I run a backward stepwise regression with part of the variables fixed, while the others participate in the backward stepwise analysis? Thank you, Einat -- View this message in context: http://r.789695.n4.nabble.com/Stepwise-analysis-with-fixed-variables-tp4650015.html Sent fro