mrss.bira2c1
calculates minimum required sample size (MRSS) for designs with 2-levels
where level 1 units are randomly assigned to treatment and control groups within level 2 units (school intercepts only).
mrss.bira2c1(mdes=.25, power=.80, alpha=.05, two.tail=TRUE, gm=2, ncase=10, constrain="power", n=NULL, J=NULL, J0=10, n0=10, tol=.10, P=.50, g1=0, R12=0)
TRUE
for two-tailed hypothesis testing, FALSE
for one-tailed hypothesis testing."cost"
, "power"
, or "mdes"
.Level 2 and level 1 sample sizes (J
and n
) are calculated
using an iterative procedure described in Dong & Maynard (2013) due to
model degrees of freedom dependency on J
and n
.
MRSS calculator returns values that are not integer. Rounding may produce
MDES and power values different from what was specified,
therefore an integer solution is approximated using brute force (See Value section).
Integer solution to MRSS for an omitted level assumes that specified sample sizes
for remaining levels may subject to some changes.
Further definition of design parameters can be found in Dong & Maynard (2013).
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.
mdes.bira2c1, power.bira2c1, optimal.bira2c1
## Not run:
#
# mrss.bira2c1(n=83)
#
# ## End(Not run)
Run the code above in your browser using DataLab