Learn R Programming

ggm (version 2.2)

marg.param: Link function of marginal log-linear parameterization

Description

Provides the contrast and marginalization matrices for the marginal parametrization of a probability vector.

Usage

marg.param(lev, type)

Arguments

lev
Integer vector containing the number of levels of each variable.
type
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 rev

Value

  • CMatrix of constrasts (the first sum(lev)-length(r) elements are referred to univariate logits)
  • MMarginalization matrix with elements 0 and 1.
  • GCorresponding design matrix for the corresponding log-linear model.

Details

See Bartolucci, Colombi and Forcina (2007).

References

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.

See Also

mat.mlogit

Examples

Run this code
marg.param(c(3,3), c("l", "g"))

Run the code above in your browser using DataLab