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

st: AW: Making tables with ttest

From   "Martin Weiss" <>
To   <>
Subject   st: AW: Making tables with ttest
Date   Mon, 1 Feb 2010 17:16:30 +0100


set obs 10000
gen x1=rnormal()
gen x2=rnormal()

mean x?

capture which parmest
if _rc ssc install parmest

parmest, saving(myfile, replace)
u myfile, clear
drop stderr dof min95 max95

tabdisp parm, cellvar( estimate t p)


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Nuno Soares
Gesendet: Montag, 1. Februar 2010 16:55
Betreff: st: Making tables with ttest

Hi everyone,

I've been searching past posts in the list about this issue, but I haven't
found anything that solves my problem. I was wondering if there is a way of
building tables in Stata with a set of -ttest- results for different
variables. The table would look something like this (produced in SAS, and
testing for H0: mean=0):
Variable 	N 	Mean 		t Value 	Pr > |t|
A		404	-0.0130359	-2.35		0.0191
B		404	-0.0126201	-2.23		0.0260
C		404	-0.0119089	-2.15		0.0323

I've been trying to use - estpost -, but it requires the use of by() (which
I don't need).

All the best,


*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2020 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index