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

st: swboot with categorial variables


From   M.vanOnna@INTMED.unimaas.nl
To   statalist@hsphsun2.harvard.edu
Subject   st: swboot with categorial variables
Date   Thu, 24 Jun 2004 17:40:09 +0200

Dear STATA-users,

I tried to use swboot in order to validate the choice of variables in
stepwise logistic regression analysis. However, one of the variables (xvar3)
that I potentially want to include in the model, is categorial. How can I
make sure that the two categories are either both included or both excluded
(instead of just one) at each repetition?

I already unsuccesfully tried:

xi: swboot yvar xvar1 xvar2 (i.xvar3) xvar4 xvar5 xvar6 xvar7, reps(#)
forward roc

and 

swboot yvar xvar1 xvar2 (xvar3_dummy1 xvar3_dummy2) xvar4 xvar5 xvar6 xvar7,
reps(#) forward roc

Any help would be greatly appreciated.

Kind regards,

Marieke
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index