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
Constraints in a nonlinear regression with interaction termsDear all, I am running a fractional logit model, using fracglm, where Vote (the percentages of vote…
testhere is my code: Code: regress y x1 x2 estimates store my_regress some question text HTML Cod…
Logit regressionI want to run logit regression. My dependent var is =1 if firm pay dividend and 0 otherwise. But my …
Tobit model with binary endogenous regressorsDear All, Ivtobit is for Tobit model with continuous endogenous regressors. My endogenous regressor …
Problems with lower bound for a proportion below 0 for "teffects" commandDear Statalisters, I'm using Statalist 15.1. By using the "teffects" command in a case of binary out…
Subscribe to:
Post Comments (Atom)
0 Response to ttest means and differences
Post a Comment