Skip to content

Commit c1aa7d8

Browse files
author
NightlordTW
committed
harmonize vignettes
1 parent e88242d commit c1aa7d8

8 files changed

+32
-45
lines changed

vignettes/intropkg.Rmd

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
22
title: "Introduction"
33
output:
4-
rmarkdown::html_vignette:
5-
number_sections: true
6-
toc: true
4+
rmarkdown::html_vignette
75
vignette: >
86
%\VignetteIndexEntry{Introduction}
97
%\VignetteEngine{knitr::rmarkdown}

vignettes/references.bib

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,3 +134,22 @@ @book{sozu_sample_2015
134134
urldate = {2023-03-08},
135135
isbn = {978-3-319-22004-8 978-3-319-22005-5}
136136
}
137+
138+
@incollection{PASSch351,
139+
title = {Bioequivalence Tests for AUC and Cmax in a 2x2 Cross-Over Design (Log-Normal Data)},
140+
author = {{NCSS}},
141+
booktitle = {PASS Sample Size Software},
142+
chapter = {351},
143+
year = {2025},
144+
publisher = {NCSS Statistical Software},
145+
url = {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}
146+
}
147+
@incollection{PASSch685,
148+
title = {Biosimilarity Tests for the Difference Between Means using a Parallel Two-Group Design},
149+
author = {{NCSS}},
150+
booktitle = {PASS Sample Size Software},
151+
chapter = {685},
152+
year = {2025},
153+
publisher = {NCSS Statistical Software},
154+
url = {https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/PASS/Biosimilarity_Tests_for_the_Difference_Between_Means_using_a_Parallel_Two-Group_Design.pdf}
155+
}

vignettes/sampleSize_crossover.Rmd

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
---
22
title: "Bioequivalence Tests for 2x2 Cross-Over Trial Designs with Log-Normal Data"
3-
author: "Thomas Debray"
4-
date: "`r format(Sys.time(), '%B %d, %Y')`"
53
output:
6-
html_document:
7-
fig_caption: yes
8-
fig_width: 9
9-
fig_height: 6
4+
rmarkdown::html_vignette
105
vignette: >
116
%\VignetteIndexEntry{Bioequivalence Tests for 2x2 Cross-Over Trial Designs with Log-Normal Data}
127
%\VignetteEngine{knitr::rmarkdown}
@@ -22,7 +17,6 @@ options(rmarkdown.html_vignette.check_title = FALSE) #title of doc does not matc
2217
doc.cache <- T #for cran; change to F
2318
```
2419

25-
In the `SimTOST` R package, which is specifically designed for sample size estimation for bioequivalence studies, hypothesis testing is based on the Two One-Sided Tests (TOST) procedure. [@sozu_sample_2015] In TOST, the equivalence test is framed as a comparison between the the null hypothesis of ‘new product is worse by a clinically relevant quantity’ and the alternative hypothesis of ‘difference between products is too small to be clinically relevant’. This vignette focuses on a cross-over design, with 2 arms/treatments and 2 primary endpoints.
2620

2721
In the example below, we illustrate the use of `SimTOST` for 2x2 cross-over trials. As a first step, we load the package.
2822

@@ -31,7 +25,7 @@ library(SimTOST)
3125
```
3226

3327
# Bioequivalence Tests for AUC and Cmax
34-
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.
28+
We consider Example 1 from the PASS Sample Size Software Chapter 351 [@PASSch351]. 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.
3529

3630
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.
3731

