DataControl-class {simFrame}R Documentation

Class "DataControl"

Description

Class for controlling model-based generation of data.

Objects from the Class

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

Slots

size:
Object of class "numeric" giving the number of observations to be generated.
distribution:
Object of class "function" generating the data, e.g., rnorm (the default) or mvrnorm. It should take a positive integer as its first argument, giving the number of observations to be generated, and return an object that can be coerced to a data.frame.
dots:
Object of class "list" containing additional arguments to be passed to distribution.
colnames:
Object of class "OptCharacter" ; a character vector to be used as column names for the generated data.frame, or NULL.

Extends

Class "VirtualDataControl", directly.

Methods

generate
signature(control = "DataControl"): generate data.

Author(s)

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

See Also

VirtualDataControl, generate

Examples

showClass("DataControl")

[Package simFrame version 0.1.1 Index]