
Last chance! 50% off unlimited learning
Sale ends in
Provides the contrast and marginalization matrices for the marginal parametrization of a probability vector.
marg.param(lev, type)
Integer vector containing the number of levels of each variable.
A character vector with elements "l"
, "g"
, "c"
, or
"r"
indicating the type of logit. The meaning is as follows:
"g"
for global, "c"
for continuation,
"r"
for reverse continuation and "l"
for local.
Matrix of constrasts (the first sum(lev)-length(r)
elements are
referred to univariate logits)
Marginalization matrix with elements 0 and 1.
Corresponding design matrix for the corresponding log-linear model.
See Bartolucci, Colombi and Forcina (2007).
Bartolucci, F., Colombi, R. and Forcina, A. (2007). An extended class of marginal link functions for modelling contingency tables by equality and inequality constraints. Statist. Sinica 17, 691-711.
# NOT RUN {
marg.param(c(3,3), c("l", "g"))
# }
Run the code above in your browser using DataLab