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 on April 23, and its replacement, is already up and running.

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

st: One-sample ttests with estpost

From   "Florian Szuecs" <>
Subject   st: One-sample ttests with estpost
Date   Thu, 10 Jun 2010 11:46:52 +0200

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,


*   For searches and help try:

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