Title: | Finite Sample Correction of the Two One-Sided Tests in the Univariate Framework |
---|---|
Description: | A system containing easy-to-use tools to compute the bioequivalence assessment in the univariate framework using the methods proposed in Boulaguiem et al. (2023) <doi:10.1101/2023.03.11.532179>. |
Authors: | Younes Boulaguiem [aut, cre, cph], Stéphane Guerrier [aut, cph], Dominique-Laurent Couturier [aut, cph] |
Maintainer: | Younes Boulaguiem <[email protected]> |
License: | AGPL-3 |
Version: | 1.0.1 |
Built: | 2025-03-12 06:16:06 UTC |
Source: | https://github.com/yboulag/ctost |
This functions is used to compute the alpha-TOST, a corrective procedure of the significance level applied to the Two One-Sided Test (TOST) for (bio)equivalence testing in the univariate framework.
atost(theta, sigma, nu, alpha, delta)
atost(theta, sigma, nu, alpha, delta)
theta |
A |
sigma |
A |
nu |
A |
alpha |
A |
delta |
A |
A tost
object with the structure:
decision: A boolean variable indicating whether (bio)equivalence is accepted or not.
ci: Confidence interval at the 1 - 2*alpha level.
theta: The difference of means used for the test.
sigma: The standard error used for the test.
nu: The number of degrees of freedom used for the test.
alpha: The significance level used for the test.
delta: The (bio)equivalence limits used for the test.
method: The method used for the test (here the "alpha-TOST").
Younes Boulaguiem, Stéphane Guerrier, Dominique-Laurent Couturier
data(skin) theta_hat = diff(apply(skin,2,mean)) nu = nrow(skin) - 1 sig_hat = sd(apply(skin,1,diff))/sqrt(nu) res_atost = atost(theta = theta_hat, sigma = sig_hat, nu = nu, alpha = 0.05, delta = log(1.25)) res_atost compare_to_tost(res_atost)
data(skin) theta_hat = diff(apply(skin,2,mean)) nu = nrow(skin) - 1 sig_hat = sd(apply(skin,1,diff))/sqrt(nu) res_atost = atost(theta = theta_hat, sigma = sig_hat, nu = nu, alpha = 0.05, delta = log(1.25)) res_atost compare_to_tost(res_atost)
This function renders a comparison of the alpha-TOST or the delta-TOST outputs obtained with the functions 'atost' or 'dtost', respectively, to the TOST output obtained with 'tost'.
compare_to_tost(x, ticks = 30, rn = 5)
compare_to_tost(x, ticks = 30, rn = 5)
x |
A |
ticks |
an integer indicating the number of segments that will be printed to represent the confidence intervals. |
rn |
integer indicating the number of decimals places to be used (see function 'round') for the printed results. |
Pints a comparison between the TOST results (i.e., output of 'tost') and either the alpha-TOST or the delta-TOST results (i.e., outputs of 'atost' or 'dtost', respectively).
This functions is used to compute the delta-TOST, a corrective procedure of the (bio)equivalence bounds applied to the Two One-Sided Test (TOST) for (bio)equivalence testing in the univariate framework.
dtost(theta, sigma, nu, alpha, delta)
dtost(theta, sigma, nu, alpha, delta)
theta |
A |
sigma |
A |
nu |
A |
alpha |
A |
delta |
A |
A tost
object with the structure:
decision: A boolean variable indicating whether (bio)equivalence is accepted or not.
ci: Confidence interval at the 1 - 2*alpha level.
theta: The difference of means used for the test.
sigma: The standard error used for the test.
nu: The number of degrees of freedom used for the test.
alpha: The significance level used for the test.
delta: The (bio)equivalence limits used for the test.
method: The method used for the test (here the "delta-TOST").
Younes Boulaguiem, Stéphane Guerrier, Dominique-Laurent Couturier
data(skin) theta_hat = diff(apply(skin,2,mean)) nu = nrow(skin) - 1 sig_hat = sd(apply(skin,1,diff))/sqrt(nu) res_dtost = dtost(theta = theta_hat, sigma = sig_hat, nu = nu, alpha = 0.05, delta = log(1.25)) res_dtost compare_to_tost(res_dtost)
data(skin) theta_hat = diff(apply(skin,2,mean)) nu = nrow(skin) - 1 sig_hat = sd(apply(skin,1,diff))/sqrt(nu) res_dtost = dtost(theta = theta_hat, sigma = sig_hat, nu = nu, alpha = 0.05, delta = log(1.25)) res_dtost compare_to_tost(res_dtost)
Print Results of (Bio)Equivalence Assessment
## S3 method for class 'tost' print(x, ticks = 30, rn = 5, ...)
## S3 method for class 'tost' print(x, ticks = 30, rn = 5, ...)
x |
A |
ticks |
Number of ticks to print the confidence interval in the console. |
rn |
Number of digits to consider when printing the results. |
... |
Further arguments to be passed to or from methods. |
Prints object.
Original data were collected in the same way as described in Quariter et. al. (2019), and represents cutaneous delivery of econazole nitrate (ECZ in ng/cm^2) on porcine skin from a reference medicinal product and an approved bioequivalent product. The dataset contains 17 pairs of comparable porcine skin samples on which measurement of ECZ deposition was gathered, and log transformed, using both creams.
data(skin)
data(skin)
A 'data.frame' with 16 rows and 2 columns:
Econazole nitrate delivery for the reference product.
Econazole nitrate delivery for the generic bioequivalent product.
The observation corresponds to a given skin on which the log ECZ delivery was collected for each of the reference and generic cream.
Quartier, Julie, et al. "Cutaneous Biodistribution: A High-Resolution Methodology to Assess Bioequivalence in Topical Skin Delivery", Pharmaceutics, (2019). Boulaguiem, Younes, et al. "Finite Sample Adjustments for Average Equivalence Testing", Statistics in Medicine, (2023)
data(skin) theta <- diff(apply(skin,2,mean)) nu <- nrow(skin)-1 sigma_nu <- sd(apply(skin,1,diff))/sqrt(nu)
data(skin) theta <- diff(apply(skin,2,mean)) nu <- nrow(skin)-1 sigma_nu <- sd(apply(skin,1,diff))/sqrt(nu)
This function performs a Two One-Sided Test (TOST) for (bio)equivalence testing.
tost(theta, sigma, nu, alpha, delta)
tost(theta, sigma, nu, alpha, delta)
theta |
A |
sigma |
A |
nu |
A |
alpha |
A |
delta |
A |
A tost
object with the structure:
decision: A boolean variable indicating whether (bio)equivalence is accepted or not.
ci: Confidence interval at the 1 - 2*alpha level.
theta: The difference of means used for the test.
sigma: The standard error used for the test.
nu: The number of degrees of freedom used for the test.
alpha: The significance level used for the test.
delta: The (bio)equivalence limits used for the test.
method: The method used for the test (here the "TOST").
Younes Boulaguiem, Stéphane Guerrier, Dominique-Laurent Couturier
data(skin) theta_hat = diff(apply(skin,2,mean)) nu = nrow(skin) - 1 sig_hat = sd(apply(skin,1,diff))/sqrt(nu) tost(theta = theta_hat, sigma = sig_hat, nu = nu, alpha = 0.05, delta = log(1.25))
data(skin) theta_hat = diff(apply(skin,2,mean)) nu = nrow(skin) - 1 sig_hat = sd(apply(skin,1,diff))/sqrt(nu) tost(theta = theta_hat, sigma = sig_hat, nu = nu, alpha = 0.05, delta = log(1.25))