Tutorials › Bioavailability and Bioequivalence › Bayesian Estimation Of Formulation Effects

Model-Based Bioequivalence · Tutorial 318 of 399

Bayesian Estimation Of Formulation Effects

Specify a Bayesian pharmacokinetic model, assess its posterior computation, and summarize uncertainty in formulation-specific exposure ratios.

Advanced 12 min read

What You'll Learn

  • Write a nonlinear mixed-effects concentration model for a crossover formulation comparison.
  • Choose priors for fixed effects, random-effects covariance matrices, and residual variability.
  • Derive posterior exposure ratios from pharmacokinetic parameters or model-derived exposure metrics.
  • Interpret posterior medians and credible intervals in the original ratio scale.
  • Recognize prior sensitivity, nonidentifiability, and MCMC diagnostics that can undermine inference.

Why Estimate Formulation Effects Bayesianly?

A nonlinear mixed-effects model links concentration observations to pharmacokinetic parameters while accounting for differences between participants. A Bayesian analysis adds prior distributions to this model and uses the observed data to obtain a joint posterior distribution for the parameters. That joint distribution is useful when the quantity of interest—such as an AUC ratio—is a nonlinear function of several estimated parameters: uncertainty in all those parameters can be carried through together.

The target here is estimation of formulation effects and their uncertainty, not a bioequivalence decision rule. A posterior interval for an exposure ratio describes uncertainty about that ratio under the specified model and prior. It is not, by itself, a posterior probability that the ratio meets any particular acceptance criterion.

A Bayesian Nonlinear Mixed-Effects Model

Let \(C_{ijk}\) be the concentration for subject \(i\), period \(j\), at time \(t_{ijk}\), and let \(T_{ij}=1\) for the test formulation and \(0\) for the reference formulation. For illustration, suppose a single oral dose follows a one-compartment model with first-order absorption and elimination. Its predicted concentration is

$$ C_{ij}^{\mathrm{pred}}(t)= \frac{D F_{ij} k_{a,ij}}{V_{ij}(k_{a,ij}-k_{e,ij})} \left(e^{-k_{e,ij}t}-e^{-k_{a,ij}t}\right), \qquad k_{e,ij}=\frac{CL_{ij}}{V_{ij}}. $$

Here \(D\) is dose, \(F_{ij}\) is bioavailability, \(k_{a,ij}\) is the absorption-rate constant, \(V_{ij}\) is apparent volume, and \(CL_{ij}\) is clearance. The displayed expression assumes \(k_{a,ij}\ne k_{e,ij}\); when they are close, the limiting form or a numerically stable implementation should be used.

One possible observation model for positive concentrations is lognormal error:

$$ \log C_{ijk}\mid\theta,b_i \sim N\!\left(\log C_{ij}^{\mathrm{pred}}(t_{ijk}),\sigma^2\right). $$

The population parameters \(\theta\) can include typical log clearance, log volume, log absorption rate, formulation effects, and fixed period or sequence effects. For example, a formulation effect on relative bioavailability can be written

$$ \log(F_{ij}/F_R)=\beta_F T_{ij}+u_{F,i}T_{ij}. $$

In this expression \(F_R\) is reference bioavailability, \(\beta_F\) is the population-average log relative bioavailability, and \(u_{F,i}\) is a subject-specific formulation deviation. A model may also include subject random effects on log clearance and log absorption rate. Collecting these effects into \(b_i\), a common specification is \(b_i\sim N(0,\Omega)\), where \(\Omega\) is their covariance matrix. A subject-by-formulation variance is generally most credible when the design contains enough information to estimate it, such as a suitable replicate design; it should not be added automatically to a sparse design.

Definition: In a Bayesian nonlinear mixed-effects analysis, the posterior distribution is the probability distribution of model parameters given the observed concentration data and the chosen prior distributions. It is proportional to the likelihood multiplied by the prior: \(p(\theta,b,\sigma,\Omega\mid y)\propto p(y\mid\theta,b,\sigma,\Omega)p(\theta,b,\sigma,\Omega)\).

The likelihood must reflect the sampling and error structure of the data. The model above assumes conditionally independent residual errors given the parameters and random effects, with constant variance on the log-concentration scale. It also assumes the structural concentration model is adequate for the chosen drug, dose, and observation schedule. Different residual structures may be appropriate when error changes with concentration or when measurements have additional dependence.

Choosing Priors and Defining the Target

