Description Usage Arguments Value Examples
Performs the mean values of a given Stepped wedge design (SWD)
1 | buildmodeldesign(I, TP, mu, theta, beta.j, sigma.alpha, X.i.j.0, X.i.j = NULL)
|
I |
number of clusters (design parameter) |
TP |
number of timepoints (design parameter) |
mu |
baseline mean (model parameter) |
theta |
treatment effect (model parameter) |
beta.j |
vector of time trents (model parameter) |
sigma.alpha |
between cluster variability as standard deviation (model parameter) |
X.i.j.0 |
assumed treatment model matrix for a SWD study (model parameter) |
X.i.j |
data model matrix of real intervention implementation (model parameter), by default (NULL) the same as the X.i.j.0 |
Data frame with mean intensities corresponding to the SWD model and full model parameter information
1 2 3 4 5 | noCl<-10
noT<-6
switches<-2
DM<-designMatrix.SWD(noCl,noT,switches)
buildmodeldesign(I=noCl,TP=noT, mu=0,theta=1,beta.j=rep(1,noT),sigma.alpha=0.5, X.i.j.0=DM)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.