Hi there I am trying to perform a means difference test given that seperates the 2 samples by a dividend dummy where =0 pays no dividends, while 1 = pays dividends :
I was wondering on Stata is there an option to do this test (both the equal variance of 2 subsamples and unequal versions of test) but with the mean of the "1" group - mean of "0" group as opposed to how it is now which is: mean(0)-mean(1).
Thanks in advance.
Code:
. ttest mtb if inlist(year,2015,2016), by div Two-sample t test with equal variances ------------------------------------------------------------------------------ Group | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval] ---------+-------------------------------------------------------------------- 0 | 332 3.577726 .4284058 6.525282 1.733644 3.421808 1 | 467 2.392845 .0599667 1.295892 1.775007 2.010684 ---------+-------------------------------------------------------------------- combined | 699 2.120159 .1480283 3.913662 1.829525 2.410793 ---------+-------------------------------------------------------------------- diff | 1.184881 .3135083 .0693467 1.300415 ------------------------------------------------------------------------------ diff = mean(0) - mean(1) t = 2.1846 Ho: diff = 0 degrees of freedom = 697 Ha: diff < 0 Ha: diff != 0 Ha: diff > 0 Pr(T < t) = 0.9854 Pr(|T| > |t|) = 0.0293 Pr(T > t) = 0.0146
Thanks in advance.
Comment