Description Usage Arguments Value
Precalculate the intervention and control groups for each site for each cluster (i.e. sequence). This could fail for very large data sets.
1 2 3 4 5 6 | generate.hypothetical.data.dt(
data.dt,
cluster.dt,
sequence.dt,
progress.bar = T
)
|
data.dt |
data.table with columns participant, cluster, time, and outcome. Outcome should be continuous. |
cluster.dt |
data.table with the correspondence between cluster and sequence, with columns cluster and sequence. |
sequence.dt |
data.table with information about the sequences, with columns sequence, transition.time, and intervention.time. |
progress.bar |
Display a progress bar. A little bit of overhead. Completion times will be echoed regardless. |
... |
Passed on to the test |
A data.table with a row for each combination of cluster and sequence, and a data.table of the participants for that cluster assigned on that basis.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.