aldvmm.mm {aldvmm}  R Documentation 
Creating Design Matrices
Description
aldvmm.mm
creates
a list of two design matrices, one of the model of component distributions
("beta"
) and one of the model of probabilities of component
membership ("delta"
).
Usage
aldvmm.mm(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.mm
uses
model.matrix
to create design matrices for models of component distributions
("beta"
) and probabilities of component membership ("delta"
)
based on a "Formula" object created by
Formula
and a model frame created by
model.frame
.
The design matrix for probabilities of group membership is only created if
more than one components are specified in 'ncmp'
.
Value
a named list of numeric matrices.
beta 
a numeric design matrix for the model of component distributions. 
delta 
a numeric design matrix of the multinomial logit model of probabilities of component membership. 