aldvmm.gr {aldvmm} | R Documentation |
Calculating Numeric Gradients of the Negative Log-Likelihood
Description
aldvmm.gr
calculates numerical gradients of the negative log-likelihood of the entire
estimation data with respect to parameter values in 'par'
.
Usage
aldvmm.gr(par, X, y, psi, dist, ncmp, lcoef, lcmp, lcpar, optim.method)
Arguments
par |
a named numeric vector of parameter values. |
X |
a list of design matrices returned by
|
y |
a numeric vector of observed outcomes from complete observations in
|
psi |
a numeric vector of minimum and maximum possible utility values
smaller than or equal to 1 (e.g. |
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 |
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 |
lcmp |
a character value representing a stub (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 |
optim.method |
an optional character value of one of the following
|
Details
aldvmm.gr
uses aldvmm.sc
to
calculate analytical gradients of the negative log-likelihood.
If 'par'
includes infinite values
aldvmm.gr
returns a
gradient of zero.
Value
a named numeric vector of first derivatives of the negative
log-likelihood of the data with respect to parameters in 'par'
.