Priors should be specified on parameters with interpretable scales. Typical log clearance, log volume, and log absorption rate can receive normal priors centered on plausible values informed by units, pharmacology, or previous knowledge. A prior for a formulation contrast such as \(\beta_F\) is often centered at zero, but its spread should be broad enough to allow meaningful formulation differences while excluding implausibly extreme values. Priors for standard deviations must be restricted to positive values; half-normal or half-\(t\) priors are common choices. For random-effects correlations, an LKJ prior is one standard option. The choices should be stated and their influence assessed, especially when the data are sparse or parameters are weakly identified.

For a positive parameter modeled on the log scale, the prior is on its logarithm, not directly on the parameter. For example, if \(\log(CL)\sim N(m,s^2)\), then \(CL\) is lognormally distributed. This distinction matters when interpreting the prior's implied range in the original units.

Worked Example: Interpreting a Prior on a Formulation Contrast

Suppose the log relative bioavailability contrast has prior \(\beta_F\sim N(0,0.20^2)\). The corresponding bioavailability ratio is \(R_F=\exp(\beta_F)\). The prior median ratio is \(\exp(0)=1\). A central 95% prior interval for \(\beta_F\) is approximately \(0\pm1.96(0.20)=[-0.392,0.392]\). Transforming the endpoints gives

$$ [\exp(-0.392),\exp(0.392)]\approx[0.6757,1.480]. $$

Thus this prior places its central 95% mass on ratios from about 0.676 to 1.480. It is centered on no average formulation difference, but it does not assert that the difference is zero. Whether this spread is weakly informative or too restrictive depends on the scientific context and should be checked against reasonable alternative priors.

From the Posterior to an Exposure Ratio

The model parameters are not necessarily the final estimand. For each posterior draw, calculate the exposure metric for each formulation from that draw's pharmacokinetic parameters, then form the ratio. For a linear one-compartment model after an oral dose, total AUC is \(FD/CL\). If dose and clearance are common across formulations, the AUC ratio is \(F_T/F_R\); if the model allows other formulation-specific parameters affecting AUC, those must also be included.

$$ R_{\mathrm{AUC}}^{(m)} = \frac{\mathrm{AUC}_T^{(m)}}{\mathrm{AUC}_R^{(m)}}, \qquad m=1,\ldots,M. $$

The superscript \(m\) denotes a posterior draw. The resulting \(M\) ratios approximate the posterior distribution of the exposure ratio. A posterior median and quantiles can summarize its location and uncertainty. This draw-by-draw transformation preserves dependence among parameters; plugging separate posterior means into a nonlinear formula can discard that dependence and generally need not give the posterior mean of the derived ratio.

Worked Example: Transforming a Posterior for Log Relative Bioavailability

Suppose a fitted model gives an approximately normal posterior for \(\beta_F\), with posterior distribution \(N(-0.080,0.050^2)\). For the typical subject (\(u_{F,i}=0\); equivalently, the population median when \(u_{F,i}\) is centered normal), the AUC ratio is \(R_{\mathrm{AUC}}=\exp(\beta_F)\); for subject \(i\), it is \(R_{\mathrm{AUC},i}=\exp(\beta_F+u_{F,i})\). The posterior median is the exponential of the log-scale median:

$$ \operatorname{median}(R_{\mathrm{AUC}}\mid y)=\exp(-0.080)=0.9231. $$

An approximate central 95% posterior interval on the log scale is \(-0.080\pm1.96(0.050)\), or \([-0.178,0.018]\). Exponentiating the endpoints gives

$$ [\exp(-0.178),\exp(0.018)]\approx[0.8370,1.018]. $$

Under this model and prior, the posterior median AUC ratio is 0.9231, and the central 95% posterior interval runs from 0.8370 to 1.018. These values are ratios and therefore dimensionless. Conditional on the model, data, and prior, the interval has 95% posterior probability of containing the parameter; this is distinct from a frequentist repeated-sampling coverage statement.

Worked Example: Summarizing AUC Ratios From Posterior Draws

Suppose a model fit produces 1,000 posterior draws of formulation-specific AUCs. For one draw, the reference AUC is 16.0 mg·h/L and the test AUC is 16.8 mg·h/L, so that draw's ratio is \(16.8/16.0=1.050\). Repeating this calculation for every draw gives 1,000 ratios. After sorting them, suppose the 25th, 500th, and 976th ordered ratios are 0.884, 1.031, and 1.184.

Using these empirical quantiles, the posterior median ratio is approximately 1.031 and the central 95% posterior interval is approximately [0.884, 1.184]. The ratio for the single example draw is 1.050; it is not a substitute for the distribution-wide summary. The interval is obtained from the posterior draws of the derived metric, so it incorporates uncertainty and dependence in the model parameters used to calculate both AUCs.

Justification and Computational Checks

