Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: formatting looping regression results


From   Israel Pearce <[email protected]>
To   [email protected]
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index