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

st: RE: FW: RE: stepwise regression with force statment


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: FW: RE: stepwise regression with force statment
Date   Fri, 6 Jun 2003 19:31:04 +0100

Liping Huang
 
> Thanks for Nick's suggestion.  Sorry I didn't state clear 
> for what is the
> reasons make me to think about using stepwise regression 
> model but force the
> model including some variables.  In fact, before running 
> the model, I've
> done all different tests and cautiously selected the 
> variables that I'd like
> to put into the model.   Although I've know some of variables are
> significant in the model, however, for the purpose of 
> showing the entire
> relationship of a dependent variable with a group of length of stay
> variables, such as 10 days, 20 days, and etc, to someone 
> else, I'd like to
> force these variables into to model.   That's the story.
> 
> Actually I found the code about how to doing it:
> 
> sw regress depvar (var1-var3) var4 ..., pr(.05)  lockterm1
> 

You are correct; my oversight entirely about the syntax. 
I still commend Harrell's discussion. 

Nick 
[email protected] 

*
*   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