type1error.2TOST(alpha = c(0.05, 0.05), logscale = TRUE, theta1, theta2,
CV, n, rho, design = "2x2", robust = FALSE, setseed = TRUE,
details = FALSE)
logscale=TRUE
it is given as ratio, otherwise as diff. to 1.
Defaults to c(0.8, 0.8)
if logscale=TRUE
or to c(-0.2, -0.2)
1/theta1
if logscale=TRUE
or as -theta1
if logscale=FALSE
.logscale=FALSE
CV is assumknown.designs()
for designs covered in this package.TRUE
will use the degrees of freedom according to the 'robust'
evaluation (aka Senn's basic estimator). These df are calculated as n-seq
.
See pmvt()
which is based on randomized quasi Monte Carlo
methods. If setseed=TRUE
a seed value is set, the default.details = FALSE
.
A data.frame with the TIE for each of the eight nullhypothesis regions if
details = TRUE
.pmvt()
of package
mvtnorm
. An absolute error tolerance of 1e-05 is set within pmvt()
.
The formulas cover balanced and unbalanced studies w.r.t (sequence) groups.
In case of parallel group design and higher order crossover designs
(replicate crossover or crossover with more than two treatments) the calculations
are based on the assumption of equal variances for Test and Reference products
under consideration.
The formulas for the paired means 'design' do not take an additional correlation
parameter into account. They are solely based on the paired t-test
(TOST of differences = zero).sampleN.2TOST, known.designs
# Replicate type 1 error rate for scenario S2 from Hua et al.
# runs 6-7 seconds, more than allowed for examples on CRAN
n <- 24
cv <- se2CV(c(0.0490 / sqrt(2/n), 0.0657 / sqrt(2/n)))
type1error.2TOST(CV = cv, n = n, rho = 0.6794, details = FALSE)
Run the code above in your browser using DataLab