NAControl-class {simFrame}R Documentation

Class "NAControl"

Description

Class for controlling the insertion of missing values in a simulation experiment.

Objects from the Class

Objects can be created by calls of the form new("NAControl", ...) or NAControl(...).

Slots

target:
Object of class "OptCharacter"; a character vector specifying the variables (columns) in which missing values should be inserted, or NULL to insert missing values in all variables (except the additional ones generated internally).
NArate:
Object of class "NumericMatrix" giving the missing value rates, which may be selected individually for the target variables. In case of a vector, the same missing value rates are used for all target variables. In case of a matrix, on the other hand, the missing value rates to be used for each target variable are given by the respective column.
group:
Object of class "character" specifying a variable (column) to be used for setting whole groups to NA rather than individual values.
aux:
Object of class "character" specifying an auxiliary variable (column) whose values are used as probability weights for selecting the values to be set to NA.

Extends

Class "VirtualNAControl", directly. Class "OptNAControl", by class "VirtualNAControl", distance 2.

Methods

setNA
signature(x = "data.frame", control = "NAControl"): set missing values.

Author(s)

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

See Also

VirtualNAControl, setNA

Examples

showClass("NAControl")

[Package simFrame version 0.1.1 Index]