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: AW: One-sample ttests with estpost


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: One-sample ttests with estpost
Date   Thu, 10 Jun 2010 15:05:54 +0200

<> 

You may want to exploit the equivalence btw -ttest- and -reg-, though:


*************
sysuse auto, clear
ttest mpg==0
reg mpg
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Florian Szuecs
Gesendet: Donnerstag, 10. Juni 2010 11:47
An: statalist@hsphsun2.harvard.edu
Betreff: st: One-sample ttests with estpost

Dear Statalisters,

I'm trying to automatically generate a large table containing means, s.d.,
observations and one-sample ttests (of the form ttest x=0) for multiple
variables across different subsamples. My approach was to use estpost
ttest for each subsample and then join the results using esttab. This
would allow me to display the ttest-results as significance stars next to
the means.

Estpost, however, only supports two-mean ttests and simply setting all obs
out of the current subsample to zero for the ttest meddles with the
degrees of freedom. In a similar matter, statalisters suggested using
either a matrix or the parmest command to obtain the desired results, but
I failed to adapt this to my problem.

Any ideas on how to get estpost to do what I want it to do?

Thanks in advance,

Florian

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


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