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

From |
"Kelvin Tan" <j.tan@business.uq.edu.au> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: how to produce a correlation matrix table with asterisks from Stata to LaTex |

Date |
Mon, 2 Nov 2009 17:23:55 +1000 |

Dear All, I would like to know if I can produce a correlation matrix table with asterisks in Stata and export the table to LaTex. I have tried with both -pwcorr- and -corrtex-. -pwcorr- does not produce a LaTex formatted correlation table. -corrtex- can produce a Latex formatted correlation matrix table but it does not produce asterisks (*** if p-value<0.001, ** if p-value<0.01, * if p-value<0.05) to indicate the different levels of significance. ---Begin Example ---- webuse abdata pwcorr wage cap indoutpt w k , star(0.001) sig corrtex wage cap indoutpt w k , file(CorrTable) replace land sig dig(4) ---End Example ---- I would like to produce something looks like the following table and hopefully this correlation matrix table can be transferred to LaTex formatted table. Thanks in advance. | wage cap indoutpt w k -------------+--------------------------------------------- wage | 1.0000 cap | 0.0074 1.0000 indoutpt | 0.0112 -0.0224 1.0000 w | 0.9798* 0.0018 0.0247 1.0000 k | 0.0751* 0.7124*** 0.0601 0.0625 ** 1.0000 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/

**Follow-Ups**:**Re: st: how to produce a correlation matrix table with asterisks from Stata to LaTex***From:*Maarten buis <maartenbuis@yahoo.co.uk>

**st: AW: how to produce a correlation matrix table with asterisks from Stata to LaTex***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**RE: st: Roctab and binomial exact confidence interval** - Next by Date:
**st: AW: how to produce a correlation matrix table with asterisks from Stata to LaTex** - Previous by thread:
**RE: st: Roctab and binomial exact confidence interval** - Next by thread:
**st: AW: how to produce a correlation matrix table with asterisks from Stata to LaTex** - Index(es):

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