remove.rows.with.no.comparison: Removes rows from periods/clusters that do not have...

Description Usage Arguments Value

Description

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.

Usage

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]
)

Arguments

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.

Value

data.dt with rows removed that did not have a corresponding control or intervention.


mattmoo/SteppedWedgeAnalysis documentation built on Jan. 14, 2020, 12:25 a.m.