Hello,
In the ttest help Stata notes that a test of differences occurs by subtracting the highest value by the lowest values 'By default, the mean of the group corresponding to
the largest value in the variable in by() is subtracted from the mean of the group with the smallest value in by()'
My data set contains values of 1, 2 and missing.
Value of 1 has 3,000,000 observations
Value of 2 has 600,000 observations
Missing has 2,400,000 observations
When I run the ttest the results output notes 'diff = mean(1) - mean(2) '
My code to run the ttest contains the requirement for unequal means although I do not specify to 'reverse' the means test.
Why do the stata results specify the 'diff = mean(1) - mean(2)' when this is contrary to the default setting in stata where the highest value is subtracted from the lowest value?
Regards
Imtiaz
Related Posts with ttest means and differences
Changing data structure (Expanding observations) with previous valueDear all, Thanks in advance for any suggestions and supports! I am currently working on a dataset w…
cmp command, When we use cmp for multivariate ordered probit model?Great day, When we use cmp for multivariate ordered probit model? My dissertation about adaptation …
reshapingDear statalist members, I would like to seek your advice on how to reshape/transpose data. Details a…
Changing data structure (Expanding observations) with previous valueDear all, Thanks in advance for any suggestions and supports! I am currently working on a dataset w…
How to install rdobDear Statlist community, for an university assignment I need to replicate the findings of a paper (M…
Subscribe to:
Post Comments (Atom)
0 Response to ttest means and differences
Post a Comment