WebPower (version 0.5)

wp.mmrm: Power analysis for longitudinal data analysis

Description

The two functions are adapted from the R package longpower by Michael C. Donohue. More will be added later.

Usage

wp.mmrm(N = NULL, Ra = NULL, ra = NULL, sigmaa = NULL, 
Rb = NULL, rb = NULL, sigmab = NULL, lambda = 1, 
delta = NULL, alpha = 0.05, power = NULL, 
alternative = c("two.sided", "one.sided"))
wp.mmrm.ar1(N = NULL, rho = NULL, ra = NULL, sigmaa = NULL, 
rb = NULL, sigmab = NULL, lambda = 1, times = 1:length(ra), 
delta = NULL, alpha = 0.05, power = NULL, 
alternative = c("two.sided", "one.sided"))

Arguments

N

N

Ra

Ra

ra

ra

sigmaa

sigmaa

Rb

Rb

rb

rb

sigmab

sigmab

lambda

lambda

delta

delta

alpha

Significance level

power

Statistical power

alternative

alternative hypothesis

rho

rho

times

times

References

Lu, K., Luo, X., Chen, P.-Y. (2008) Sample size estimation for repeated measures analysis in randomized clinical trials with missing data. International Journal of Biostatistics, 4, (1)