Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Getting a varlist of included variables in estimation


From   "Hendri Adriaens" <[email protected]>
To   <[email protected]>
Subject   st: Getting a varlist of included variables in estimation
Date   Tue, 31 Jul 2007 11:47:40 +0200

Hello,

I have a lot of dummies in a dataset. I include them all during estimation,
but depending on the subsample that I do the estimation on, some are dropped
automatically due to multicollinarity. I would like to quickly test all
dummies that are included in the model, with a for loop over the included
dummies. But how do I get a varlist of the included dummies?

Example:
sysuse auto
dummieslab rep78
gen test=rep78_2
gen hp=0
replace hp=1 if price>9000
regress hp rep78_2 test

Now test is dropped. I would like to run a for loop over the left over
variables in the estimation.

Thank you in advance, best regards,
-Hendri.

---------------------------------------- 
Hendri Adriaens 
Researcher CentERdata 
Tilburg University 
Room K638 
Postal address:   PO Box 90153, 5000 LE
Visiting address: Warandelaan 2, 5037 AB 
Tilburg, The Netherlands 
Tel.: +31-13-466 3263 / 8325
Fax.: +31-13-466 2764 
E-mail: [email protected]
WWW: http://www.centerdata.nl


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