Functions & Formulae

Each applied formula has its own function page, with a signature, implementations, and tests.

Two one-sided tests and scaled limits function for bioequivalence

be(d, SE, t_crit, L_0, U_0, CV_WR, s2_WR, df_WR, s_WT) = (T_L, T_U, L_w, U_w, critbound, U_r)

Maps a study's difference in log means, its standard error and the reference product's within-subject variability to the statistics behind a bioequivalence decision. It takes d, SE, t_crit and a pair of acceptance limits to the two one-sided t statistics, the reference coefficient of variation to the EMA widened limits for Cmax, the reference within-subject variance to the FDA reference-scaled upper bound, and two within-subject standard deviations to the FDA upper limit for their ratio. The 90% interval for the ratio is HE-FM-ANDA-001, the rounded check against 80.00% to 125.00% is HE-VT-ANDA-001, the crossover standard error is HE-FM-ANDA-002 and the post-entry generic price is HE-FM-ANDA-003; these live records are cited and not repeated. Notation follows the Bioequivalence article.

  • Two one-sided t statistics against bioequivalence limits

    T_L = (d - log(L_0)) / SE; T_U = (d - log(U_0)) / SE; BE_t = (T_L >= t_crit) and (T_U <= -t_crit)

    T_L and T_U are the t statistics of the two one-sided tests, whose null hypotheses say that the test minus reference difference in log means is at or below log(L_0) or at or above log(U_0). Both nulls are rejected when T_L is at least t_crit and T_U is at most minus t_crit, and BE_t is then 1. The inputs d, SE and t_crit are those of HE-FM-ANDA-001, and on the same inputs the decision agrees with that record's unrounded interval lying inside L_0 and U_0, the equivalence HE-AS-ANDA-002 states. The statistics show how many standard errors separate the estimate from each limit, and they lead to the one-sided p values in the Excel Implementation, which the interval does not report. With L_0 of 0.80 and U_0 of 1.25 the limits are symmetrical on the log scale, because 0.80 is 1 divided by 1.25.

  • EMA widened acceptance limits for Cmax of a highly variable product

    s_WR = sqrt(log(1 + CV_WR^2)); s_cap = sqrt(log(1 + CV_cap^2)); s_use = min(s_WR, s_cap); L_w = min(L_0, exp(-k * s_use)); U_w = max(U_0, exp(k * s_use)); BE_w = (GMR_L >= L_w) and (GMR_U <= U_w) and (GMR >= L_0) and (GMR <= U_0)

    The EMA guideline lets the acceptance range for Cmax widen with the reference product's within-subject variability, as exp(minus k s_WR) and exp(k s_WR) with k of 0.760, to a maximum of 69.84% to 143.19%, while the point estimate stays inside 80.00% to 125.00%. The first step solves the coefficient of variation equation of HE-IM-ANDA-002 for the within-subject standard deviation; the guideline's table footnote prints the same equation. The min and max keep the limits at L_0 and U_0 where no widening is allowed and at the cap at a coefficient of variation of 50% and above, a form written here from the guideline's conditions and table (derived). GMR, GMR_L and GMR_U are the outputs of HE-FM-ANDA-001.

  • FDA reference-scaled average bioequivalence upper bound

    theta = (log(Delta) / sigma_W0)^2; x = d^2 - SE^2; boundx = max(abs(d - t_crit * SE), abs(d + t_crit * SE))^2; y = -theta * s2_WR; boundy = y * df_WR / chi2_95; critbound = x + y + sqrt((boundx - x)^2 + (boundy - y)^2); s_WR = sqrt(s2_WR); L_s = exp(-sqrt(theta) * s_WR); U_s = exp(sqrt(theta) * s_WR); BE_s = (critbound <= 0)

    The FDA reference-scaled test asks whether the squared difference in log means, minus theta times the reference within-subject variance, is at most 0. It is judged by the 95% upper confidence bound of that quantity, which the guidance bases on Howe's Approximation I and its example SAS code writes as critbound. Here x and y estimate the two terms, boundx and boundy are their upper confidence limits, and BE_s is 1 when critbound is at or below 0. The limits inside boundx are the log-scale limits of HE-FM-ANDA-001. With Delta of 1.25 and sigma_W0 of 0.25 this is the highly variable drug case, and with Delta of 1/0.9 and sigma_W0 of 0.10 the narrow therapeutic index case. L_s and U_s restate the criterion as limits on the ratio (derived), which gives 90.00% to 111.11% for the narrow therapeutic index case at an s_WR of 0.10.

  • FDA interval for the ratio of within-subject standard deviations

    r_s = s_WT / s_WR; L_r = r_s / sqrt(F_hi); U_r = r_s / sqrt(F_lo); BE_r = (U_r <= delta_r)

    For narrow therapeutic index drugs the FDA also compares the within-subject standard deviations of test and reference. The 90% interval for their ratio divides the estimated ratio by the square root of two F quantiles, and the upper limit must be at or below 2.500. F_hi has probability 0.05 to its right and gives the lower limit of the interval, and F_lo has probability 0.95 to its right and gives the upper limit. The test is the one-sided F test of the guidance read through this interval. It adds to the test of means in HE-FM-BIO-003, which uses only the reference variance.

This set of formulae is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/concept/bioequivalence/formulae