Description Usage Arguments Value
Data generation function for simulation study
1 | data_gen(n, scenario, ratio, overlap, all_confounder)
|
n |
total number of units for simulation |
scenario |
scenario indicate simulation scenario 1 or scenario 2 |
overlap |
levels of covariate overlap, weak/strong/moderate overlap |
all_confounder |
For simulation scenario 2, moderate covariate overlap, whether it is lacking for a true confounder |
list with the 5 elements. Nested within each list, it contains
n: |
Number of units for simulation |
trt_ind: |
A data frame with number of rows equals to n and 11 columns |
Y: |
Observed binary outcome for 3 treatments |
Yobs: |
Observed binary outcome |
Est: |
True ATE/ATT for RD/RR/OR |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.