Simulate an experimental dataset with selection bias
selDGP.Rd
Simulate an experimental dataset with selection bias
Arguments
- n
sample size (default 10000)
- p
number of covariates (default 10)
- xb
bounds of uniform random variables for X (default -1, 1)
- piF
propensity score function (fixed number indicates simple randomization - default 1/2)
- tauF
treatment heterogeneity function (nonlinear by default)
- y0F
baseline outcome function (nonlinear by default)
- selF
selection bias function (nonlinear by default). When null, no missingness is introduced.