Skip to content

Commit f1b8005

Browse files
author
NightlordTW
committed
update README
1 parent 543460d commit f1b8005

File tree

5 files changed

+51
-23
lines changed

5 files changed

+51
-23
lines changed

R/helper.r

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ print.simss <- function(x, ...) {
5151
alphau <- x$param.d$alpha*x$param$weight_seq
5252
}
5353

54+
# Generate the description of the multiplicity correction in case of multiple primary endpoints
5455
if (nendp > 1 & x$param.d$k[i] < nendp) {
5556
cat(" - Multiplicity Correction:", multiplicity_correction, "\n")
5657
cat(" - Adjusted Significance Levels: α =", paste(format(alphau, digits = 3, nsmall = 3), collapse = "; "), "\n\n")

README.Rmd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,11 @@ devtools::install_github("smartdata-analysis-and-statistics/SimTOST")
4343
The main features of this package is `sampleSize` function which can be used to calculate sample size for individual and multiple endpoints. Various worked examples are available as [vignettes](https://smartdata-analysis-and-statistics.github.io/SimTOST)
4444

4545

46+
| **Vignette** | **Design** | **Number of Arms** | **Number of Endpoints** |
47+
|------------------------------------------------|--------------|---------------------|--------------------------|
48+
| [Bioequivalence Tests for Parallel Trial Designs: 3 Arms, 1 Endpoint](../articles/sampleSize_parallel_3A1E.html) | Parallel | 3 | 1 |
49+
| [Bioequivalence Tests for Parallel Trial Designs: 2 Arms, 3 Endpoints](../articles/sampleSize_parallel_2A3E.html) | Parallel | 2 | 3 |
50+
| [Bioequivalence Tests for Parallel Trial Designs: 3 Arms, 3 Endpoints](../articles/sampleSize_parallel_3A3E.html) | Parallel | 3 | 3 |
51+
52+
4653

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<!-- badges: start -->
77

8-
[![R-CMD-check](https://github.com/smartdata-analysis-and-statistics/SimTOST/actions/workflows/R-CMD-check.yml/badge.svg)](https://github.com/smartdata-analysis-and-statistics/SimTOST/actions/workflows/R-CMD-check.yml)
8+
[![R-CMD-check](https://github.com/smartdata-analysis-and-statistics/SimTOST/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/smartdata-analysis-and-statistics/SimTOST/actions/workflows/R-CMD-check.yaml)
99
[![CRAN
1010
status](https://www.r-pkg.org/badges/version/SimTOST)](https://CRAN.R-project.org/package=SimTOST)
1111
[![Codecov test
@@ -32,13 +32,15 @@ You can also install the development version of SimTOST from
3232
devtools::install_github("smartdata-analysis-and-statistics/SimTOST")
3333
```
3434

35-
## Example
35+
## Vignettes
3636

37-
The main features of this package is `sampleSize` function which can be used
38-
to calculate sample size for individual and multiple endpoints.
37+
The main features of this package is `sampleSize` function which can be
38+
used to calculate sample size for individual and multiple endpoints.
39+
Various worked examples are available as
40+
[vignettes](https://smartdata-analysis-and-statistics.github.io/SimTOST)
3941

40-
The example of using the functionality of this package can be found in
41-
these vignettes:
42-
43-
1. [Sample size calculation of individual endpoint]()
44-
2. [Sample size calculation of multiple endpoints]()
42+
| **Vignette** | **Design** | **Number of Arms** | **Number of Endpoints** |
43+
|----|----|----|----|
44+
| [Bioequivalence Tests for Parallel Trial Designs: 3 Arms, 1 Endpoint](../articles/sampleSize_parallel_3A1E.html) | Parallel | 3 | 1 |
45+
| [Bioequivalence Tests for Parallel Trial Designs: 2 Arms, 3 Endpoints](../articles/sampleSize_parallel_2A3E.html) | Parallel | 2 | 3 |
46+
| [Bioequivalence Tests for Parallel Trial Designs: 3 Arms, 3 Endpoints](../articles/sampleSize_parallel_3A3E.html) | Parallel | 3 | 3 |

vignettes/sampleSize_parallel_2A3E.Rmd

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,9 @@ doc.cache <- T #for cran; change to F
2424

2525
# Introduction
2626

27-
In many studies, it is necessary to evaluate equivalence across multiple primary variables. For instance, the European Medicines Agency (EMA) recommends demonstrating equivalence for both **Area Under the Curve** (AUC) and **maximum concentration** (Cmax) when assessing pharmacokinetic properties.
27+
In many studies, it is necessary to evaluate equivalence across multiple primary variables. For instance, the European Medicines Agency (EMA) recommends demonstrating equivalence for both **Area Under the Curve** (AUC) and **maximum concentration** (Cmax) when assessing pharmacokinetic properties. This vignette presents advanced techniques for calculating sample size in parallel trial designs involving three treatment arms and two endpoints.
2828

29-
When multiple primary endpoints are involved, a decision must be made on the desired criteria for equivalence:
30-
31-
* Equivalence for All Primary Endpoints
32-
* This is the most common setting and is often referred to as having *multiple co-primary endpoints*.
33-
* Equivalence must be demonstrated for **all** endpoints to conclude overall equivalence.
34-
* Equivalence for At Least One Primary Endpoint
35-
* Known as having *multiple primary endpoints*.
36-
* Equivalence is required for **at least one** endpoint to meet the study's objectives.
37-
38-
This vignette presents advanced techniques for calculating sample size in parallel trial designs involving three treatment arms and two endpoints. Specifically, it focuses on bioequivalence testing between a new treatment (SB2) and a reference drug (Remicade) administered in two distinct locations (EU_Remicade and USA_Remicade).
39-
40-
As an illustrative example, we consider published data from the phase-1 trial [NCT01922336](https://clinicaltrials.gov/study/NCT01922336#study-overview). This trial assessed the pharmacokinetics of SB2 compared to its EU-sourced reference product. The following outcomes were reported following a single dose of SB2 or its EU reference product [@shin_randomized_2015]:
29+
As an illustrative example, we consider published data from the phase-1 trial [NCT01922336](https://clinicaltrials.gov/study/NCT01922336#study-overview). This trial assessed the pharmacokinetics of SB2 compared to its EU-sourced reference product (EU_Remicade). The following outcomes were reported following a single dose of SB2 or its EU reference product [@shin_randomized_2015]:
4130

4231
```{r, echo=FALSE}
4332
data <- data.frame("PK measure" = c("AUCinf ($\\mu$g*h/mL)","AUClast ($\\mu$g*h/mL)","Cmax ($\\mu$g/mL)"),
@@ -50,7 +39,7 @@ kableExtra::kable_styling(kableExtra::kable(data,
5039
bootstrap_options = "striped")
5140
```
5241

53-
In the sections below, we explore various strategies for determining the sample size required for a parallel trial to demonstrate equivalence across the three co-primary endpoints. These strategies are based on the Ratio of Means (ROM) approach, with equivalence bounds set between 80\% and 125\%.
42+
In the sections below, we examine various strategies for determining the sample size required for a parallel trial to establish equivalence across three co-primary endpoints. These strategies are based on the Ratio of Means (ROM) approach, using equivalence bounds set between 80% and 125%. Additionally, we demonstrate how the test can be adjusted to establish equivalence for at least $k=1$ primary endpoint, providing flexibility in meeting equivalence criteria.
5443

5544
# Independent Testing of Co-Primary Endpoints
5645
A conservative approach to sample size calculation involves testing each pharmacokinetic (PK) measure independently. This method assumes that the endpoints are uncorrelated and that equivalence must be demonstrated for each endpoint separately. Consequently, the overall sample size required for the trial is the sum of the sample sizes for each PK measure.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: "Bioequivalence Tests for Parallel Trial Designs: 3 Arms, 3 Endpoints"
3+
author: "Thomas Debray"
4+
date: "`r format(Sys.time(), '%B %d, %Y')`"
5+
output:
6+
html_document:
7+
fig_caption: yes
8+
fig_width: 9
9+
fig_height: 6
10+
vignette: >
11+
%\VignetteIndexEntry{Bioequivalence Tests for Parallel Trial Designs: 3 Arms, 3 Endpoints}
12+
%\VignetteEngine{knitr::rmarkdown}
13+
%\VignetteEncoding{UTF-8}
14+
bibliography: 'references.bib'
15+
link-citations: yes
16+
---
17+
18+
```{r setup, include=FALSE, message = FALSE, warning = FALSE}
19+
knitr::opts_chunk$set(echo = TRUE)
20+
knitr::opts_chunk$set(comment = "#>", collapse = TRUE)
21+
options(rmarkdown.html_vignette.check_title = FALSE) #title of doc does not match vignette title
22+
doc.cache <- T #for cran; change to F
23+
```
24+
25+
# Introduction
26+
27+
28+
29+
# References

0 commit comments

Comments
 (0)