Description Usage Arguments Value
This function simulates CRTs for a range of cluster and participants
1 2 3 4 5 6 7 8 | sim_crt(
n_clusters = 10,
n_cluster_individuals = 100,
intercept = 0.2,
trt_effect = 2,
s2b = 0.05,
s2w = 0.95
)
|
n_clusters |
Number of cluster in the trial |
n_cluster_individuals |
average number of individuals per cluster |
intercept |
the value of the outcome in the control group |
trt_effect |
the treatment effect in the trial |
s2b |
The between cluster standard devation |
s2w |
The within cluster standard devation |
Data.frame with cluster_id, ind_id, trt, outcome.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.