Description Usage Arguments Value Examples
View source: R/data.generation.R
Data Generation
| 1 2 3 4 5 6 | data.generation(model = "CTE", numOfSamples = 1000,
  numOfPreSamples = NULL, numOfCovariates = 2,
  distributionForCovariates = "normal", distributionForIVs = "normal",
  distributionForNoise = "normal", distributionForTreatment = "normal",
  parametricCurveOption = "linear", trimLowerBound = -10,
  trimUpperBound = 10, sd, noise.sd = 1)
 | 
| model | choose from "CTE", "IV" | 
| numOfSamples | numer of samples, default = 1000. | 
| numOfPreSamples | number of samples before sample trimming. As default, we set this as NULL | 
| numOfCovariates | dimension of covariates, default = 2. | 
| distributionForCovariates | choose from normal, uniform, student distributions. | 
| distributionForIVs | choose from normal, uniform, student distributions. | 
| distributionForNoise | choose from normal, uniform, student distributions. | 
| distributionForTreatment | choose from normal, uniform, student distributions. | 
| parametricCurveOption | choose from "linear", "polynom", "polynom2", "polynom3", "mixture". | 
| trimLowerBound | the lower bound of treatment trimming t. | 
| trimUpperBound | the upper bound of treatment trimming t. | 
| sd | t = ∑ x_i + ε, the standard error of ε | 
| noise.sd | the standard error of response generation assuming the response model is based on a normal distribution | 
frame of generated data.
| 1 2 3 4 5 6 7 8 9 | data.generation(model = "CTE", numOfSamples = 1000,
numOfCovariates = 2,
distributionForCovariates = "normal",
distributionForNoise = "normal",
distributionForTreatment = "normal",
parametricCurveOption = "linear",
trimLowerBound = -10,
trimUpperBound = 10,
sd = 8)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.