VGLM Cbind Family Data : G G G G
VGLM Cbind Family Data : G G G G
For the table below, let Y = belief in existence of heaven, X1= gender (1 = females, 0 =
males), and X2 = race (1 = blacks, 0 = whites).
b. Using the yes and no response categories, interpret the conditional gender effect
using a 95% confidence interval for an odds ratio.
The parameter β G1 is the log of the conditional odds ratio for gender and response,
so a 95% Wald confidence interval for β G1 is ^β G1 ± 1.96 [s.e.( ^β G1 ¿] = 1.0339 ± 1.96
× 0.2587 = (0.5268, 1.541), which will give a 95% CI for the odds of (1.6935,
4.6693). Since the confidence interval contain 1, there is no evidence of a
conditional effect of gender, controlling for race.
c. Find 𝜋̂𝑖 = 𝑃(𝑌 = 1) for white females.
e1.7943+1.0339+0.6727
^π 1 ( x 1=1 , x 2=0 ) =
1+ e1.7943+1.0339+0.6727 + e1.5309+0.3087−0.4757
¿ 0.8709
π^ 2
log ( )
π^ 2
= α^ 1=¿ 1.5309 > 0, ^π 2 > π^ 3
π^ 2
log ( )
π^ 2
G
= α^ 1 + β 1 =¿ 1.8396 > 0, ^π 2 > π^ 3
1+ e
2 2 2 2 3
+e α^ + β x + β x
3 3 2 3 3
Except for the whites, the β parameters for all estimates are positive, which means
that ^π 1 is maximized for x 2=1, which is for females.
f. For this fit, G2 = 0.69. Explain why residual df = 2. Deleting the gender effect,
G2 = 47.64. Conduct a likelihood-ratio test of whether opinion is independent of
gender, given race. Interpret.
There are 4 gender-race combinations and 3 parameters in the model, so df = 2(4)
− 2(3) = 2. The likelihood-ratio statistic for testing the hypothesis that opinion is
independent of gender given race, is G2 = 47.64 – 0.69 = 46.95. When compared
to a χ2 distribution with 2 df which is 5.99, 46.95 > 5.99. Therefore, we reject Ho.
We can say that opinion is independent of gender, given race.
5. For the data on our lecture regarding Happiness and the number of traumatic events, fit
and interpret effects for a
Interpretations:
The adjacent-categories logit model of proportional odds form has ML fit
P
^ (Y = j)
log
[ ^
P(Y = j+1) ]= α^ −0.357 x 1−1.842 3 x 2.
j
Conditional on the number of traumatic events, the estimated odds of being very happy
instead of pretty happy, and the estimated odds of being pretty happy instead of not too
happy, are e 1.8423= 6.311 times as high for whites as for blacks. By contrast, the
cumulative logit model ha ^β 1=−0.406d and ^β 1=−0.2036. We can see that its estimates
are somewhat larger in magnitude.
Interpretation:
The ML estimates are ^β 1=−0.4552(SE = 0.3297) and ^β 2=3.3411(SE = 0.5631). In each
case, the less desirable outcome is more likely as happiness scale decreases as the
traumatic events score increases. Given the traumatic events score, for whites, the
estimated odds of reporting being very happy were e-0.3850 = 0.68 times the estimated odds
for blacks.