Like this?
tsset year, yearly
forv x = 0/10 {
qui reg tcnorm L`x'.nihfunding
di "Vars: `: colnames(e(b))'"
di "R^2" e(r2)
}
see also -help ereturn-
On 3/8/07, [email protected] <[email protected]> wrote:
Hi, I am performing the following instructions on my data set:
tsset year, yearly
forvalues x = 0/10 {
regress tcnorm L`x'.nihfunding
}
and the only output that I'm concerned about is the r^2 values (adjusted
and non).
Is there a way to make it only output the variables (to verify the number
of years lagged) and the r^2 values?
*
* 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/