Quant III, Homework 1 (the real deal)
Due Monday, 10/15
This is largely a redo of what you have done, but hopefully you now
understand.
I. Cross-national surveys with Huber et al. DV is the partyid dummy
variable. IV's are up to you, so long as you have enough. Please use
the logit link
a. Run the fully pooled logit.
b. Run the fully same logit but with country dummies. How do the
results differ from a). Loosely interpret the country dummies (that
is, you do not need to go through a clarify exercise).
c. Choose three countries and run a separate logit for each. How
consistent are the results with a) AND b)
d. Take one variable and allow it to vary non-randomly by country (so
interact, say, education with the country factor). This is done
non-randomly. Put in fixed country effects as before. What does
this logit tell you. Now we move to the previous variable.
e. Now interact whatever variable had a varying coefficient in d)
(education) with a country level variable (perhaps number of
parties). Do this in addition to what you did in
d). How does this change the results of d).
Now we move to lmer. There are many ways to do this stuff, but the one
that I have checked (so a word to the wise!) is to ONLY load the
package arm, which then loads the parts of lme4 it needs. No
guarantees if you load lme4 directly.
f. Run the same model as in b) but with random effects (and random
effects, fixed coefficients). How do the results of a), b) and f)
differ?
(To answer this, you need to get estimates of the country random
effects. You get this through ranef(lmer.object) and then
se.ranef(lmer.object) where you have previously typed lmer.object