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)
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)
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)
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)
