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