implemMatrix.SWD: Design matrix for SWD model under an intervention...

Description Usage Arguments Value Examples

Description

Creates a implementation matrix for a given stepped wedge design and intervention effectiveness pattern

Usage

1
implemMatrix.SWD(nC, nT, nSw, pattern)

Arguments

nC

Number of clusters

nT

Number of timepoint

nSw

number of clusters switches from control to treatment at each timepoint

pattern

a vector for intervention effectiveness pattern gives the derivation from 100 percent effectiveness over time

Value

intervention effectivness pattern matrix as design matrix of size noCluster x noTimepoints

Examples

1
2
implemMatrix.SWD(5,6,1, c(seq(0.4,1,0.2),1))
implemMatrix.SWD(10,6,2, c(seq(1,0.4,-0.2),1))

trutscheld/SWDsampling documentation built on June 1, 2019, 1:52 a.m.