DCARContControl-class {simFrame}R Documentation

Class "DCARContControl"

Description

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

Objects from the Class

Objects can be created by calls of the form new("DCARContControl", ...), DCARContControl(...) or ContControl(..., type="DCAR") (the latter exists mainly for back compatibility with early draft versions of simFrame).

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 (the same values are used for all observations in the same group).
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.
distribution:
Object of class "function" generating the values of the contamination data, e.g., rnorm (the default) or mvrnorm. It should take a non-negative integer as its first argument, giving the number of items to be created, and 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 distribution.

Extends

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

Methods

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

Author(s)

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

See Also

DARContControl, ContControl, VirtualContControl, contaminate

Examples

showClass("DCARContControl")

[Package simFrame version 0.1.1 Index]