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)

crctStepdown documentation built on Sept. 14, 2023, 5:06 p.m.