Tutorials › Bioavailability and Bioequivalence › Applying TOST to a Model-Provided Contrast

Confidence Intervals and the TOST Procedure · Tutorial 224 of 399

Applying TOST to a Model-Provided Contrast

Use a model-provided contrast and its standard error and degrees of freedom to carry out both one-sided equivalence tests without re-deriving the model analysis.

Intermediate 10 min read

What You'll Learn

  • Identify the model-provided contrast that matches the equivalence estimand.
  • Use the reported standard error and degrees of freedom in both one-sided tests.
  • Calculate each TOST statistic and p-value at its relevant margin.
  • Check equivalence using a confidence interval on the same scale as the margins.
  • Recognize when contrast coding, scale, or model output makes a TOST calculation invalid.
  • Distinguish a TOST decision from a model’s test of a zero contrast.

From a Model Output to an Equivalence Decision

A model may report an estimated contrast, its standard error, and degrees of freedom without displaying the two equivalence tests that are needed for a TOST decision. The contrast might compare treatment groups after adjustment for other model terms, or represent a specified combination of model coefficients. The calculation is straightforward once the supplied estimate corresponds to the intended estimand and is on the same scale as the equivalence limits.

The purpose here is to use those model-provided quantities as inputs, not to reconstruct the model fit or recalculate its covariance matrix. The essential checks are whether the contrast has the right direction and scale, and whether its standard error and degrees of freedom belong to that same contrast.

Definition: Let \(\theta\) be the population contrast of interest, and let \(L\) and \(U\) be its prespecified lower and upper equivalence limits, with \(L<U\). A model-provided contrast estimate \(\hat{\theta}\), standard error \(SE\), and degrees of freedom \(df\) can be used for TOST when they refer to this same contrast and support the stated \(t\)-based inference. The two null hypotheses are \(H_{0L}:\theta\le L\) and \(H_{0U}:\theta\ge U\); equivalence is concluded only when both are rejected at the chosen significance level \(\alpha\).

Applying the Two Tests

For a \(t\)-based contrast, the standard error describes uncertainty in \(\hat{\theta}\), and \(df\) determines the reference \(t\) distribution. Each test evaluates the estimate relative to one boundary. The lower-bound test asks whether the contrast is sufficiently above \(L\); the upper-bound test asks whether it is sufficiently below \(U\).

$$ t_L=\frac{\hat{\theta}-L}{SE}, \qquad p_L=P(T_{df}\ge t_L) $$
$$ t_U=\frac{\hat{\theta}-U}{SE}, \qquad p_U=P(T_{df}\le t_U) $$

Here \(T_{df}\) denotes a random variable with a \(t\) distribution on \(df\) degrees of freedom. The lower test is right-tailed because evidence against \(\theta\le L\) consists of a sufficiently large estimate. The upper test is left-tailed because evidence against \(\theta\ge U\) consists of a sufficiently small estimate. Both tests must have p-values below \(\alpha\). A small p-value for only one test is not enough.

The reference distribution must be justified by the model analysis that produced the output. In a normal linear model with the relevant variance estimated under its assumptions, a contrast statistic may have an exact \(t\) distribution. In other model settings, software may report a \(t\) approximation and an approximate \(df\). Use the reported inferential framework consistently; do not combine a standard error from one method with degrees of freedom or critical values from another.

The interval rule is a useful check. With \(t_{1-\alpha,df}\) denoting the \(1-\alpha\) quantile of the \(t\) distribution, the corresponding two-sided \(100(1-2\alpha)\%\) confidence interval is

$$ \left[ \hat{\theta}-t_{1-\alpha,df}SE,\; \hat{\theta}+t_{1-\alpha,df}SE \right]. $$

Both one-sided tests reject at level \(\alpha\) exactly when this interval lies within the equivalence limits, subject to the convention used for equality at a boundary. This follows by rearranging the test inequalities: \(p_L<\alpha\) requires \(t_L>t_{1-\alpha,df}\), or \(\hat{\theta}-t_{1-\alpha,df}SE>L\). Likewise, \(p_U<\alpha\) requires \(t_U<-t_{1-\alpha,df}\), or \(\hat{\theta}+t_{1-\alpha,df}SE<U\). Thus both tests pass precisely when both interval endpoints are inside the limits. In practice, avoid basing a conclusion on rounded values when an endpoint is very close to a margin.

