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]
st: output ttest using esttab and wrong asterisks
From
lreine ycenna <[email protected]>
To
[email protected]
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 <[email protected]> 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: [email protected]
> [mailto:[email protected]] On Behalf Of lreine ycenna
> Sent: 11 August 2011 10:16
> To: [email protected]
> 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/