Last chance! 50% off unlimited learning
Sale ends in
gnm
model, computes the estimated simple contrasts (i.e.,
differences) with the first parameter in the set, and estimated standard
errors for those estimated differences. Where possible, quasi standard
errors are also computed.getContrasts(model, sets = NULL, nSets = 1, ...)
"gnm"
nSets
is 1) or
a list (of length nSets
) of such vectors; or NULL
nSets
) of objects of class qv
(see
qvcalc
).1:length(coef(object))
. If
sets = NULL
, a Tk dialog is presented for the selection
of indices (model coefficients).For each set of coefficients selected, differences with the first coefficient and their standard errors are computed. A check is performed first on the estimability of all such differences.
Firth, D and Menezes, R X de (2004). Quasi-variances. Biometrika 91, 65--80.
gnm
, se
,
checkEstimable
, qvcalc
set.seed(1)
data(yaish)
## Fit the "UNIDIFF" mobility model across education levels
unidiff <- gnm(Freq ~ educ*orig + educ*dest +
Mult(Exp(-1 + educ), -1 + orig:dest), family = poisson,
data = yaish, subset = (dest != 7))
## Examine the education multipliers (differences on the log scale):
getContrasts(unidiff, grep("Mult1.Factor1", names(coef(unidiff))))
Run the code above in your browser using DataLab