[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Can we collect the R^2 (R-squared) of a OLS regressionwith statsby?
statsby _b _se r2 = e(r2_a), by (x1) saving(my_rg): regress x2 x3 x4
where e(r2_a) is the saved r2 from the regression. You could also do
this with the many other saved results.
On Sun, 6 Aug 2006 23:59:16 +0800
?? <firstname.lastname@example.org> wrote:
JS>I use stata 9 intercool to regress a panel data. And I can collect
JS>coefficients and standard errors for every regression like this:
JS> statsby _b _se, by (x1) saving(my_rg): regress x2 x3 x4
JS>But how can I collect the R^2 (R-squared) with statsby? And the
JS>Thanks a lot.
JS>* For searches and help try:
Department of Economics
Phone: (905) 962-0353
* For searches and help try: