Usage
mrss.ira1r1(mdes=.25, power=.80, alpha=.05, two.tail=TRUE,
gm=10, ncase=10, constrain="power", n=NULL, n0=10, tol=.10,
P=.50, g1=0, R12=0)
Arguments
mdes
minimum detectable effect size.
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.
gm
grid multiplier to increase the range of sample size search.
ncase
number of cases to show in the output.
constrain
parameter to constrain; "cost"
, "power"
, or "mdes"
.
n
included for consistency, it should remain NULL
.
tol
tolerance to stop the search algorithm.
P
proportion of units randomly assigned to treatment.
R12
proportion of variance in the outcome explained by covariates.