Statalist


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

st: How to stack two correlation matrix tables into one big correlation matrix (lower and upper diagonal) table?


From   Kelvin Tan <[email protected]>
To   [email protected]
Subject   st: How to stack two correlation matrix tables into one big correlation matrix (lower and upper diagonal) table?
Date   Mon, 8 Feb 2010 15:12:25 +1000

Hi All,

Having read the following post
http://www.stata.com/statalist/archive/2009-11/msg00012.html "how to
produce a correlation matrix table with asterisks from Stata to LaTex"


I would like to know if I can stack two correlation matrix tables into
one big correlation matrix (("foreign=1") in lower diagonal and
(foreign=0) in upper diagonal of the big correlation matrix table) .

*************
capt which estout
if _rc ssc inst estout

sysuse auto.dta, clear

estpost correlate trunk weight length, matrix, if foreign==1
estpost correlate trunk weight length, matrix, if foreign==0
esttab ., not unstack compress noobs tex
*************


Regards,
Kelvin
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index