DARContControl-class {simFrame}R Documentation

Class "DARContControl"

Description

Class for controlling contamination in a simulation experiment. The values of the contaminated observations will be distributed at random (DAR), i.e., they will depend on on the original values.

Objects from the Class

Objects can be created by calls of the form new("DARContControl", ...), DARContControl(...) or ContControl(..., type="DAR").

Slots

target:
Object of class "OptCharacter"; a character vector specifying specifying the variables (columns) to be contaminated, or NULL to contaminate all variables (except the additional ones generated internally).
epsilon:
Object of class "numeric" giving the contamination levels.
group:
Object of class "character" specifying a variable (column) to be used for contaminating whole groups rather than individual observations.
aux:
Object of class "character" specifying an auxiliary variable (column) whose values are used as probability weights for selecting the items (observations or groups) to be contaminated.
fun:
Object of class "function" generating the values of the contamination data. The original values of the observations to be contaminated will be passed as its first argument. Furthermore, it should return an object that can be coerced to a data.frame, containing the contamination data.
dots:
Object of class "list" containing additional arguments to be passed to fun.

Extends

Class "ContControl", directly. Class "VirtualContControl", by class "ContControl", distance 2. Class "OptContControl", by class "ContControl", distance 3.

Methods

No methods defined with class "DARContControl" in the signature.

Author(s)

Andreas Alfons, alfons@statistik.tuwien.ac.at

See Also

DCARContControl, ContControl, VirtualContControl, contaminate

Examples

showClass("DARContControl")

[Package simFrame version 0.1.1 Index]