Learn R Programming

RobAStBase (version 1.2.6)

internals_for_RobAStBase: Internal / Helper functions of package RobAStBase

Description

These functions are used internally by package RobAStBase.

Usage

.eq(x,y = 0*x, tol = 1e-7)
.getDistr(L2Fam)
.evalListRec(list0)
.msapply(X, FUN, ..., simplify = TRUE, USE.NAMES = TRUE)
.fixInLiesInSupport(IC, distr)
.filterEargsWEargList(dots)

Value

.eq

(a vector of) logical.

.getDistr

character.

.evalListRec

a list.

.msapply

as base::sapply.

Arguments

x

a (numeric) vector

y

a (numeric) vector

tol

numeric --- tolerance

L2Fam

object of class L2ParamFamily

list0

a list

X

like sapply: a vector (atomic or list) or an expression object. Other objects (including classed objects) will be coerced by base::as.list.

FUN

like sapply: the function to be applied to each element of X. See also sapply

...

like sapply: optional arguments to FUN.

simplify

like sapply: logical or character string; should the result be simplified to a vector, matrix or higher dimensional array if possible? See also sapply

USE.NAMES

like sapply: logical; if TRUE and if X is character, use X as names for the result unless it had names already.

IC

an object of class IC, i.e., it expects a slot Curve like an IC.

distr

a distribution

dots

a list, obtained by list(...).

Author

Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de

Details

.eq checks equality of two vectors up to a given precision;

.getDistr produces a string with the class of the family and its parameter value;

.evalListRec recursively goes through the entries of a list, evaluating each entry.

.msapply like base::.sapply but catches NULL/zero-length arguments X.

.fixInLiesInSupport inserts a check into the function(s) in the Map slot of the influence curve (IC), whether the arguments at which the IC is to be evaluated lie in the support of the distribution and accordingly either returns the function value of the IC, or 0; the check is done via calling liesInSupport.

.filterEargsWEargList calls distrEx::.filterEargs to filter out of dots all relevant arguments for the integrators, integrate, GLIntegrate, and distrExIntegrate; in addition, .filterEargsWEargList checks if an argument "E.argList" is hidden in the dots argument and if so, filters in its entries; in case of collisions with entries filtered from distrEx::.filterEargs, it overwrites existing entries. In the end it returns a list with the filtered items.