| DCARContControl-class {simFrame} | R Documentation |
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 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).
target:"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:"numeric" giving the
contamination levels.group:"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:"character" specifying an
auxiliary variable (column) whose values are used as probability weights
for selecting the items (observations or groups) to be contaminated.distribution:"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:"list" containing additional
arguments to be passed to distribution.
Class "ContControl", directly.
Class "VirtualContControl", by class "ContControl", distance 2.
Class "OptContControl", by class "ContControl", distance 3.
No methods defined with class "DCARContControl" in the signature.
Andreas Alfons, alfons@statistik.tuwien.ac.at
DARContControl, ContControl,
VirtualContControl, contaminate
showClass("DCARContControl")