The posterior formula follows directly from conditional probability. Let \(y\) denote all observed concentrations and \(\phi\) collect population parameters, random effects, and error parameters. Bayes' rule gives

$$ p(\phi\mid y)=\frac{p(y\mid\phi)p(\phi)}{p(y)} \propto p(y\mid\phi)p(\phi), \qquad p(y)=\int p(y\mid\phi)p(\phi)\,d\phi. $$

The normalizing constant \(p(y)\) is the integral of likelihood times prior over the parameter space and does not depend on \(\phi\). This identity explains why posterior computation requires both a specified likelihood and a specified prior. For an exposure ratio \(g(\phi)\), posterior draws \(\phi^{(m)}\) are transformed to \(g(\phi^{(m)})\); quantiles of those transformed draws then summarize uncertainty in the target itself.

Nonlinear mixed-effects posteriors are often computed with Markov chain Monte Carlo. Before summarizing results, check that chains have mixed, that trace plots do not show persistent drift or separated modes, and that effective sample sizes are adequate for the target summaries. Split-\(\hat R\) values close to 1 are useful but do not alone prove convergence. Inspect diagnostics for derived exposure ratios as well as for model parameters. Divergent transitions or poor mixing can signal difficult posterior geometry, weak identification, or problematic parameterization. Posterior predictive checks—comparing replicated concentration-time profiles with observed profiles—can reveal structural or residual-model misfit; good sampling diagnostics do not establish that the model is scientifically adequate.

1
Specify the model.
Define the structural concentration function, residual distribution, fixed effects, and random-effects structure in the context of the study design.
2
Set and examine priors.
State priors on the scales where they are defined, and inspect their implications for plausible concentrations, variability, and formulation ratios.
3
Assess the fit.
Review sampling diagnostics and posterior predictive behavior before interpreting parameter or exposure summaries.
4
Compute the estimand.
Calculate each formulation's exposure for every retained posterior draw, then form the draw-specific ratio and summarize its distribution.

Alternatives, Limitations, and Common Pitfalls

A frequentist nonlinear mixed-effects analysis estimates parameters by likelihood-based methods and quantifies uncertainty using an estimated sampling distribution or resampling. Bootstrap resampling, discussed in the earlier material on Propagating Model Uncertainty With Bootstrap Resampling, is one way to assess uncertainty while refitting the model. Bayesian estimation instead combines likelihood and prior and yields a posterior distribution directly. Neither approach repairs a misspecified structural model, an unsuitable residual distribution, or a design that lacks information to distinguish parameters. Bayesian estimates can also be sensitive to priors when the likelihood is weakly informative; frequentist estimates can likewise be unstable or fail to converge in difficult models.

A common mistake is to take exponentials of separate posterior means and call the result the posterior mean exposure ratio. For example, in general \(E[\exp(\beta_F)\mid y]\ne\exp(E[\beta_F\mid y])\). The correction is to transform every joint posterior draw and summarize the resulting ratios. Another mistake is to interpret a posterior credible interval as a frequentist confidence interval or as a probability statement about a fixed parameter without specifying the Bayesian conditioning. The posterior interpretation is conditional on the model and prior.

Finally, an exposure ratio derived from a fitted concentration model inherits its structural assumptions. If the absorption model is wrong, if formulation-dependent processes are omitted, or if key parameters are not identifiable from the sampling schedule, a narrow posterior interval can still be misleading. Report the model, prior choices, computation diagnostics, and exposure definition alongside the numerical summary.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. If \(\beta_F\) is a log relative bioavailability effect, what transformation gives the corresponding bioavailability ratio?
  2. Why should exposure ratios be calculated for each posterior draw rather than from separate posterior mean parameters?
  3. A posterior median AUC ratio is 1.06 with a 95% posterior interval of [0.91, 1.23]. State an appropriate interpretation.
  4. Name two checks that address different aspects of Bayesian model adequacy.

Solutions. (1) The ratio is \(\exp(\beta_F)\). (2) The exposure calculation can be nonlinear and parameters can be dependent, so transforming separate means need not represent the posterior distribution of the ratio; draw-wise calculation preserves their joint uncertainty. (3) Conditional on the specified model, prior, and data, the posterior median ratio is 1.06, and the central 95% posterior interval is 0.91 to 1.23. Conditional on the specified model, prior, and data, the interval has 95% posterior probability of containing the parameter; this is distinct from a frequentist repeated-sampling coverage statement. (4) MCMC trace plots, effective sample sizes, or \(\hat R\) assess computation; posterior predictive checks assess how well the fitted model reproduces observed concentration patterns.