PowerTOST crash-course [Design Issues]
Hi BE-proff,
Not necessary (here). Install
and package
For an overview of available functions type
The most common settinge are
You can also directly copy/paste code which is posted here to the R-console. Saves time and avoids errors. You can paste the code to any text-file and save it with the extension
To execute it: In the R-console: File > Source R code…
❝ Looks like it is time for me to start learning R
Not necessary (here). Install
PowerTOST
from one of the CRAN-mirrors. Then load the library by typing library(PowerTOST)
in the R-console.For an overview of available functions type
help(package=PowerTOST)
or for the one we are using here help(sampleN.TOST)
. The order of parameters is not important (here as given in my previous post); type:sampleN.TOST(design="2x2", targetpower=0.9, alpha=0.05, theta1=0.8, theta2=1.25,
theta0=1, CV=0.25, method="exact")
+++++++++++ Equivalence test - TOST +++++++++++
Sample size estimation
-----------------------------------------------
Study design: 2x2 crossover
log-transformed data (multiplicative model)
alpha = 0.05, target power = 0.9
BE margins = 0.8 ... 1.25
Null (true) ratio = 1, CV = 0.25
Sample size (total)
n power
28 0.902260
sampleN.TOST
’s defaults (design="2x2"
, alpha=0.05
, theta1=0.8
, theta2=1.25
, method="exact"
). You get the same output withsampleN.TOST(targetpower=0.9, theta0=1, CV=0.25)
method="noncentral"
or method="shifted"
.The most common settinge are
targetpower=0.8
and theta0=0.95
(therefore, defaults as well). In such cases it is enough to type just:sampleN.TOST(CV=0.20)

You can also directly copy/paste code which is posted here to the R-console. Saves time and avoids errors. You can paste the code to any text-file and save it with the extension
.R
To execute it: In the R-console: File > Source R code…
—
Dif-tor heh smusma 🖖🏼 Довге життя Україна!![[image]](https://static.bebac.at/pics/Blue_and_yellow_ribbon_UA.png)
Helmut Schütz
![[image]](https://static.bebac.at/img/CC by.png)
The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Dif-tor heh smusma 🖖🏼 Довге життя Україна!
![[image]](https://static.bebac.at/pics/Blue_and_yellow_ribbon_UA.png)
Helmut Schütz
![[image]](https://static.bebac.at/img/CC by.png)
The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Complete thread:
- Sample size justification bkrao 2015-08-06 09:12 [Design Issues]
- Sample size justification BE-proff 2015-08-06 14:19
- PASS simulator? d_labes 2015-08-06 15:25
- PASS simulator? BE-proff 2015-08-07 20:08
- Owen’s Q | noncentral t | shifted central t Helmut 2015-08-08 02:32
- Owen’s Q | noncentral t | shifted central t BE-proff 2015-08-09 15:36
- PowerTOST crash-courseHelmut 2015-08-09 16:40
- Owen’s Q | noncentral t | shifted central t - PASS? d_labes 2015-08-10 11:30
- Owen’s Q | noncentral t | shifted central t BE-proff 2015-08-09 15:36
- Owen’s Q | noncentral t | shifted central t Helmut 2015-08-08 02:32
- PASS simulator? BE-proff 2015-08-07 20:08
- PASS simulator? d_labes 2015-08-06 15:25
- Sample size justification Helmut 2015-08-07 01:21
- Sample size justification bkrao 2015-08-07 06:06
- Guesstimates Helmut 2015-08-07 13:53
- Guesstimates bkrao 2015-08-08 06:03
- Guesstimates jag009 2015-08-10 20:08
- Guesstimates bkrao 2015-08-10 20:44
- Guesstimates jag009 2015-08-10 20:08
- Guesstimates bkrao 2015-08-08 06:03
- Guesstimates Helmut 2015-08-07 13:53
- Sample size justification bkrao 2015-08-07 06:06
- Sample size justification BE-proff 2015-08-06 14:19