Description Usage Arguments Value
Removes rows from periods/clusters that do not have participants in both the control and intervention conditions. Needs the conditions attached, so will attempt to do so if not already done.
1 2 3 4 5 6 | remove.rows.with.no.comparison(
data.dt,
cluster.dt = NULL,
sequence.dt = NULL,
remove.type = c("cluster", "period")[1]
)
|
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. |
remove.type |
character indicating what to compare on. |
data.dt with rows removed that did not have a corresponding control or intervention.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.