Internal helper functions for treating LDEstimators in package distrMod

Share:

Description

These functions are used internally by function LDEstimator in package “distrMod”.

Usage

1
2
3
4
5
.prepend(prep, list0, dots = NULL)
.LDMatch(x.0, loc.est.0, disp.est.0, loc.fctal.0, disp.fctal.0,
         ParamFamily.0, loc.est.ctrl.0 = NULL, loc.fctal.ctrl.0=NULL,
         disp.est.ctrl.0 = NULL, disp.fctal.ctrl.0=NULL,
         q.lo.0 =0, q.up.0=Inf, log.q.0 =TRUE, ..., vdbg = FALSE)

Arguments

prep

a vector; to be prepended as first argument in a function; named x internally.

list0

a list to be appended to prep; names are taken over.

dots

an optional list (or NULL) to be appended to prep and list0; names are taken over.

x.0

a vector (numeric) at which to evaluate the LD-match

loc.est.0

a function expecting x (a numeric vector) as first argument; location estimator.

disp.est.0

a function expecting x (a numeric vector) as first argument; dispersion estimator; may only take non-negative values.

loc.fctal.0

a function expecting a distribution object as first argument; location functional.

disp.fctal.0

a function expecting a distribution object as first argument; dispersion functional; may only take non-negative values.

loc.est.ctrl.0

a list (or NULL); optional additional arguments for the location estimator.

disp.est.ctrl.0

a list (or NULL); optional additional arguments for the dispersion estimator.

loc.fctal.ctrl.0

a list (or NULL); optional additional arguments for the location functional.

disp.fctal.ctrl.0

a list (or NULL); optional additional arguments for the dispersion functional.

ParamFamily

an object of class "ParamFamily". The parametric family at which to evaluate the LDEstimator; the respective (main) parameter must contain "scale" and "shape".

q.lo.0

numeric; lower bound for search intervall in shape parameter.

q.up.0

numeric; upper bound for search intervall in shape parameter.

log.q.0

logical; shall the zero search be done on log-scale?

...

further arguments to be passed to location estimator and functional and dispersion estimator and functional.

vdbg

logical; if TRUE, debugging information is shown.

Details

.prepend is used to produce the argument list for the calls to estimators and functionals. This argument list consists of prep (first argument), named x internally, the items of list0 and, if non-NULL, the items of ....

.LDMatch performs the matching of location and dispersion functional against empirical values (without any S4-structure).

Value

.prepend

a named list to be used as arguments in a call.

.LDMatch

a named vector with components "shape" and "scale".

Author(s)

Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de

See Also

Estimate-class

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.