gen_rand_order: Function to generate a stepped-wedge cRCT randomisation...

View source: R/sims.R

gen_rand_orderR Documentation

Function to generate a stepped-wedge cRCT randomisation allocation

Description

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.

Usage

gen_rand_order(nJ, nT)

Arguments

nJ

Number of clusters

nT

Number of time points

Value

A data frame with columns cl and t indicating the time

Examples

 gen_rand_order(10,7)

samuel-watson/crctStepdown documentation built on Feb. 8, 2024, 3:57 p.m.