# NOT RUN {
## Becker & Clogg (1989), Table 5 (p. 145)
# See also ?rc for more details
# }
# NOT RUN {
data(color)
# "Uniform weights" in the authors' terms mean "no weighting" for us,
# and "average marginals" means "marginal" with rcL
# See ?rc for "marginals"
unweighted <- rcL(color, nd=2, weighting="none",
layer.effect="heterogeneous", se="jackknife")
marginal <- rcL(color, nd=2, weighting="marginal",
layer.effect="heterogeneous", se="jackknife")
unweighted
marginal
# (our standard errors are much smaller for the marginal-weighted case)
summary(unweighted)
summary(marginal)
opar <- par(mfrow=c(1, 2))
plot(marginal, layer="Caithness", conf.int=0.95)
plot(marginal, layer="Aberdeen", conf.int=0.95)
par(opar)
# }
# NOT RUN {
## Wong (2010), Table 4.6 (p. 103), model 9
# }
# NOT RUN {
data(gss7590)
model <- rcL(gss7590, nd=2, weighting="none", se="jackknife")
model
summary(model) # Jackknife standard errors are slightly different
# from their asymptotic counterparts
# See ?plot.rcL for plotting
# }
Run the code above in your browser using DataLab