bira2c1: Two-Level Blocked (Constant Treatment Effect) Individual-level Random Assignment Design, Treatment at Level 1
Description
Use mdes.bira2c1() to calculate minimum detectable effect size, power.bira2c1() to calculate statistical power, and mrss.bira2c1() to calculate minimum required sample size.
Usage
mdes.bira2c1(power=.80, alpha=.05, two.tailed=TRUE,
p=.50, g1=0, r21=0,
n, J)
power.bira2c1(es=.25, alpha=.05, two.tailed=TRUE,
p=.50, g1=0, r21=0,
n, J)
mrss.bira2c1(es=.25, power=.80, alpha=.05, two.tailed=TRUE,
n, J0=10, tol=.10,
p=.50, g1=0, r21=0)
Arguments
power
statistical power \((1-\beta)\).
es
effect size.
alpha
probability of type I error.
two.tailed
logical; TRUE for two-tailed hypothesis testing, FALSE for one-tailed hypothesis testing.
p
average proportion of level 1 units randomly assigned to treatment within level 2 units.
g1
number of covariates at level 1.
r21
proportion of level 1 variance in the outcome explained by level 1 covariates.
n
harmonic mean of level 1 units across level 2 units (or simple average).