Docsity

Homework Exercise Set 2 - Generalized Linear Models | STA 7249, Assignments of Biostatistics

Toggle sidebar
bg1
1
Homework Exercise Set 2: STA 7249
1. (7.24) A multivariate generalization of the exponential dispersion family
is
f(yi;θi, φ) = exp{[y0
iθi−b(θi)]/a(φ) + c(yi, φ)},
where θiis the natural parameter. Show that the multinomial variate
yi= (yi1,...,yi,J−1)0(with a 1 in a position if that outcome occurred,
and 0 otherwise) for a single trial with parameters {πj,j= 1, . . . , J −1}is
in the (J−1)-parameter exponential family, with baseline-category logits
as natural parameters.
2. (7.36) Suppose we express πj(x) = exp(αj+β0
jx)
1+PJ−1
h=1 exp(αh+β0
hx)as
πj(x) = exp(αj+β0
jx)
PJ
h=1 exp(αh+β0
hx).
Show that dividing numerator and denominator by exp(αJ+β0
Jx) yields
new parameters α∗
j=αj−αJand β∗
j=βj−βJthat satisfy αJ= 0 and
βJ=0. Thus, without loss of generality, αJ= 0 and βJ=0.
3. (7.29) Is the proportional odds model a special case of a baseline-category
logit model? Explain why or why not.
4. (7.35) For the cumulative probit model Φ−1[P(Y≤j)] = αj−β0x, explain
why a 1-unit increase in xicorresponds to a βistandard deviation increase
in the expected underlying latent response, controlling for other predictors.
5. (7.36) For cumulative link model G−1[P(Y≤j|x)] = αj+β0x,, show
that for 1 ≤j < k ≤J−1, P(Y≤k|x) = P(Y≤j|x∗) where x∗is
obtained by increasing the ith component of xby (αk−αj)/βi. Interpret.
6. (7.34) A response scale has the categories (strongly agree, mildly agree,
mildly disagree, strongly disagree, don’t know). One way to model such a
scale uses a logit model for the probability of a don’t know response and
uses a separate ordinal model for the ordered categories conditional on
response in one of those categories. Explain how to construct a likelihood
to do this simultaneously.
7. (7.42) A cafe has four entr´ees: (chicken, beef, fish, vegetarian). Specify a
discrete choice model for the selection of an entr´ee using x= gender (1 =
female, 0 = male) and u= cost of entr´ee, which is a characteristic of the
choices. Interpret the model parameters.
8. (7.1) For Table 1, let Y= belief in life after death, x1= gender (1 =
females, 0 = males), and x2= race (1 = whites, 0 = blacks). Table 2
shows the fit of the model
log(πj/π3) = αj+βG
jx1+βR
jx2, j = 1,2,
with SE values in parentheses.
pf2

Partial preview of the text

Download Homework Exercise Set 2 - Generalized Linear Models | STA 7249 and more Assignments Biostatistics in PDF only on Docsity!

Homework Exercise Set 2: STA 7249

  1. (7.24) A multivariate generalization of the exponential dispersion family is f (yi; θi, φ) = exp{[y′ iθi − b(θi)]/a(φ) + c(yi, φ)}, where θi is the natural parameter. Show that the multinomial variate yi = (yi 1 ,... , yi,J− 1 )′^ (with a 1 in a position if that outcome occurred, and 0 otherwise) for a single trial with parameters {πj , j = 1,... , J − 1 } is in the (J − 1)-parameter exponential family, with baseline-category logits as natural parameters.
  2. (7.36) Suppose we express πj (x) = exp(αj +β′ j x) 1+

∑J− 1

h=1 exp(αh+β

′ hx)^

as

πj (x) =

exp(αj + β′ j x) ∑J h=1 exp(αh^ +^ β

′ hx)^

Show that dividing numerator and denominator by exp(αJ + β′ J x) yields new parameters α∗ j = αj − αJ and β j∗ = βj − βJ that satisfy αJ = 0 and βJ = 0. Thus, without loss of generality, αJ = 0 and βJ = 0.

  1. (7.29) Is the proportional odds model a special case of a baseline-category logit model? Explain why or why not.
  2. (7.35) For the cumulative probit model Φ−^1 [P (Y ≤ j)] = αj −β′x, explain why a 1-unit increase in xi corresponds to a βi standard deviation increase in the expected underlying latent response, controlling for other predictors.
  3. (7.36) For cumulative link model G−^1 [P (Y ≤ j | x)] = αj + β′x, , show that for 1 ≤ j < k ≤ J − 1, P (Y ≤ k | x) = P (Y ≤ j | x∗) where x∗^ is obtained by increasing the ith component of x by (αk − αj )/βi. Interpret.
  4. (7.34) A response scale has the categories (strongly agree, mildly agree, mildly disagree, strongly disagree, don’t know). One way to model such a scale uses a logit model for the probability of a don’t know response and uses a separate ordinal model for the ordered categories conditional on response in one of those categories. Explain how to construct a likelihood to do this simultaneously.
  5. (7.42) A cafe has four entr´ees: (chicken, beef, fish, vegetarian). Specify a discrete choice model for the selection of an entr´ee using x = gender (1 = female, 0 = male) and u = cost of entr´ee, which is a characteristic of the choices. Interpret the model parameters.
  6. (7.1) For Table 1, let Y = belief in life after death, x 1 = gender (1 = females, 0 = males), and x 2 = race (1 = whites, 0 = blacks). Table 2 shows the fit of the model log(πj /π 3 ) = αj + βGj x 1 + βjR x 2 , j = 1, 2 , with SE values in parentheses.

Table 1: Belief in Afterlife Race Gender Yes Undecided No White Female 371 49 74 Male 250 45 71 Black Female 64 9 15 Male 25 5 13 Source: 1991 General Social Survey

Table 2: Belief Categories for Logit Parameter (Yes/No) (Undecided/No) Intercept 0.883 (.243) -0.758 (.361) Gender 0.419 (.171) 0.105 (.246) Race 0.342 (.237) 0.271 (.354)

(a) Find the prediction equation for log(π 1 /π 2 ). (b) Using the yes and no response categories, interpret the conditional gender effect using a 95% confidence interval for an odds ratio. (c) Show that for white females, ˆπ 1 = Pˆ (Y = yes) = 0.76. (d) Without calculating estimated probabilities, explain why the inter- cept estimates indicate that for black males ˆπ 1 > πˆ 3 > ˆπ 2. Likewise, use the intercept and gender estimates to show the same ordering applies for black females. (e) Without calculating estimated probabilities, explain why the esti- mates in the gender and race rows indicate that ˆπ 3 is highest for black males. (f) For this fit, G^2 = 0.9. Explain why residual df = 2. Deleting the gender effect, G^2 = 8.0. Test whether opinion is independent of gender, given race. Interpret.