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
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
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=?)
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
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
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
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.
__
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
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
9 matches
Mail list logo