Hello everybody,
I have run the following ttest:
I now wish to store the difference of means (here -13.2) and confidence interval (here -64.2 to 37.8) as local variables in order to post into graphs etc. I can easily find e.g. t-statistic r(t) or p-value r(p). However, I cannot find out where difference of means, CI lower and upper limit are stored. I could not find this information via:
I tried to calculate the difference of means myself, which did not work either:
And I would not know anyways how to then deduct the confidence intervals.
Could You help me? The aim: extracting difference of means (here -13.2) and confidence interval (here -64.2 to 37.8)
Thank You so much,
Dorothea
I have run the following ttest:
Code:
ttest auc, by(group) Two-sample t test with equal variances ------------------------------------------------------------------------------ Group | Obs Mean Std. err. Std. dev. [95% conf. interval] ---------+-------------------------------------------------------------------- 4 | 16 369.0653 16.94614 67.78454 332.9455 405.1852 5 | 13 382.2868 18.02805 65.00107 343.0071 421.5666 ---------+-------------------------------------------------------------------- Combined | 29 374.9922 12.20094 65.70405 349.9997 399.9847 ---------+-------------------------------------------------------------------- diff | -13.22151 24.85378 -64.21725 37.77424 ------------------------------------------------------------------------------ diff = mean(4) - mean(5) t = -0.5320 H0: diff = 0 Degrees of freedom = 27 Ha: diff < 0 Ha: diff != 0 Ha: diff > 0 Pr(T < t) = 0.2995 Pr(|T| > |t|) = 0.5991 Pr(T > t) = 0.7005
Code:
. mat list r(table) matrix r(table) not found r(111);
Code:
. local diff=`mean(4)'-`mean(5)' invalid syntax r(198);
Could You help me? The aim: extracting difference of means (here -13.2) and confidence interval (here -64.2 to 37.8)
Thank You so much,
Dorothea
Comment