aldvmm.check {aldvmm}  R Documentation 
Checking the Validity of Objects Supplied to
aldvmm
Description
aldvmm.check
runs validity checks of objects supplied to
aldvmm
.
Usage
aldvmm.check(
formula,
data,
subset,
psi,
ncmp,
dist,
optim.method,
optim.control,
optim.grad,
init.method,
init.est,
init.lo,
init.hi,
se.fit,
model,
level,
na.action,
lcoef,
lcpar,
lcmp
)
Arguments
formula 
an object of class "formula" with a symbolic
description of the model to be fitted. The model formula takes the form

data 
a data frame, list or environment (or object coercible to a data
frame by

subset 
an optional numeric vector of row indices of the subset of the model
matrix used in the estimation. 
psi 
a numeric vector of minimum and maximum possible utility values
smaller than or equal to 1 (e.g. 
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 
dist 
an optional character value of the distribution used in the
components. In this release, only the normal distribution is
available, and the default value is set to 
optim.method 
an optional character value of one of the following

optim.control 
an optional list of

optim.grad 
an optional logical value indicating if an analytical
gradient should be used in

init.method 
an optional character value indicating the method for
obtaining initial values. The following values are available:

init.est 
an optional numeric vector of userdefined initial values.
Userdefined initial values override the 
init.lo 
an optional numeric vector of userdefined lower limits for
constrained optimization. When 
init.hi 
an optional numeric vector of userdefined upper limits for
constrained optimization. When 
se.fit 
an optional logical value indicating whether standard errors
of fitted values are calculated. The default value is 
model 
an optional logical value indicating whether the estimation
data frame is returned in the output object. The default value is

level 
a numeric value of the significance level for confidence bands of fitted values. The default value is 0.95. 
na.action 
a character value passed to
argument 
lcoef 
a character vector of length 2 with labels of objects including
regression coefficients of component distributions (default 
lcpar 
a character vector with the labels of objects including
constant parameters of component distributions (e.g. the standard
deviation of the normal distribution). The length of 
lcmp 
a character value representing a stub (default 
Details
aldvmm.check
checks the validity of arguments of
aldvmm
.
Value
aldvmm.check
returns warnings or stops the execution of
aldvmm
if validity
checks fail.