Power Calculation for Stepped Wedge Designs


[Up] [Top]

Documentation for package ‘SteppedPower’ version 0.1.0

Help Pages

compute_wlsPower Compute Power via weighted least squares
construct_CovBlk Construct a Block of the Covariance Matrix
construct_CovMat Construct a Covariance Matrix constructs a (block diagonal) covariance matrix. This function calls 'construct_CovBlk' (or 'construct_CovSubMat' in case of repeated observations of the same individuals) for each block.
construct_CovSubMat Construct a Block of the Covariance Matrix
construct_DesMat Construct the Design Matrix Constructs the design matrix with one column for every (fixed) parameter to be estimated and one row for every cluster for every timepoint. This function calls 'construct_trtMat' to construct a matrix with '#cluster' columns and '#timepoints' rows, indicating treatment status fore each cluster at each timepoint. This is then transformed into the first column of the design matrix. 'construct_CovMat' further calls 'construct_timeajust' to get the fixed effect(s) of the timepoints. Note: Unlike the usual notation, the treatment effect is in the first column (for easier access by higher level functions).
construct_timeadjust Construct the time period adjustment in the design matrix
construct_trtMat Construct Treatment Matrix
plot.DesMat plot.DesMat
plot.wlsPower plot an object of class 'wlsPower'
print.DesMat print.DesMat
print.wlsPower print.wlsPower
SteppedPower-pkg SteppedPower
tTestPwr Compute Power of a Wald Test computes the power of a scaled Wald test given a standard error, an effect size, the degrees of freedom of the t-distribution and a significance level. Computes the exact power, see second example
wlsPower Compute power