dist {MGLM} | R Documentation |
Details of the distributions
Description
An object that specifies the distribution to be fitted by the MGLMfit
function, or the regression model to be fitted by the MGLMreg
or MGLMsparsereg
functions.
Can be chosen from "MN"
, "DM"
, "NegMN"
, or "GDM"
.
Details
"MN": Multinomial distribution
A multinomial distribution models the counts of possible outcomes.
The counts of categories are negatively correlated.
The density of a
category count vector
with parameter
is
where ,
, and
.
Here,
, often read as "
choose
", refers the number of
combinations from a set of
elements.
The MGLMreg
function with dist="MN"
calculates the MLE of regression coefficients of the multinomial logit model, which has link function
,
. The
MGLMsparsereg
function with dist="MN"
fits regularized multinomial logit model.
"DM": Dirichlet multinomial distribution
When the multivariate count data exhibits over-dispersion, the traditional
multinomial model is insufficient. Dirichlet multinomial distribution models the
probabilities of the categories by a Dirichlet distribution.
The density of a category count vector
, with
parameter
,
, is
where . Here,
, often read as "
choose
",
refers the number of
combinations from a set of
elements.
The MGLMfit
function with dist="DM"
calculates the maximum likelihood estimate (MLE) of . The
MGLMreg
function with dist="DM"
calculates the MLE of regression coefficients of the Dirichlet multinomial regression model, which has link function
,
. The
MGLMsparsereg
function with dist="DM"
fits regularized Dirichlet multinomial regression model.
"GDM": Generalized Dirichlet multinomial distribution
The more flexible Generalized Dirichlet multinomial model can be used when the counts of categories have both positive and negative correlations.
The probability mass of a count vector over
trials with parameter
,
, is
where and
. Here,
, often read as "
choose
",
#' refers the number of
combinations from a set of
elements.
The MGLMfit
with dist="GDM"
calculates the MLE of . The
MGLMreg
function with dist="GDM"
calculates the MLE of regression coefficients of the generalized Dirichlet multinomial regression model, which has link functions
and
,
. The
MGLMsparsereg
function with dist="GDM"
fits regularized generalized Dirichlet multinomial regression model.
"NegMN": Negative multinomial distribution
Both the multinomial distribution and Dirichlet multinomial distribution are good for
negatively correlated counts. When the counts of categories are positively
correlated, the negative multinomial distribution is preferred.
The probability mass function of a category count vector
with parameter
,
,
,
, is
where . Here,
, often read as "
choose
", refers the number of
combinations from a set of
elements.
The MGLMfit
function with dist="NegMN"
calculates the MLE of . The
MGLMreg
function with dist="NegMN"
and regBeta=FALSE
calculates the MLE of regression coefficients of the negative multinomial regression model, which has link function
,
,
. When
dist="NegMN"
and regBeta=TRUE
, the overdispersion parameter is linked to covariates via , and the
function
MGLMreg
outputs an estimated matrix of
. The
MGLMsparsereg
function with dist="NegMN"
fits regularized negative multinomial regression model.
Author(s)
Yiwen Zhang and Hua Zhou
See Also
MGLMfit
, MGLMreg
, MGLMsparsereg
,
dmn
, ddirmn
, dgdirmn
, dnegmn