Description Usage Arguments Value Note Author(s) See Also Examples
Create objects of a class inheriting from "ContControl"
.
1 | ContControl(..., type = c("DCAR", "DAR"))
|
... |
arguments passed to |
type |
a character string specifying whether a control object of class
|
If type = "DCAR"
, an object of class "DCARContControl"
.
If type = "DAR"
, an object of class "DARContControl"
.
This constructor exists mainly for back compatibility with early draft
versions of simFrame
.
Andreas Alfons
"DCARContControl"
, "DARContControl"
,
"ContControl"
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## distributed completely at random
data(eusilcP)
sam <- draw(eusilcP[, c("id", "eqIncome")], size = 20)
dcarc <- ContControl(target = "eqIncome", epsilon = 0.05,
dots = list(mean = 5e+05, sd = 10000), type = "DCAR")
contaminate(sam, dcarc)
## distributed at random
foo <- generate(size = 10, distribution = rnorm,
dots = list(mean = 0, sd = 2))
darc <- ContControl(target = "V1", epsilon = 0.2,
fun = function(x) x * 100, type = "DAR")
contaminate(foo, darc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.