Learn R Programming

PowerUpR (version 0.1.2)

power.bcra4r2: Model 4.3: Statistical Power Calculator for 4-Level Random Effects Block Random Assignment Designs, Treatment at Level 2

Description

power.bcra4r2 calculates statistical power for designs with 4-levels where level 2 units are randomly assigned to treatment and control groups within level 3 units (random blocks).

Usage

power.bcra4r2(mdes=.25, alpha=.05, two.tail=TRUE, rho2, rho3, rho4, omega3, omega4, P=.50, R12=0, R22=0, RT32=0, RT42=0, g4=0, n, J, K, L, ...)

Arguments

mdes
minimum detectable effect size.
alpha
probability of type I error.
two.tail
logical; TRUE for two-tailed hypothesis testing, FALSE for one-tailed hypothesis testing.
rho2
proportion of variance in the outcome explained by level 2 units.
rho3
proportion of variance in the outcome explained by level 3 units.
rho4
proportion of variance in the outcome explained by level 4 units.
omega3
treatment effect heterogeneity as ratio of treatment effect variance among level 3 units to the residual variance at level 3.
omega4
treatment effect heterogeneity as ratio of treatment effect variance among level 4 units to the residual variance at level 4.
P
average proportion of level 2 units randomly assigned to treatment within level 3 units.
g4
number of covariates at level 4.
R12
proportion of level 1 variance in the outcome explained by level 1 covariates.
R22
proportion of level 2 variance in the outcome explained by level 2 covariates.
RT32
proportion of treatment effect variance among level 3 units explained by level 3 covariates.
RT42
proportion of treatment effect variance among level 4 units explained by level 4 covariates.
n
harmonic mean of level 1 units across level 2 units (or simple average).
J
harmonic mean of level 2 units across level 3 units (or simple average).
K
harmonic mean of level 3 units across level 3 units (or simple average).
L
number of level 4 units.
...
to handle extra parameters passed from other functions, do not define any additional parameters.

Value

Details

Power formula was derived within power analysis framework descibed by Hedges & Rhoads (2009). Further definition of design parameters can be found in Dong & Maynard (2013) and Hedges & Rhoads (2009).

References

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.

Hedges, L. & Rhoads, C.(2009). Statistical Power Analysis in Education Research (NCSER 2010-3006). Washington, DC: National Center for Special Education Research, Institute of Education Sciences, U.S. Department of Education. This report is available on the IES website at http://ies.ed.gov/ncser/.

See Also

mdes.bcra4r2, mrss.bcra4r2, optimal.bcra4r2

Examples

Run this code
## Not run: 
# 
#     power.bcra4r2(rho4=.05, rho3=.15, rho2=.15,
#                  omega4=.50, omega3=.50,
#                  n=10, J=4, L=27, K=4)
#   ## End(Not run)

Run the code above in your browser using DataLab