implemMatrix.SWD {samplingDataCRT} | R Documentation |
Design matrix for SWD model under a grade of intervention implementation pattern
Description
Creates a implementation matrix for a given stepped wedge design and grade of intervention implementation pattern
Usage
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 grade of intervention implementation pattern, which gives the derivation from 100 percent effectiveness over time |
Value
Design matrix for SWD model under a grade of intervention implementation pattern
Examples
implemMatrix.SWD(5,6,1, c(seq(0.4,1,0.2),1))
K<-6 #measurement (or timepoints)
I<-10 #Cluster
implemMatrix.SWD(nC=I, nT=K, nSw=2, pattern=c(seq(0.4,1,0.2),1))
[Package samplingDataCRT version 1.0 Index]