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
quick help on identifying the first admission dateHey there, I have a dataset consisting of the two variables below (ID-number and admission date) wi…
Statistical Analysis with Control and treatment groupI would like some advice on what statistical analysis to use to test my hypothesis. I have two group…
How to sum up (frequency and percentage) by group?Hello, I have a dataset like below. What I want to do is to group based on icd_code (first 3 digit…
Using stata to choose between tobit and double hurdle modelsHi Dear users of statalist forum, I am working on double hurdle model to specify factors affecting a…
Change of direction of OR in logistic regressionDear stata users, I am not an expert concerning statistics, so I hope to find some answers in this …
Subscribe to:
Post Comments (Atom)
0 Response to ttest means and differences
Post a Comment