Description Usage Arguments Value
A function to perform a permutation step, so that the process can be deployed in parallel.
1 2 3 4 5 6 7 8 9 10 11 | perform.permutation.step(
perm.ind,
perm.dt,
data.dt,
cluster.dt,
sequence.dt,
hypothetical.data.dt,
comparison.within = c("cluster", "period")[1],
stat.func = c(test.wilcox.dt, test.f.effect.dt)[[1]],
progress.bar = NULL
)
|
perm.ind |
Index 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. |
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. |
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. |
comparison.within |
Will comparisons be within cluster (i.e. between period), or within period (i.e. within cluster). |
stat.func |
What statistic will be used, there is a wilcox and f.effect as I'm writing this. (Default: Wilcox) |
progress.bar |
Should be a text progress bar if you want one. |
A data.table with the stat separated by period and permutation number.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.