sw.design.mat: Creates a design matrix for a Stepped Wedge Trial

View source: R/SWSamp.R

sw.design.matR Documentation

Creates a design matrix for a Stepped Wedge Trial

Description

Constructs a basic SWT design matrix

Usage

sw.design.mat(I, J, H = NULL)

Arguments

I

Number of clusters

J

Number of time points

H

Number of units randomised at each time point

Value

Returns a design matrix X

Author(s)

Gianluca Baio

References

Baio, G; Copas, A; Ambler, G; Hargreaves, J; Beard, E; and Omar, RZ Sample size calculation for a stepped wedge trial. Trials, 16:354. Aug 2015.


giabaio/SWSamp documentation built on Nov. 14, 2022, 2:24 p.m.