Worked Calculations From Model Output

Worked Example: A Contrast Within Symmetric Limits

Suppose a hypothetical model reports a treatment contrast of \(\hat{\theta}=-0.20\) units, \(SE=0.45\) units, and \(df=24\). The prespecified limits are \(L=-1.00\) and \(U=1.00\) units, and \(\alpha=0.05\). Assume the reported \(t\)-based inference is appropriate for this contrast.

For the lower-bound test,

$$ t_L=\frac{-0.20-(-1.00)}{0.45} =\frac{0.80}{0.45}=1.7778. $$

The right-tail p-value is \(P(T_{24}\ge1.7778)\), approximately \(0.04406\). It is below \(0.05\), so the lower-bound null is rejected.

For the upper-bound test,

$$ t_U=\frac{-0.20-1.00}{0.45} =\frac{-1.20}{0.45}=-2.6667. $$

The left-tail p-value is \(P(T_{24}\le-2.6667)=0.006749\). This is also below \(0.05\). Both tests reject, so the contrast meets the stated equivalence criterion. The conclusion is about this model contrast and these limits, not about every possible treatment effect.

Worked Example: A Contrast Near Both Asymmetric Limits

In a second hypothetical analysis, the model reports \(\hat{\theta}=0.10\) units, \(SE=0.50\) units, and \(df=12\). The limits are asymmetric: \(L=-0.80\) and \(U=1.00\) units. Let \(\alpha=0.05\), and suppose the model’s \(t\)-based inference applies.

The lower test statistic and right-tail p-value are

$$ t_L=\frac{0.10-(-0.80)}{0.50}=1.80, \qquad p_L=P(T_{12}\ge1.80)=0.04852. $$

For the upper test,

$$ t_U=\frac{0.10-1.00}{0.50}=-1.80, \qquad p_U=P(T_{12}\le-1.80)=0.04852. $$

Both p-values are just below \(0.05\), so both null hypotheses are rejected under the stated rule. As a check, \(t_{0.95,12}\) is approximately \(1.782\), giving the 90% interval \([0.10-1.782(0.50),\,0.10+1.782(0.50)]\), or approximately \([-0.791,0.991]\) units. Its endpoints are within \([-0.80,1.00]\). This is a borderline result: unrounded output and the specified decision convention matter.

Worked Example: A Model Contrast That Does Not Establish Equivalence

Consider hypothetical model output \(\hat{\theta}=0.34\) units, \(SE=0.20\) units, and \(df=18\), with limits \(L=-0.50\) and \(U=0.50\) units. Assume the reported \(t\)-based inference is valid and use \(\alpha=0.05\).

The lower test gives

$$ t_L=\frac{0.34-(-0.50)}{0.20}=4.20. $$

This is greater than \(t_{0.95,18}\), approximately \(1.734\), so its right-tail p-value is below \(0.05\). The lower-bound test rejects. The upper test gives

$$ t_U=\frac{0.34-0.50}{0.20}=-0.80. $$

Since \(-0.80\) is not below \(-1.734\), the upper-bound test does not reject. Equivalently, the 90% interval is approximately \(0.34\pm1.734(0.20)\), or \([-0.0068,0.6868]\) units; its upper endpoint exceeds \(U=0.50\). Therefore equivalence is not established. This result does not prove that the contrast is outside the limits; the evidence is insufficient to rule out values at or beyond the upper limit.

Checks Before Using the Output

A model output is useful only when it represents the intended contrast. Before substituting numbers, verify the contrast definition, the direction of subtraction, the measurement scale, and the matching uncertainty quantities. For example, a treatment-minus-reference contrast and a reference-minus-treatment contrast have opposite signs. Reversing the order also reverses the corresponding limits: the intended interval \([L,U]\) becomes \([-U,-L]\). Changing the estimate’s sign without changing the limits gives a different test.

