Description Usage Arguments Value References
Due to its nature of composite null hypothesis, it is not trivial to derive the analytical power calculation. Monte Carlo simulation offers a straightforward approach by generating p-value random numbers.
1 |
alpha |
desired significance level. Default to 0.05 |
n |
number of subjects |
m |
number of repeated measures for each subject |
s2w |
within subject variation |
s2b |
between subject variation |
mu |
mean measure difference |
rho |
null threshold of acceptable RMS value |
REML |
using REML instead of MLE. Default to TRUE. |
B |
total number of Monte Carlo simulations. Default to 1000. |
computed power
p-values from Monte Carlo simulations
Bai,Y., Wang,Z., Lystig,T.C., and Wu,B. (2018) Statistical test with sample size and power calculation for paired repeated measures designs of method comparison studies.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.