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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: FW: How to produce correlation matrix with asterisks from STATA to Latex?


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: FW: How to produce correlation matrix with asterisks from STATA to Latex?
Date   Sun, 28 Mar 2010 17:30:53 +0200

<>


Forwarded on behalf of Jules...


Try this, and switch to text-only to post to the entire Statalist:
 

*******
sysuse auto, clear
estpost corr mpg weight length , matrix
esttab . using myfile.tex, not unstack compress noobs replace booktabs page
!texify -p -c -b --run-viewer myfile.tex
*******


HTH
Martin

From: Jules Hugot [mailto:jules.hugot@gmail.com] 
Sent: Sonntag, 28. März 2010 16:25
To: martin.weiss1@gmx.de
Subject: How to produce correlation matrix with asterisks from STATA to
Latex?

Hello,

I am currently writing my Master's thesis and I need to output a pairwise
correlation matrix in Latex.

I saw your post of Nov. 2nd 2009 on the STATA list.

The following commands display the matrix I want, but I do not manage to
convert it into Latex format:

estpost correlate lnTOTFLOW lnDISTW lnGDP, matrix
esttab ., not unstack compress noobs

I tried : "outtable using corrmatrix"
but outtable requires the option mat(matrixname) and I don't know what to
write as matrixname.

Maybe you can help me.

Thank you,



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