Confirm that \(SE\) is the standard error of the contrast, not the standard error of one group mean or of an individual coefficient. A contrast can combine several coefficients, and its uncertainty depends on their covariance. The model output should supply the contrast-specific standard error and degrees of freedom, or a documented equivalent. This tutorial takes those outputs as given rather than recomputing them.

The equivalence limits and estimate must also use the same scale and units. If a model reports a log-scale contrast, limits stated on a ratio scale cannot be inserted directly: use the log-scale limits established for that analysis. Likewise, a difference in concentration units cannot be compared directly with percentage-point limits. The limits should be scientifically justified and specified independently of the observed contrast.

A model’s ordinary test of \(H_0:\theta=0\) does not answer the equivalence question. It tests whether the contrast differs from zero, whereas TOST tests whether it is demonstrably above the lower limit and below the upper limit. A statistically nonsignificant zero-effect test may reflect imprecision and does not replace either TOST component.

Assumptions, Diagnostics, and Alternatives

The calculations presume that the contrast estimates the target parameter, the standard error is correctly calculated for it, and the model’s reference distribution and degrees of freedom provide valid inference. The model’s own assumptions must therefore be plausible for the analysis at hand. Check the analysis report for the contrast definition, covariance or variance method, degrees-of-freedom method, and any stated approximation. When model diagnostics indicate serious misspecification, dependence, influential observations, or a poor distributional approximation, the reported \(t\)-based p-values may not have their intended error rates.

A practical diagnostic is internal consistency: calculate both one-sided tests and compare the result with the confidence interval using the matching confidence level and degrees of freedom. If one route says both tests pass while the other interval crosses a limit, check for a wrong tail, wrong margin, mismatched \(df\), or rounding. Also check whether the displayed estimate and \(SE\) were rounded; use unrounded output when available, especially near a boundary.

The direct model-output approach is efficient when the model has already provided a valid contrast estimate, standard error, and degrees of freedom. An alternative is to form the matching confidence interval and compare its endpoints with the limits; this is equivalent under the same \(t\)-based framework and often makes the decision easier to communicate. Re-deriving the contrast variance from model coefficients is appropriate only when the needed model output is unavailable and the analyst has the full fitted model and covariance information. It is not a substitute for checking that the contrast itself matches the scientific question.

Common mistake: Taking a model’s p-value for a zero contrast and treating a large value as evidence of equivalence. That p-value addresses a different null hypothesis. Instead, calculate the lower- and upper-bound statistics using the relevant equivalence limits, then require both one-sided p-values to meet the chosen criterion.
1
Verify the estimand and scale.
Confirm that the model contrast, direction, units, and limits all refer to the same target quantity.
2
Match the uncertainty output.
Use the standard error and degrees of freedom reported for that contrast, with the model’s stated inferential framework.
3
Evaluate both boundaries.
Compute \(t_L,p_L\) and \(t_U,p_U\); equivalence requires rejection of both one-sided null hypotheses.
4
Check and report.
Compare the matching interval with the limits and report the contrast, units, limits, inference method, and decision.

Check Your Understanding

Answer each question, then compare with the concise solutions below.

  1. A model reports a contrast estimate, standard error, and degrees of freedom. What must you verify before using them for TOST?
  2. For a lower limit \(L\), which tail is used for the lower-bound p-value, and why?
  3. A lower-bound test rejects, but the upper-bound test does not. What is the TOST conclusion?
  4. Why is a nonsignificant model test of a zero contrast not sufficient evidence of equivalence?

Solutions. (1) Confirm the contrast is the intended estimand, its direction and scale match the limits, and the \(SE\) and \(df\) belong to that contrast under a suitable model inference. (2) The right tail, because evidence against \(\theta\le L\) is a sufficiently large estimate relative to \(L\). (3) Equivalence is not established; both tests must reject. (4) A zero-contrast test addresses a different null hypothesis and does not show that the contrast lies inside both equivalence limits.