calculate.icc.dt.of.simulations: Generates a number of simulated datasets, and assesses the...

Description Usage Arguments Value

Description

Generates a number of simulated datasets, and assesses the ICC of each. Parameter lists are as provided to generate.sim.parameters.dt and generate.confound.interventions.parameters.dt, but if there are vectors for any of the values, these will be randomly sampled, generating multiple scenarios.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
calculate.icc.dt.of.simulations(
  cluster.dt,
  sequence.dt,
  sim.parameters.args.list,
  confound.interventions.args.list,
  n.iterations = 20,
  progress.bar = T,
  binarise.data = 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.args.list

List of parameters, as provided to generate.sim.parameters.dt

confound.interventions.args.list

List of parameters, as provided to confound.interventions.args.list

n.iterations

Integer number of *total* iterations to assess (i.e. not the number per scenario)

binary.data

Generate binary data (Default: F)

Value

A data.table with a column for each simulation parameter, and a column named ICC added.


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