You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/SampleSize.R
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -41,12 +41,12 @@
41
41
#' @param verbose Logical. If `TRUE`, the function displays progress and informational messages during execution. Defaults to `FALSE`.
42
42
#' @return An object simss that contains the following elements :
43
43
#' \describe{
44
-
#' \item{"response"}{ array with the sample sizes for each arm and aproximated achieved power with confidence intervals}
45
-
#' \item{"table.iter"}{data frame with the estimated sample size for each arm and power calculated at each searching iteration}
46
-
#' \item{"table.test"}{data frame that collects the total information of the simulation at each iteration}
47
-
#' \item{"param.u"}{parameters provided by the user}
48
-
#' \item{"param"}{ parameters used for the sample size calculation; as param.u are checked and modified in case of any inconsistent or missing information provided}
49
-
#' \item{"param.d"}{ parameters of design}
44
+
#' \item{"response"}{ An array summarizing the results of the simulation, including the estimated sample sizes for each arm, the approximated achieved power, and the corresponding confidence interval.}
45
+
#' \item{"table.iter"}{A data frame detailing the estimated sample size for each arm and the calculated power at each iteration during the sample size searching process.}
46
+
#' \item{"table.test"}{A data frame containing the test results for all simulated trials, including relevant metrics for each tested sample size}
47
+
#' \item{"param.u"}{The original set of parameters provided by the user for the simulation.}
48
+
#' \item{"param"}{ The final set of parameters used for the sample size calculation. These are based on \code{param.u} but adjusted to address any inconsistencies or missing information.}
49
+
#' \item{"param.d"}{ The design parameters used in the simulation, including details relevant to the trial design.}
Copy file name to clipboardExpand all lines: vignettes/intopkg.Rmd
+25-22Lines changed: 25 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -24,18 +24,14 @@ library(SimTOST)
24
24
```
25
25
26
26
27
-
Methodology and Assumptions
28
-
29
-
30
-
31
27
32
28
33
29
# Hypotheses
34
30
35
31
The null and alternative hypotheses for the equivalence test are presented below for two different approaches:
36
32
37
33
## Difference of Means (DOM)
38
-
One common approach for assessing bioequivalence involves comparing log-transformed pharmacokinetic (PK) measures between test and reference products. This is done using the following interval (null) hypothesis:
34
+
One common approach for assessing bioequivalence involves comparing pharmacokinetic (PK) measures between test and reference products. This is done using the following interval (null) hypothesis:
39
35
40
36
Null Hypothesis ($H_0$): At least one endpoint does not meet the equivalence criteria:
41
37
@@ -45,10 +41,20 @@ Alternative Hypothesis ($H_1$): All endpoints meet the equivalence criteria:
Here, $m_T$ and $m_R$ represent the logarithmically transformed mean endpoints for the test product (the proposed biosimilar) and the reference product, respectively. The equivalence limits, $\delta_L$ and $\delta_u$, are typically chosen to be symmetric, such that $\delta = - \delta_L = \delta_U$. The FDA recommends that the equivalence acceptance criterion (EAC) be defined as $\delta = EAC = 1.5 \sigma_R$, where $\sigma_R$ represents the variability of the log-transformed endpoint for the reference product.
44
+
Here, $m_T$ and $m_R$ represent the mean endpoints for the test product (the proposed biosimilar) and the reference product, respectively. The equivalence limits, $\delta_L$ and $\delta_u$, are typically chosen to be symmetric, such that $\delta = - \delta_L = \delta_U$.
49
45
50
46
The null hypothesis ($H_0$) is rejected if, and only if, all null hypotheses associated with the $K$ primary endpoints are rejected at a significance level of $\alpha$. This ensures that equivalence is established across all endpoints simultaneously.
51
47
48
+
The DOM test can be implemented in [sampleSize()](../reference/sampleSize.html) by setting `ctype = "DOM"` and `lognorm = FALSE`.
49
+
50
+
For pharmacokinetic (PK) outcomes, such as the area under the curve (AUC) and maximum concentration (Cmax), log-transformation is commonly applied to achieve normality. To perform this transformation, the logarithm of the geometric mean should be provided to `mu_list`, while the logarithmic variance can be derived from the coefficient of variation (CV) using the formula:
Here, $\mu_T$ and $\mu_R$ represent the arithmetic mean endpoints for the test product (the proposed biosimilar) and the reference product, respectively.
65
71
72
+
The ROM test can be implemented in [sampleSize()](../reference/sampleSize.html) by setting `ctype = "ROM"` and `lognorm = TRUE`. Note that the `mu_list` argument should contain the arithmetic means of the endpoints, while `sigma_list` should contain their corresponding variances.
73
+
74
+
The ROM test is converted to a Difference of Means (DOM) tests by log-transforming the data and equivalence limits. The variance on the log scale is calculated using the normalized variance formula:
When evaluating bioequivalence, certain statistical and methodological requirements must be adhered to, as outlined in the European Medicines Agency's bioequivalence guidelines [@CHMP2010]. These requirements ensure that the test and reference products meet predefined criteria for equivalence in terms of PK parameters. The key considerations are summarized below:
68
86
@@ -71,22 +89,7 @@ When evaluating bioequivalence, certain statistical and methodological requireme
71
89
* A margin of clinical equivalence ($\Delta$) is chosen by defining the largest difference that is clinically acceptable, so that a difference larger than this would matter in practice.
72
90
* The data should be transformed prior to analysis using a logarithmic transformation and subsequently be analyzed using ANOVA
73
91
74
-
75
-
# Log-Transformation and Parameter Adjustments in sampleSize()
76
-
In [sampleSize()](../reference/sampleSize.html), Ratio of Means (ROM) tests are converted to Difference of Means (DOM) tests by log-transforming the data. Equivalence limits are applied to the log-transformed data, and the results are back-transformed to the original scale for interpretation. This approach leverages the log-normal distribution of PK measures like AUC and Cmax.
77
-
78
-
## Logarithmic Mean
79
-
The logarithmic mean is derived from the provided `mu_list` (arithmetic means) and `sigma_list` (variances) using the following formula:
This formula adjusts the arithmetic mean to account for the skewness of log-normal data, ensuring that the central tendency on the log scale aligns with the transformed data.
83
-
84
-
## Logarithmic Variance Transformation
85
-
To fully operate within the log-normal framework, the variances on the original scale (`sigma_list`) must also be transformed. The variance on the log scale is calculated using the normalized variance formula:
When conducting a DOM test, The FDA recommends that the equivalence acceptance criterion (EAC) be defined as $\delta = EAC = 1.5 \sigma_R$, where $\sigma_R$ represents the variability of the log-transformed endpoint for the reference product.
90
93
91
94
# Testing of multiple endpoints
92
95
Assessment of equivalence is often required for more than one primary variable. [@sozu_sample_2015] For example, EMA recommends showing equivalence both for AUC and Cmax
0 commit comments