Internal helper functions for treating MCEstimators in package distrMod
These functions are used internally by functions MCEstimator
and
MLEstimator
in package “distrMod”.
.negLoglikelihood(x, Distribution, ..., dropZeroDensity = TRUE) .process.meCalcRes(res, PFam, trafo, res.name, call, asvar.fct, check.validity, ..., toClass="", .withEvalAsVar = TRUE, x = NULL, nmsffx = "") .callParamFamParameter(PFam, theta, idx, nuis, fixed)
x |
numeric; the data at which to evaluate the negative log likelihood |
Distribution |
an object of class |
... |
in case of |
res |
a list; the return value of |
PFam |
an object of class |
trafo |
the trafo matrix or a function returning it or |
res.name |
the name of the corresponding estimator |
call |
the original call with which the estimate was produced |
asvar.fct |
a function producing an asymptotic covariance matrix or |
validity.check |
logical: shall return parameter value be checked for validity? |
theta |
parameter vector |
idx |
indices of the main part of the component |
nuis |
nuisance part of the parameter |
fixed |
fixed part of the parameter |
.withEvalAsVar |
logical: shall slot |
dropZeroDensity |
logical of length 1; shall observations with
density zero be dropped? Optimizers like |
nmsffx |
character: a potential suffix to be appended to the estimator name. |
toClass |
character: if not |
.negLoglikelihood
uses the log
-argument of the corresponding d
-slot
of the distribution if available; else produces log(d(Distribution)(x))
.
.process.meCalcRes
processes the resulting return value list of methods
mceCalc
and mleCalc
to give a corresponding object of
class MCEstimate
.
.callParamFamParameter
determines by means of the family-slot
parameter whether this is of a subclass of ParamFamParameter
,
and if so manipulates the call to generating function ParamFamParameter
accordingly (such that the result has the convenient type and the
convenient extra slots).
negLoglikelihood |
the (numeric) value of the negative log likelihood evaluated at the data and the given distribution |
.get.criterion.fct |
a function as described in section “details” |
.process.meCalcRes |
an object of class |
.callParamFamParameter |
an object of class |
Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.