Statalist The Stata Listserver


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

Re: st: Regression r^2 output


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: Regression r^2 output
Date   Thu, 8 Mar 2007 14:55:23 -0500

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index