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: Export a table comparing results from regressions with differing variables


From   Ly Tran <lyhuyen@brandeis.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Export a table comparing results from regressions with differing variables
Date   Tue, 4 Dec 2012 11:38:50 -0500

I am sorry, I hit the send button before finishing the email.

Hi everyone,
I am trying to compare results from multiple regressions that do not
share any variables.
For example, there are 6 regressions
local crlist "USD GBP EUR"
foreach cr of local crlist {
reg dep`cr' indep1`cr'
reg dep`cr' indep2`cr'
}
If I use xml_tab or outreg2, the coefficients will be placed
diagonally, which is very difficult to compare.
The table will be like this:
                         depUSD    depUSD    depGBP    depGBP
depEUR     depEUR
indep1USD          coef1
indep2USD                             coef2
indep1GBP                                             coef3
indep2GBP                                                               coef4
indep1EUR
                     coef5
indep2EUR
                                       coef6

And the table I am trying to achieve should look like this
                 indep1           indep2
USD           coef1           coef2
GBP           coef3           coef4
EUR           coef5           coef6

My thinking is, xml_tab should be able to help with this, but I have
tried different specifications to no avail.
Any help will be much appreciated.

Thank you so much.


--
Ly Tran

--
Ly Tran
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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