aldvmm.mm {aldvmm}  R Documentation 
aldvmm.mm
creates
two design matrices, one of the model of component distributions
("beta"
) and one of the model of probabilities of component
membership ("delta"
).
aldvmm.mm(data, formula, ncmp, lcoef)
data 
a data frame, list or environment (or object coercible to a data
frame by 
formula 
an object of class 
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 
aldvmm.mm
uses
model.matrix
to create design matrices for models of component distributions
("beta"
) and probabilities of component membership ("delta"
)
based on 'formula'
supplied to
aldvmm.ll
. The
design matrix for probabilities of group membership is only created if
more than one components are specified in 'ncmp'
.
a named list of numeric matrices.

a numeric design matrix for the model of component distributions. 

a numeric design matrix of the multinomial logit model of probabilities of component membership. 