Methods for functions mceCalc and mleCalc in Package ‘distrMod’
Methods for functions mceCalc
and mleCalc
in package distrMod;
mceCalc(x, PFam, ...) mleCalc(x, PFam, ...) ## S4 method for signature 'numeric,ParamFamily' mceCalc(x, PFam, criterion, startPar = NULL, penalty = 1e20, crit.name, Infos = NULL, validity.check = TRUE, withthetaPar = FALSE,...) ## S4 method for signature 'numeric,ParamFamily' mleCalc(x, PFam, startPar = NULL, penalty = 1e20, dropZeroDensity = TRUE, Infos = NULL, validity.check = TRUE, ...) ## S4 method for signature 'numeric,BinomFamily' mleCalc(x, PFam, ...) ## S4 method for signature 'numeric,PoisFamily' mleCalc(x, PFam, ...) ## S4 method for signature 'numeric,NormLocationFamily' mleCalc(x, PFam, ...) ## S4 method for signature 'numeric,NormScaleFamily' mleCalc(x, PFam, ...) ## S4 method for signature 'numeric,NormLocationScaleFamily' mleCalc(x, PFam, ...)
x |
numeric; data at which to evaluate the estimator |
PFam |
an object of class |
criterion |
a function measuring the “goodness of fit” |
startPar |
in case |
penalty |
numeric; penalizes non-permitted parameter values |
crit.name |
character; the name of the criterion; may be missing |
withthetaPar |
logical; shall Parameter theta be transmitted? |
Infos |
matrix; info slot to be filled in object of class |
validity.check |
logical: shall return parameter value be checked for validity? |
dropZeroDensity |
logical of length 1; shall observations with
density zero be dropped? Optimizers like |
... |
additional argument(s) for |
mceCalc
is used internally by function MCEstimator
to allow
for method dispatch according to argument PFam
;
similarly, and for the same purpose mleCalc
is used internally by function
MLEstimator
.
This way we / or any other developper can write particular methods
for special cases where we may avoid using numerical optimization
without interfering with existing code.
For programming one's own mleCalc
/ mceCalc
methods, there is
the helper function meRes
to produce consistent return values.
a list with components
|
— the estimate as a named vector of |
|
— the criterion value (i.e.; a |
|
— the name of the estimator |
|
— estimate coerced to class |
|
— a function with the named components of |
|
— a character reporting how the estimate was obtained, i.e.,
by |
crit.name |
character; the name of the criterion; may be |
Infos |
matrix; info slot to be filled in object of class |
samplesize |
numeric; sample size of |
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.