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]

From |
lreine ycenna <lreine.ycenna@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: output ttest using esttab and wrong asterisks |

Date |
Thu, 11 Aug 2011 16:18:23 +0100 |

Hi Jesper and all, Thanks for this. I found the first part of your estpost command earlier on, although I have been looking for a way to include the asterisks (level of significance) for the p-values in the output table. When I run the following command, it gives the asterisks for the p-values. estpost ttest mpg, by(foreign) esttab, wide nonumber (1) how can I include the asterisks in the rtf file? I tried 'esttab using test.rtf,c(mu_1 mu_2 t p) rtf wide nonumber label', but it doesn't work right. (2) 'esttab, wide nonumber' generates significance levels at 5%, 1% and 0.01% (* p<0.05, ** p<0.01, *** p<0.001), is there a way to change it to * p<0.10, ** p<0.05, *** p<0.01? Thanks in advance. On 11 August 2011 13:00, Jesper Lindhardsen <JESLIN01@geh.regionh.dk> wrote: > 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/ > * * 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/

- Prev by Date:
**Re: st: running marginsplots without rerunning margins again** - Next by Date:
**st: warning: variable has embedded blanks** - Previous by thread:
**st: Constrained Regression** - Next by thread:
**st: -moments2- on SSC** - Index(es):