generate.data.dt: Creates a data.table with participants and simulates data for...

Description Usage Arguments Value

Description

Creates a data.table with participants and simulates data for them.

Usage

1
2
3
4
5
6
7
8
generate.data.dt(
  cluster.dt,
  sequence.dt,
  sim.parameters.dt,
  confound.interventions.parameters.dt,
  return.intermediaries = F,
  max.time = NULL
)

Arguments

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.

sim.parameters.dt

The data.table generated by generate.sim.parameters.dt

confound.interventions.parameters.dt

The data.table generated by generate.confound.interventions.parameters.dt

return.intermediaries

If true, intermediaries will be returned (return type will be list), useful for plotting.

Value

A data.table with simulated data, or a list with simulated data (data.dt), all separate effects (effects.dt), and summed effects (summed.effects.dt)


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