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" <>
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, <> 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:

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