permute.clusters.to.sequence: Permutes clusters to a sequence, using the permutation in...

Description Usage Arguments Value

Description

Permutes clusters to a sequence, using the permutation in column perm.ind from perm.dt, uses hypothetical.data.dt to assign conditions for speed.

Usage

1
2
3
4
5
6
permute.clusters.to.sequence(
  perm.ind,
  perm.dt,
  hypothetical.data.dt,
  exclude.transition = T
)

Arguments

perm.ind

Number of permutation column in perm.dt that should be used.

perm.dt

Precalculated table of how to permute clusters to sequences, with first column being clusters, and then one column for each permutation after that.

hypothetical.data.dt

data.table with hypothetical data point condition assignments if each cluster were in each sequence. Three columns, sequence, cluster (containing all combinations), and data.dt, containing the hypothetical data.dt from only that cluster.

exclude.transition

boolean, should the result exclude data opints from the transition period? (Default = T)

Value

A data.table with permuted data and group assignments.


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