@@ -54,6 +48,7 @@ lequi_upper <- c(AUC = log(1.25), Cmax = log(1.25))
5448
dtype = "2x2", ctype = "DOM", lognorm = FALSE,
5549
adjust = "no", ncores = 1, nsim = 10000, seed = 1234))
5650
```
57-
The total sample size required is `r ss$response$n_total` subjects, which corresponds to the estimate obtained using the PASS software ($n=37$).
58-
patients
51+
The total sample size required is `r ss$response$n_total` subjects, which corresponds to the estimate obtained using the PASS software (n=37).
52+
53+
# References
5954

vignettes/sampleSize_parallel.Rmd

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
---
22
title: "Bioequivalence Tests for Parallel Trial Designs with Log-Normal Data"
3-
author: "Thomas Debray"
4-
date: "`r format(Sys.time(), '%B %d, %Y')`"
53
output:
6-
html_document:
7-
fig_caption: yes
8-
fig_width: 9
9-
fig_height: 6
4+
rmarkdown::html_vignette
105
vignette: >
116
%\VignetteIndexEntry{Bioequivalence Tests for Parallel Trial Designs with Log-Normal Data}
127
%\VignetteEngine{knitr::rmarkdown}

vignettes/sampleSize_parallel_2A1E.Rmd

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
---
22
title: "Bioequivalence Tests for Parallel Trial Designs: 2 Arms, 1 Endpoint"
3-
author: "Thomas Debray"
4-
date: "`r format(Sys.time(), '%B %d, %Y')`"
53
output:
6-
html_document:
7-
fig_caption: yes
8-
fig_width: 9
9-
fig_height: 6
4+
rmarkdown::html_vignette
105
vignette: >
116
%\VignetteIndexEntry{Bioequivalence Tests for Parallel Trial Designs: 2 Arms, 1 Endpoint}
127
%\VignetteEngine{knitr::rmarkdown}
@@ -27,7 +22,7 @@ In the `SimTOST` R package, which is specifically designed for sample size estim
2722
# Introduction
2823

2924
## Difference of Means Test
30-
This example, adapted from Example 1 in the PASS manual chapter titled [*"Biosimilarity Tests for the Difference Between Means Using a Parallel Two-Group Design"*](https://www.ncss.com/wp-content/themes/ncss/pdf/Procedures/PASS/Biosimilarity_Tests_for_the_Difference_Between_Means_using_a_Parallel_Two-Group_Design.pdf), illustrates the process of planning a clinical trial to assess biosimilarity. Specifically, the trial aims to compare blood pressure outcomes between two groups.
25+
This example, adapted from Example 1 in the PASS manual chapter 685 [@PASSch685], illustrates the process of planning a clinical trial to assess biosimilarity. Specifically, the trial aims to compare blood pressure outcomes between two groups.
3126

3227
### Scenario
3328
Drug B is a well-established biologic drug used to control blood pressure. Its exclusive marketing license has expired, creating an opportunity for other companies to develop biosimilars. Drug A is a new competing drug being developed as a potential biosimilar to Drug B. The goal is to determine whether Drug A meets FDA biosimilarity requirements in terms of safety, purity, and therapeutic response when compared to Drug B.
@@ -121,4 +116,4 @@ To account for an anticipated dropout rate of 20% in each group, we need to adju
121116

122117
Previously, finding the required sample size took `r nrow(N_ss$table.iter)` iterations. With the custom optimization routine, the number of iterations was reduced to `r nrow(N_ss_dropout$table.iter)`, significantly improving efficiency.
123118

124-
119+
# References

vignettes/sampleSize_parallel_2A3E.Rmd

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
---
22
title: "Bioequivalence Tests for Parallel Trial Designs: 2 Arms, 3 Endpoints"
3-
author: "Thomas Debray"
4-
date: "`r format(Sys.time(), '%B %d, %Y')`"
53
output:
6-
html_document:
7-
fig_caption: yes
8-
fig_width: 9
9-
fig_height: 6
4+
rmarkdown::html_vignette
105
vignette: >
116
%\VignetteIndexEntry{Bioequivalence Tests for Parallel Trial Designs: 2 Arms, 3 Endpoints}
127
%\VignetteEngine{knitr::rmarkdown}

vignettes/sampleSize_parallel_3A1E.Rmd

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
---
22
title: "Bioequivalence Tests for Parallel Trial Designs: 3 Arms, 1 Endpoint"
3-
author: "Thomas Debray"
4-
date: "`r format(Sys.time(), '%B %d, %Y')`"
53
output:
6-
html_document:
7-
fig_caption: yes
8-
fig_width: 9
9-
fig_height: 6
4+
rmarkdown::html_vignette
105
vignette: >
116
%\VignetteIndexEntry{Bioequivalence Tests for Parallel Trial Designs: 3 Arms, 1 Endpoint}
127
%\VignetteEngine{knitr::rmarkdown}

vignettes/sampleSize_parallel_3A3E.Rmd

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
---
22
title: "Bioequivalence Tests for Parallel Trial Designs: 3 Arms, 3 Endpoints"
3-
author: "Thomas Debray"
4-
date: "`r format(Sys.time(), '%B %d, %Y')`"
53
output:
6-
html_document:
7-
fig_caption: yes
8-
fig_width: 9
9-
fig_height: 6
4+
rmarkdown::html_vignette
105
vignette: >
116
%\VignetteIndexEntry{Bioequivalence Tests for Parallel Trial Designs: 3 Arms, 3 Endpoints}
127
%\VignetteEngine{knitr::rmarkdown}

0 commit comments

Comments
 (0)