Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: formatting looping regression results


From   Israel Pearce <ra.frbsf@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: formatting looping regression results
Date   Wed, 12 Sep 2012 16:28:24 -0700

Hello,

I am running regressions in a loop and want to find a good way to get
output to excel. I can't seem to work eststo and estout quite right.
Here is the idea:

Looping through an id# and 8 LHS varibles (RHS variables are the same)
leaves me with 8 regressions per id from which I want a b, se, r2, N.

Ideally, I want to save them as
id#1
b1 (reg1) b1(reg2) b1(reg3)................
se (reg1) se(reg2)..................
b2 (reg1).................................
se2 (reg1)...................
r2(reg1)
N(reg1)

id#2
b1(reg1)
se(reg1) etc....

In general would eststo and estout work here? I am having trouble
creating an identifier for each regression using that, and then
understanding how to stack it how I want to. Thanks!
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index