Description Usage Arguments Value
View source: R/data.generation.R
Data Generation wrap-up (short-cut name: dg.w)
1 2 3 4 | data.generation.wrap(simu = 100, samples = 1000, covariates = 2, model,
trimLowerBound = -4, trimUpperBound = 4,
parametricCurveOption = "polynom", ncores = ncores, sd = 8,
noise.sd = 1)
|
simu |
number of times one would run, default = 100. |
samples |
number of samples, default = 1000 |
covariates |
dimension of covariates |
model |
choose from "CTE", "IV" |
trimLowerBound |
the lower bound of treatment trimming t, default = -4. |
trimUpperBound |
the lower bound of treatment trimming t, default = 4. |
parametricCurveOption |
choose from "linear", "polynom", "polynom2", "polynom3", "mixture". |
ncores |
number of cores we use |
sd |
t = ∑ x_i + ε, the standard error of ε, choose from 1, 2, 3, 5, 8, 10, 15 |
noise.sd |
the standard error of response generation assuming the response model is based on a normal distribution |
list that contains two parts: $data contains generated data, $true contains the true underlying response and the density at grid on treatment
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.