Skip to content

Commit c5e4a1d

Browse files
author
NightlordTW
committed
Revise vignette
1 parent 583c304 commit c5e4a1d

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ devtools::install_github("smartdata-analysis-and-statistics/SimTOST")
4040

4141
## Vignettes
4242

43-
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)
43+
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), with an introduction provided at [Introduction](https://smartdata-analysis-and-statistics.github.io/SimTOST/articles/intropkg.html).
4444

4545

4646
| **Vignette** | **Design** | **Number of Arms** | **Number of Endpoints** |

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ devtools::install_github("smartdata-analysis-and-statistics/SimTOST")
3737
The main features of this package is `sampleSize` function which can be
3838
used to calculate sample size for individual and multiple endpoints.
3939
Various worked examples are available as
40-
[vignettes](https://smartdata-analysis-and-statistics.github.io/SimTOST)
40+
[vignettes](https://smartdata-analysis-and-statistics.github.io/SimTOST),
41+
with an introduction provided at
42+
[Introduction](https://smartdata-analysis-and-statistics.github.io/SimTOST/articles/intropkg.html).
4143

4244
| **Vignette** | **Design** | **Number of Arms** | **Number of Endpoints** |
4345
|----|----|----|----|

vignettes/sampleSize_parallel_3A1E.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ We assume that the primary endpoint, AUCinf, is on the original scale, with the
3434
```{r}
3535
library(SimTOST)
3636
37-
data <- data.table::data.table(arm = c("SB2","EU_Remicade","USA_Remicade"),
37+
data <- data.table::data.table(arm = c("SB2","RemEU","RemUSA"),
3838
mean = c(37162.0, 37705.0, 37702.8),
3939
sd = c(11113.62172, 12332.41615,12113.72))
4040
```
@@ -70,7 +70,7 @@ sigma_list <- as.list(data$sd) # Organize standard deviation values into a list
7070
Next, we define the comparison parameters, including the lower (`lequi.tol`) and upper (`uequi.tol`) equivalence boundaries, as well as the list of comparators. Since we are only comparing two arms (SB2 and EU Remicade), the list of comparators contains a single element specifying these two arms:
7171

7272
```{r}
73-
list_comparator <- list("Comparison" = c("SB2","EU_Remicade"))
73+
list_comparator <- list("Comparison" = c("SB2","RemEU"))
7474
list_lequi.tol <- list("Comparison" = 0.8)
7575
list_uequi.tol <- list("Comparison" = 1/0.8)
7676
```
@@ -118,7 +118,7 @@ $$H_0: \frac{\mu_{SB2}}{\mu_{RemEU}} \le E_L ~~ or~~ \frac{\mu_{SB2}}{\mu_{RemEU
118118
Alternative Hypothesis (Equivalence):
119119

120120
$$H_1: E_L<\frac{\mu_{SB2}}{\mu_{RemEU}} < E_U~~ and~~E_L<\frac{\mu_{SB2}}{\mu_{RemUSA}} < E_U$$
121-
Key Considerations:
121+
**Key Considerations**
122122

123123
* The function [sampleSize()](../reference/sampleSize.html) adjusts the alpha level for multiple comparisons within a single comparator (e.g., comparisons involving only RemEU or RemUSA).
124124
* The function does not yet account for alpha adjustments between comparators when simultaneously comparing SB2 with both reference products (RemEU and RemUSA). Thus, the null hypothesis is rejected if any ROM falls outside the equivalence boundaries. Future package updates will address this limitation and include proper alpha adjustments for comparisons between comparators.
@@ -130,8 +130,8 @@ Implementation of this scenario is similar to the initial example, in which the
130130
Additionally, we must specify equivalence boundaries for each comparison individually. These boundaries define the acceptable range for equivalence and are provided separately for each comparator.
131131

132132
```{r}
133-
list_comparator <- list("EMA" = c("SB2", "EU_Remicade"),
134-
"FDA" = c("SB2", "USA_Remicade"))
133+
list_comparator <- list("EMA" = c("SB2", "RemEU"),
134+
"FDA" = c("SB2", "RemUSA"))
135135
list_lequi.tol <- list("EMA" = 0.8, "FDA" = 0.8) # Lower equivalence boundary
136136
list_uequi.tol <- list("EMA" = 1/0.8, "FDA" = 1/0.8) # Upper equivalence boundary
137137
```

0 commit comments

Comments
 (0)