Usage
mdes.cra3r3(power=.80, alpha=.05, two.tail=TRUE, rho2, rho3, P=.50, g3=0, R12=0, R22=0, R32=0, n, J, K, ...)
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.
rho3
proportion of variance in the outcome explained by level 3 units.
P
proportion of level 3 units randomly assigned to treatment.
g3
number of covariates at level 3.
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.
R32
proportion of level 3 variance in the outcome explained by level 3 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).
...
to handle extra parameters passed from other functions, do not define any additional parameters.