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]

From |
"Jesper Lindhardsen" <JESLIN01@geh.regionh.dk> |

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

Subject |
st: RE: output ttest using esttab |

Date |
Thu, 11 Aug 2011 14:00:06 +0200 |

Hi There You need to use -estpost-. Try something like this Code example start: sysuse auto estpost ttest mpg,by(foreign) esttab using file.rtf,c(mu_1 mu_2 t p) rtf label Code example end: Jesper Lindhardsen MD, PhD candidate Department of Cardiovascular Research Copenhagen University Hospital, Gentofte Denmark -----Original Message----- From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of lreine ycenna Sent: 11 August 2011 10:16 To: statalist@hsphsun2.harvard.edu Subject: st: output ttest using esttab Hi! I've read some previous posts on this topic, but they have not solved my problem. I need to export ttest results using esttab to include the mean values of two groups, mean difference and t-stats with signs of signficance. The command I'm using is 'esttab mu_1 mu_2 t b', however: (1) mu_1 and mu_2 are not the mean values of the two sample groups. (2) invalid 'label' (198);pops up when I tried to export the results onto word using 'esttab, b t using ttesst.rtf, label append'. I know that I've been doing it wrong.Can anyone point out where? or is there any better way of doing this? Thanks. * * 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/ * * 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/

**References**:**st: output ttest using esttab***From:*lreine ycenna <lreine.ycenna@gmail.com>

- Prev by Date:
**Re: st: log2html smcl formatting TOC** - Next by Date:
**Re: st: running marginsplots without rerunning margins again** - Previous by thread:
**Re: st: output ttest using esttab** - Next by thread:
**st: Re:** - Index(es):