Last chance! 50% off unlimited learning
Sale ends in
power.RatioF(alpha = 0.025, theta1 = 0.8, theta2, theta0 = 0.95, CV, CVb, n,
design = "2x2", setseed=TRUE)
1/theta1
if missing.design="parallel"
this is
the CV of the total variability, in case of design="2x2"
the
intra-subject CV (CVw in the reference).design="2x2"
.design="parallel"
or design="2x2"
allowed for a two-parallel
group design or a classical TR/RT crossover design.setseed = FALSE
you may see the dependence
from the state of the random number generator.pmvt()
from the package mvtnorm.
Due to the calculation method of the used package mvtnorm - randomized
Quasi-Monte-Carlo - these probabilities are dependent from the state of the
random number generator within the precision of the power.
See argument setseed
.sampleN.RatioF
# power for alpha=0.025, ratio0=0.95, theta1=0.8, theta2=1/theta1=1.25
# within-subject CV=0.2, between-subject CV=0.4
# 2x2 crossover study, n=24
# using all the defaults:
power.RatioF(CV=0.2, CVb=0.4, n=24)
# gives [1] 0.7315357
Run the code above in your browser using DataLab