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: Re: st : Formatting regression table output


From   "Narahari H.S." <[email protected]>
To   statalist <[email protected]>
Subject   st: Re: st : Formatting regression table output
Date   Sun, 3 Jun 2012 20:33:52 +0800 (SGT)

Hello all,

I came up with this indirect method to solve my problem. Thought of sharing as I did not get any replies to my mail. Code is below


foreach v in var1 var2 var3 var4 {
gen temp = `v'
reg depvar `temp' indepvar1 indepvar2 indepvar3 indepvar4
est store Model`v'
}
estout Model* using Table.tex, style(tex) order(temp)



Warm Regards
Hari

 

----- Original Message -----
From: Narahari H.S. <[email protected]>
To: statalist <[email protected]>
Cc: 
Sent: Monday, 28 May 2012 5:03 PM
Subject: Formatting regression table output

Hello all,

A simplified version of my code is below

foreach v in var1 var2 var3 var4 {
reg depvar `v' indepvar1 indepvar2 indepvar3 indepvar4
est store Model`v'
}
estout Model* using Table.tex, style(tex) order(var1 var2 var3 var4)

var1 to var4 are different ways of measuring the same thing. In the regression output, each of the 4 vars occupy different rows. (Hence my output table has 8 rows)

I can reduce the number of rows if I can make all the 4 vars appear in a single row (so that the table will have only 5 rows) and if I can label the columns as var1 var2 var3 var4. Please suggest a way to achieve these 2.

Thanks in advance
Hari


*
*   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