Description Usage Arguments Value Examples
Creates a implementation matrix for a given stepped wedge design and grade of intervention implementation pattern
1 | implemMatrix.SWD(nC, nT, nSw, pattern)
|
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 |
Design matrix for SWD model under a grade of intervention implementation pattern
1 2 3 4 5 | 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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.