powered by
mdes.cra3r3 calculates minimum detectable effect size, power.cra3r3 calculates statistical power, mrss.cra3r3 calculates minimum required sample size.
mdes.cra3r3
power.cra3r3
mrss.cra3r3
mdes.cra3r3(power=.80, alpha=.05, two.tailed=TRUE, rho2, rho3, p=.50, g3=0, r21=0, r22=0, r23=0, n, J, K, ...)power.cra3r3(es=.25, alpha=.05, two.tailed=TRUE, rho2, rho3, p=.50, g3=0, r21=0, r22=0, r23=0, n, J, K, ...)mrss.cra3r3(es=.25, power=.80, alpha=.05, two.tailed=TRUE, n, J, K0=10, tol=.10, rho2, rho3, p=.50, g3=0, r21=0, r22=0, r23=0, ...)
power.cra3r3(es=.25, alpha=.05, two.tailed=TRUE, rho2, rho3, p=.50, g3=0, r21=0, r22=0, r23=0, n, J, K, ...)
mrss.cra3r3(es=.25, power=.80, alpha=.05, two.tailed=TRUE, n, J, K0=10, tol=.10, rho2, rho3, p=.50, g3=0, r21=0, r22=0, r23=0, ...)
statistical power \((1-\beta)\).
effect size.
probability of type I error.
logical; TRUE for two-tailed hypothesis testing, FALSE for one-tailed hypothesis testing.
TRUE
FALSE
proportion of variance in the outcome explained by level 2 units.
proportion of variance in the outcome explained by level 3 units.
proportion of level 3 units randomly assigned to treatment.
number of covariates at level 3.
proportion of level 1 variance in the outcome explained by level 1 covariates.
proportion of level 2 variance in the outcome explained by level 2 covariates.
proportion of level 3 variance in the outcome explained by level 3 covariates.
harmonic mean of level 1 units across level 2 units (or simple average).
harmonic mean of level 2 units across level 3 units (or simple average).
level 3 sample size.
starting value for K.
K
tolerance to end iterative process for finding K.
to handle depreciated or defunct arguments.
function name.
list of parameters used in power calculation.
degrees of freedom.
noncentrality parameter.
minimum detectable effect size.
number of level 3 units.
cosa.crd3r3
# NOT RUN { # cross-checks mdes.cra3r3(rho3=.06, rho2=.17, n=15, J=3, K=60) power.cra3r3(es=.269, rho3=.06, rho2=.17, n=15, J=3, K=60) mrss.cra3r3(es=.269, rho3=.06, rho2=.17, n=15, J=3) # }
Run the code above in your browser using DataLab