tb_simu_cov_es | R Documentation |
Simulate covariates based on existing real studies
tb_simu_cov_es(
dta_es,
v_covs,
n = 500,
label_arm = "ARM",
label_id = "SUBJID",
label_randt = "RANDT",
rnd_ratio_trt = 1,
replace = TRUE,
rand_corr = 0.5,
...,
seed = NULL
)
dta_es |
Existing study data |
v_covs |
Vector of covariates to be sampled |
n |
Sample size for two arms |
label_arm |
Column name for Arm in the result |
label_id |
Column name for patient id in the existing data |
rnd_ratio_trt |
Randomization ratio vs. control (=1) |
replace |
Sample with or without replacement |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.