mlogl {aster} | R Documentation |
Minus Log Likelihood for Aster Models
Description
Minus the Log Likelihood for an Aster model, and its first and second
derivative. This function is called inside R function aster
.
Users generally do not need to call it directly.
Usage
mlogl(parm, pred, fam, x, root, modmat, deriv = 0,
type = c("unconditional", "conditional"), famlist = fam.default(),
origin, origin.type = c("model.type", "unconditional", "conditional"))
Arguments
parm |
parameter value (vector of regression coefficients)
where we evaluate the log likelihood, etc.
We also refer to |
pred |
integer vector determining the graph.
|
fam |
an integer vector of length |
x |
the response. If a matrix, rows are individuals, and columns are
variables (nodes of graphical model). So |
root |
A matrix or vector like |
modmat |
a three-dimensional array, |
deriv |
derivatives wanted: 0, 1, or 2. |
type |
type of model. The value of this argument can be abbreviated. |
famlist |
a list of family specifications (see |
origin |
Distinguished point in parameter space. May be missing,
in which case an unspecified default is provided. See |
origin.type |
Parameter space in which specified distinguished point
is located. If |
Value
a list containing some of the following components:
value |
minus the log likelihood. |
gradient |
minus the first derivative vector of the log likelihood (minus the score). |
hessian |
minus the second derivative matrix of the log likelihood (observed Fisher information). |