I am getting problem with results in asdoc table, p-values in the Word file not agree with stata output. example:
Code:
clear all
set more off
sysuse auto
*ssc install asdoc
ttest price, by(foreign)
Two-sample t test with equal variances
------------------------------------------------------------------------------
Group | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]
---------+--------------------------------------------------------------------
Domestic | 52 6072.423 429.4911 3097.104 5210.184 6934.662
Foreign | 22 6384.682 558.9942 2621.915 5222.19 7547.174
---------+--------------------------------------------------------------------
combined | 74 6165.257 342.8719 2949.496 5481.914 6848.6
---------+--------------------------------------------------------------------
diff | -312.2587 754.4488 -1816.225 1191.708
------------------------------------------------------------------------------
diff = mean(Domestic) - mean(Foreign) t = -0.4139
Ho: diff = 0 degrees of freedom = 72
Ha: diff < 0 Ha: diff != 0 Ha: diff > 0
Pr(T < t) = 0.3401 Pr(|T| > |t|) = 0.6802 Pr(T > t) = 0.6599
asdoc ttest price, by(foreign)
0 Response to ttest result and asdoc table not agree.
Post a Comment