Learn R Programming

simFrame (version 0.2)

DataControl-class: Class "DataControl"

Description

Class for controlling model-based generation of data.

Arguments

Objects from the Class

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

Extends

Class "VirtualDataControl", directly.

UML class diagram

A slightly simplified UML class diagram of the framework can be found in Figure 1 of the package vignette An Object-Oriented Framework for Statistical Simulation: The RPackage simFrame. Use vignette("simFrame-intro") to view this vignette.

See Also

"VirtualDataControl", generate

Examples

Run this code
require(mvtnorm)
mean <- rep(0, 2)
sigma <- matrix(c(1, 0.5, 0.5, 1), 2, 2)
dc <- DataControl(size = 10, distribution = rmvnorm, 
    dots = list(mean = mean, sigma = sigma))
generate(dc)

Run the code above in your browser using DataLab