Message-ID: <1353325744256-4650030.post@n4.nabble.com>
Date: 2012-11-19T11:49:04Z
From: Einat
Subject: Stepwise analysis with fixed variables
In-Reply-To: <50AA043E.6020009@statistik.tu-dortmund.de>
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 variables to be fixed, but the rest of the
variables to go into the backward analysis, how should I write the scope
function?
2.How can I add an alpha level to the step function as a criterion for the
backward regression analysis?
Thank you very much,
Einat
--
View this message in context: http://r.789695.n4.nabble.com/Stepwise-analysis-with-fixed-variables-tp4650015p4650030.html
Sent from the R help mailing list archive at Nabble.com.