Skip to content

Commit fb8bef0

Browse files
author
NightlordTW
committed
Update package info
1 parent b1d7535 commit fb8bef0

File tree

4 files changed

+17
-15
lines changed

4 files changed

+17
-15
lines changed

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ knitr::opts_chunk$set(
2121
[![Codecov test coverage](https://codecov.io/gh/smartdata-analysis-and-statistics/SimTOST/branch/main/graph/badge.svg)](https://app.codecov.io/gh/smartdata-analysis-and-statistics/SimTOST?branch=main)
2222
<!-- badges: end -->
2323

24-
The goal of `SimTOST` is to estimate the sample size sample size for a randomized, three-arm, parallel group phase I trial via simulation.
24+
`SimTOST` is an R package specifically designed for bioequivalence studies, providing simulation-based sample size estimation for the Two One-Sided Tests (TOST) procedure. It offers flexible options to handle complex study designs, including trials with multiple correlated primary endpoints, multiple hypotheses, and treatment arms. By incorporating correlations between endpoints, `SimTOST` ensures accurate and robust planning of bioequivalence trials, making it a powerful tool for studies with intricate requirements.
2525

2626
## Installation
2727

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,14 @@ status](https://www.r-pkg.org/badges/version/SimTOST)](https://CRAN.R-project.or
1212
coverage](https://codecov.io/gh/smartdata-analysis-and-statistics/SimTOST/branch/main/graph/badge.svg)](https://app.codecov.io/gh/smartdata-analysis-and-statistics/SimTOST?branch=main)
1313
<!-- badges: end -->
1414

15-
The goal of `SimTOST` is to estimate the sample size sample size for a
16-
randomized, three-arm, parallel group phase I trial via simulation.
15+
`SimTOST` is an R package specifically designed for bioequivalence
16+
studies, providing simulation-based sample size estimation for the Two
17+
One-Sided Tests (TOST) procedure. It offers flexible options to handle
18+
complex study designs, including trials with multiple correlated primary
19+
endpoints, multiple hypotheses, and treatment arms. By incorporating
20+
correlations between endpoints, `SimTOST` ensures accurate and robust
21+
planning of bioequivalence trials, making it a powerful tool for studies
22+
with intricate requirements.
1723

1824
## Installation
1925

vignettes/sampleSize_crossover.Rmd

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ library(SimTOST)
3030
```
3131

3232
# Bioequivalence Tests for AUC and Cmax
33-
We consider Example 1 from the PASS Sample Size Software [Chapter 351](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/PASS/Bioequivalence_Tests_for_AUC_and_Cmax_in_a_2x2_Cross-Over_Design-Log-Normal_Data.pdf). We aim to estimate the sample size required to demonstrate bioequivalence between a test and reference product for two pharmacokinetic parameters: the area under the curve (AUC) and the maximum concentration (Cmax). We assume a 2x2 cross-over design. The true ratio of the test to the reference product is assumed to be 1.02 for AUC and 1.03 for Cmax. Based on previous studies, it is assumed that the standard deviation for $\log(AUC)$ = 0.25 and the standard deviation for $\log(Cmax = 0.3)$. The equivalence limits for the ratio of means are set at 0.80 and 1.25.
33+
We consider Example 1 from the PASS Sample Size Software [Chapter 351](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/PASS/Bioequivalence_Tests_for_AUC_and_Cmax_in_a_2x2_Cross-Over_Design-Log-Normal_Data.pdf). We aim to estimate the sample size required to demonstrate bioequivalence between a test and reference product for two pharmacokinetic parameters: the area under the curve (AUC) and the maximum concentration (Cmax). We assume a 2x2 cross-over design. The true ratio of the test to the reference product is assumed to be 1.02 for AUC and 1.03 for Cmax. Based on previous studies, it is assumed that the standard deviation for log(AUC) = 0.25 and the standard deviation for log(Cmax = 0.3). The equivalence limits for the ratio of means are set at 0.80 and 1.25.
3434

35-
The significance level is set to 5\%, and the sample size is calculated to achieve 80\% power. Additionally, the correlation between AUC and Cmax is assumed to be 0.25. A difference-of-means test on the log scale is employed to determine bioequivalence. Using PASS software, this scenario yielded a total sample size of $n=37$ patients. In **SimTOST**, we can estimate the sample size using the [sampleSize()](../reference/sampleSize.html) function.
35+
The significance level is set to 5\%, and the sample size is calculated to achieve 80\% power. Additionally, the correlation between AUC and Cmax is assumed to be 0.25. A difference-of-means test on the log scale is employed to determine bioequivalence.
36+
37+
In **SimTOST**, we can estimate the sample size using the [sampleSize()](../reference/sampleSize.html) function.
3638

3739
```{r, eval = TRUE}
3840
mu_r <- c(AUC = log(1.00), Cmax = log(1.00))
@@ -41,16 +43,16 @@ sigma <- c(AUC = 0.25, Cmax = 0.3)
4143
lequi_lower <- c(AUC = log(0.80), Cmax = log(0.80))
4244
lequi_upper <- c(AUC = log(1.25), Cmax = log(1.25))
4345
44-
ss <- sampleSize(power = 0.8, alpha = 0.05,
46+
(ss <- sampleSize(power = 0.8, alpha = 0.05,
4547
mu_list = list("R" = mu_r, "T" = mu_t),
4648
sigma_list = list("R" = sigma, "T" = sigma),
4749
list_comparator = list("T_vs_R" = c("R", "T")),
4850
rho = 0.25,
4951
list_lequi.tol = list("T_vs_R" = lequi_lower),
5052
list_uequi.tol = list("T_vs_R" = lequi_upper),
5153
dtype = "2x2", ctype = "DOM", lognorm = FALSE,
52-
adjust = "no", ncores = 1, nsim = 10000, seed = 1234)
53-
ss
54+
adjust = "no", ncores = 1, nsim = 10000, seed = 1234))
5455
```
55-
The total sample size required is `r ss$response$n_total` subjects.
56+
The total sample size required is `r ss$response$n_total` subjects, which corresponds to the estimate obtained using the PASS software ($n=37$).
57+
patients
5658

vignettes/sampleSize_parallel_3A3E.Rmd

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,6 @@ For all endpoints, bioequivalence is established if the 90% confidence intervals
110110
Below we define the equivalence boundaries for each comparison:
111111

112112
```{r}
113-
# Define comparators and equivalence boundaries
114-
list_comparator <- list(
115-
"EMA" = c("SB2", "EUINF"),
116-
"FDA" = c("SB2", "USINF")
117-
)
118-
119113
list_lequi.tol <- list(
120114
"EMA" = c(AUCinf = 0.8, Cmax = 0.8),
121115
"FDA" = c(AUClast = 0.8, Cmax = 0.8)

0 commit comments

Comments
 (0)