[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: re: getting a list of included variables in estimation
Maarten's point re _rmcoll is well taken, but that merely means you  
should clean up the regressor list before doing the regression:
local regressors mpg mpg2 turn turn2
_rmcoll `regressors'
regress price `r(varlist)'
local vv :  colnames e(b)
local vv: subinstr local vv "_cons" " "
foreach v of local vv {
	test `v'
}
Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html
*
*   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/