The two functions are adapted from the R package longpower by Michael C. Donohue. More will be added later.
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"))
N
Ra
ra
sigmaa
Rb
rb
sigmab
lambda
delta
Significance level
Statistical power
alternative hypothesis
rho
times
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)