gen_rand_order {crctStepdown} | R Documentation |
Function to generate a stepped-wedge cRCT randomisation allocation. Assumes a baseline and endline period in which no clusters and all clusters have the intervention, respectively.
gen_rand_order(nJ, nT)
nJ |
Number of clusters |
nT |
Number of time points |
A data frame with columns cl and t indicating the time