Learn R Programming

crctStepdown (version 0.5.2)

gen_rand_order: 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)

Value

A data frame with columns cl and t indicating the time

Arguments

nJ

Number of clusters

nT

Number of time points

Examples

Run this code
 gen_rand_order(10,7)

Run the code above in your browser using DataLab