aldvmm.tm {aldvmm} | R Documentation |
Creating Terms Objects
Description
aldvmm.tm
creates
a list of up to three "terms" objects, one of the model of component distributions
("beta"
), one of the model of probabilities of component
membership ("delta"
) and one for the full model ("full"
).
Usage
aldvmm.tm(mf, Formula, ncmp, lcoef)
Arguments
mf |
a data frame created by
|
Formula |
an object of class "Formula" created by
|
ncmp |
a numeric value of the number of components that are mixed. The
default value is 2. A value of 1 represents a tobit model with a gap
between 1 and the maximum value in |
lcoef |
a character vector of length 2 with labels of objects including
regression coefficients of component distributions (default |
Details
aldvmm.tm
uses
terms
to create "terms" objects based on a "Formula" object
created by
Formula
and a model frame created by
model.frame
.
The "terms" object for probabilities of group membership is only created if
more than one components are specified in 'ncmp'
.
Value
a named list of objects of class "terms".
beta |
a "terms" object for the model of component distributions. |
delta |
a "terms" object of the multinomial logit model of probabilities of component membership. |
full |
a "terms" object of the full model. |