Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: forcing variables into a stepwise logistic regression


From   "Cram, Peter" <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: forcing variables into a stepwise logistic regression
Date   Thu, 4 Mar 2004 15:40:21 -0600

Dear Statalist,

using the command:

sw logistic mort30 var1 var2 varX, i can perform stepwise logistic
regression.

i can insure that var1 is included in my final model by doing:  
sw logistic mort30 var1 var2 varX, lockterm1


but if i want to force both var1 and var2 into my model, the sw command does
not seem to allow this (e.g.
sw logistic mort30 var1 var2 varX, lockterm1 lockterm2

gives an error message.


how can i force both var1 and var2 into my model and still do a stepwise
regression.

thanks,

pete
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index