implemMatrix.SWD: Design matrix for SWD model under a grade of intervention...

Description Usage Arguments Value Examples

View source: R/designMatrix.R

Description

Creates a implementation matrix for a given stepped wedge design and grade of intervention implementation 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 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

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))

samplingDataCRT documentation built on May 2, 2019, 9:25 a.m.