generate.hypothetical.data.dt: Precalculate the intervention and control groups for each...

Description Usage Arguments Value

Description

Precalculate the intervention and control groups for each site for each cluster (i.e. sequence). This could fail for very large data sets.

Usage

1
2
3
4
5
6
generate.hypothetical.data.dt(
  data.dt,
  cluster.dt,
  sequence.dt,
  progress.bar = T
)

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.

progress.bar

Display a progress bar. A little bit of overhead. Completion times will be echoed regardless.

...

Passed on to the test

Value

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.


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