true.data.generation: True Data Generation

Description Usage Arguments Value

View source: R/true.data.generation.R

Description

True Data Generation

Usage

1
2
3
4
true.data.generation(numOfCovariates = 2,
  distributionForCovariates = "normal", distributionForNoise = "normal",
  distributionForTreatment = "normal", parametricCurveOption = "polynom",
  trimLowerBound = -4, trimUpperBound = 4, nrep = 1e+06)

Arguments

numOfCovariates

dimension of covariates

distributionForCovariates

default = "normal", choose from normal, student, uniform distributions

distributionForNoise

default = "normal", choose from normal, student, uniform distributions

distributionForTreatment

default = "normal", choose from normal, student, uniform distributions

parametricCurveOption

default = "linear", choose from "linear", "polynom", "polynom2", "polynom3", "mixture"

trimLowerBound

the lower bound of trimming treatment vector

trimUpperBound

the upper bound of trimming treatment vector

nrep

default = 1000000, numerically calculate the true density by setting equi-distant nrep sample points for approximation

Value

a list of true response value "true.y" evaluated at "grid", with treatment density "density".


fadedsoul/cdml documentation built on May 14, 2019, 8:01 a.m.