power.TOST(alpha = 0.05, logscale = TRUE, theta1, theta2, theta0, CV, n,
design = "2x2", method="exact", robust=FALSE)
logscale=TRUE
it is given as ratio, otherwise as diff. to 1.
Defaults to 0.8 if logscale=TRUE
or to -0.2 if logscale=FALSE
.1/theta1
if logscale=TRUE
or as -theta1
if logscale=FALSE
.logscale=TRUE
it must be given as ratio,
otherwise as difference to 1. See examples.
Defaults to 0.95 if logscale=TRUE
or to 0.05 if logscale=FALSE
known.designs()
for designs covered in this package.method="owenq"
Approximate calculations can be choosen via method="noncentral"
or
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 <sampleN.TOST, known.designs
# power for the 2x2 cross-over design with 24 subjects
# using all the other default values
# should give: [1] 0.7391155
power.TOST(CV=0.25, n=24)
Run the code above in your browser using DataLab