Learn R Programming

simFrame (version 0.1.2)

DARContControl: Create objects of class "DARContControl"

Description

Create objects of class "DARContControl".

Usage

DARContControl(...)

Arguments

...
arguments passed to new("DARContControl", ...).

Value

  • An object of class "DARContControl".

See Also

DARContControl

Examples

Run this code
require(MASS)
mu <- rep(0, 2)
Sigma <- matrix(c(1, 0.5, 0.5, 1), 2, 2)
foo <- generate(size = 10, distribution = mvrnorm, 
    dots = list(mu = mu, Sigma = Sigma))
cc <- DARContControl(target = "V2",
    epsilon = 0.2, fun = function(x) x * 100)
contaminate(foo, cc)

Run the code above in your browser using DataLab