generate_tutorial_survival_data.Rd
Simulation data sets for comparing metalearners on estimating CATE in survival outcomes
generate_tutorial_survival_data(
n,
p,
p.b = NULL,
p.i = NULL,
f.b = NULL,
f.i = NULL,
pi = 0.5,
beta = 1,
gamma = 1,
rho = 2,
cen.scale = 4,
cenM = "indX",
n.mc = 10000,
t0 = NULL,
Y.max = NULL,
dgp = "fcomplex"
)
The sample size
The number of covariates
The number of variables in the main effect function
The number of variables in the interaction term
The function form of the main effects (linear / nonlinear)
The function form of the treatment-covariate interactions (linear / nonlinear)
The propensity score
The coefficients of variables in the main effect
The coefficients of variables in the interaction
The shape parameter in Weibull distribution for censoring time
The scale parameter in Weibull distribution for censoring time
The complexity of censoring mechanism (dependent / independent to covariates)
The number of monte carlo draws to estimate the treatment effect with. Default is 10000.
The time of interest
The maximum failure time
The type of DGP
A simulation data set
# \donttest{
n <- 1000; p <- 25
data <- generate_tutorial_survival_data(n, p,
p.b = 1, p.i = 1,
f.b = "L", f.i = "L",
t0 = 0.2)
cate.true <- generate_tutorial_survival_data(n, p,
p.b = 1, p.i = 1,
f.b = "L", f.i = "L",
t0 = 0.2)$catesp
# }