Usage
mdes.bira2r1(power=.80, alpha=.05, two.tail=TRUE,
rho2, omega2,
P=.50, g2=0, R12=0, RT22=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.
omega2
treatment effect heterogeneity as ratio of treatment effect variance among level 2 units to the residual variance at level 2.
P
average proportion of level 1 units randomly assigned to treatment within level 2 units.
g2
number of covariates at level 2.
R12
proportion of level 1 variance in the outcome explained by level 1 covariates.
RT22
proportion of treatment effect variance among level 2 units explained by level 2 covariates.
n
harmonic mean of level 1 units across level 2 units (or simple average).
...
to handle extra parameters passed from other functions, do not define any additional parameters.