marg.param | R Documentation |
Provides the contrast and marginalization matrices for the marginal parametrization of a probability vector.
marg.param(lev, type)
lev |
Integer vector containing the number of levels of each variable. |
type |
A character vector with elements |
See Bartolucci, Colombi and Forcina (2007).
C |
Matrix of constrasts (the first |
M |
Marginalization matrix with elements 0 and 1. |
G |
Corresponding design matrix for the corresponding log-linear model. |
Assumes that the vector of probabilities is in inv lex order. The interactions are returned in order of dimension, like e.g., 1, 2, 3, 12, 13, 23, 123.
Francesco Bartolucci, Antonio Forcina, Giovanni M. Marchetti
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.
mat.mlogit
marg.param(c(3,3), c("l", "g"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.