mdes.bira4r1 calculates minimum detectable effect size (MDES) for designs with 4-levels
    where level 1 units are randomly assigned to treatment and control groups within level 2 units (random blocks).
mdes.bira4r1(power=.80, alpha=.05, two.tail=TRUE, rho2, rho3, rho4, omega2, omega3, omega4, P=.50, R12=0, RT22=0, RT32=0, RT42=0, g4=0, n, J, K, L, ...)TRUE for two-tailed hypothesis testing, FALSE for one-tailed hypothesis testing. MDES formula and further definition of design parameters can be found in Dong & Maynard (2013).
Dong & Maynard (2013). PowerUp!: A Tool for Calculating Minum Detectable Effect Sizes and Minimum Required Sample Sizes for Experimental and Quasi-Experimental Design Studies,Journal of Research on Educational Effectiveness, 6(1), 24-6.
power.bira4r1, mrss.bira4r1, optimal.bira4r1
## Not run: 
# 
#   mdes.bira4r1(rho4=.05, rho3=.15, rho2=.15,
#               omega4=.50, omega3=.50, omega2=.50,
#               n=10, J=4, L=27, K=4)
#   ## End(Not run)
Run the code above in your browser using DataLab