I am trying to run a two sample test of proportion using two groups (women who report physical abuse versus women who report emotional abuse):
Both variables are binary and take the value of 1 for those who report abuse.
Code:
prtest emo2, by (physical) Two-sample test of proportions 0: Number of obs = 8172 1: Number of obs = 2839 ------------------------------------------------------------------------------ Group | Mean Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- 0 | .0527411 .0024725 .047895 .0575872 1 | .4938359 .0093833 .475445 .5122267 -------------+---------------------------------------------------------------- diff | -.4410948 .0097036 -.4601134 -.4220761 | under Ho: .0081151 -54.35 0.000 ------------------------------------------------------------------------------ diff = prop(0) - prop(1) z = -54.3547 Ho: diff = 0 Ha: diff < 0 Ha: diff != 0 Ha: diff > 0 Pr(Z < z) = 0.0000 Pr(|Z| > |z|) = 0.0000 Pr(Z > z) = 1.0000
From what I understand, prop(0) - prop (1) is the proportion of women who did not report physical violence but reported psychological violence minus the proportion of women who did report physical violence and also reported psychological violence. The hypothesis that women who experience physical violence are also more likely to report emotional violence is ha: diff<0 and the very low p value associated with it suggests we should reject the null and accept that alternative hypothesis.
I am a bit confused and I am unsure if this is correct?
0 Response to test of proportions using prtest
Post a Comment