Learn R Programming

PowerUpR (version 0.1.2)

mdes.cra2r2: Model 3.1: MDES Calculator for 2-Level Cluster Random Assignment Design, Treatment at Level 2

Description

mdes.cra2r2 calculates minimum detectable effect size (MDES) for designs with 2-levels where level 2 units are randomly assigned to treatment and control groups.

Usage

mdes.cra2r2(power=.80, alpha=.05, two.tail=TRUE, rho2, P=.50, g2=0, R12=0, R22=0, n, J, ...)

Arguments

power
statistical power (1 - type II error).
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.
P
proportion of level 2 units randomly assigned to treatment.
g2
number of covariates at level 2.
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.
n
harmonic mean of level 1 units across level 2 units (or simple average).
J
level 2 sample size.
...
to handle extra parameters passed from other functions, do not define any additional parameters.

Value

Details

MDES formula and further definition of design parameters can be found in Dong & Maynard (2013).

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.

See Also

power.cra2r2, mrss.cra2r2, optimal.cra2r2

Examples

Run this code
## Not run: 
# 
#  mdes.cra2r2(rho2=.20,
#              n=4, J=20)
# 
#   ## End(Not run)

Run the code above in your browser using DataLab