Tutorials › Pharmacokinetic-Pharmacodynamic (PK/PD) Modeling › Visual Predictive Checks for Delayed Concentration-Effect Data

Effect-Compartment Models and Hysteresis · Tutorial 102 of 598

Visual Predictive Checks for Delayed Concentration-Effect Data

You will learn to compare observed delayed concentration-effect data with replicated model simulations using time-based and concentration-based predictive checks.

Advanced 12 min read

What You'll Learn

  • Define a visual predictive check using replicated datasets simulated under a fitted PK/PD model.
  • Construct time-stratified predictive intervals for plasma and PD observations.
  • Compare observed PD distributions across plasma-concentration bins.
  • Evaluate whether simulated trajectories reproduce hysteresis direction, magnitude, and timing.
  • Distinguish model inadequacy from sampling variability, binning artifacts, and sparse data.
  • Recognize when a visual predictive check is conditional on fixed parameter estimates.

Why Check Simulated Predictions?

A delayed concentration-effect model makes predictions about more than a fitted curve. It predicts distributions of plasma concentrations and pharmacodynamic (PD) observations over time, and it predicts how those observations relate when plasma concentration rises and falls. A curve can pass near many observed points while still missing their variability, the timing of the response, or the separation between rising and falling concentration-effect paths. A visual predictive check (VPC) assesses these features by comparing the observed data with replicated data generated under the fitted model.

For delayed effects, useful views include plasma and PD observations against time, PD observations against plasma concentration, and a display that preserves whether each concentration was observed on the rising or falling part of the profile. The displays complement residual diagnostics: a VPC asks whether the model can generate data with patterns like those observed, not simply whether a single predicted curve lies close to them.

Definition: A visual predictive check compares summaries of observed data with the distribution of the same summaries computed from many datasets simulated under a fitted model. A prediction interval for a summary is an interval covering a specified central fraction of its simulated values. A VPC for delayed concentration-effect data checks plasma and PD predictions over time and, where informative, PD predictions conditional on plasma concentration or hysteresis branch.

Constructing a VPC for Delayed PK/PD Data

Start by specifying the observation design to reproduce: dose and infusion history, sampling times, covariates, number of subjects, and which plasma and PD measurements are available. Simulate complete datasets under the fitted PK/PD model, including relevant between-subject and residual variability. Preserve the paired plasma and PD values from each simulated subject. The effect-compartment dynamics described in earlier material on effect-site models determine how concentration history contributes to the predicted response; the VPC checks the resulting observable predictions.

At each chosen time or within each prespecified time bin, calculate summaries such as the 10th, 50th, and 90th percentiles of observed plasma or PD values. Calculate the same summaries separately in every simulated dataset. For each summary, the simulated values form a distribution. Its central 90% prediction interval can be formed from the 5th and 95th percentiles across simulated datasets. Plot the observed summary and the interval over time. The observed percentile is a statistic from the actual data; the interval describes the variability of that statistic under repeated datasets generated by the fitted model.

Quantile conventions must be consistent and stated, especially for small datasets. In the examples below, empirical percentiles use the nearest-rank rule: the percentile \(q\) is the ordered observation at rank \(\lceil qn\rceil\), where \(n\) is the number of observations and \(\lceil\ \rceil\) denotes rounding upward. Thus, for 20 values, the nearest-rank median is rank 10, not the average of ranks 10 and 11. A 90% interval across 20 simulated values uses ranks 1 and 19 for its 5th and 95th percentile endpoints. With many simulated datasets, endpoint discreteness is less consequential, but the convention should still be documented.

Time bins should reflect the sampling design and the dynamics of interest. Bins that are too narrow can contain too few observations for stable percentiles; bins that are too wide can hide a peak or a lag. A useful display makes bin boundaries and sample counts clear. If sampling is sparse near the response peak or during washout, no choice of plotting style can supply the missing information.

Worked Example: Checking a Plasma Median at One Time

Suppose a hypothetical study has 10 observed plasma concentrations at 2 hours, sorted as \(7.8, 8.1, 8.3, 8.5, 8.8, 9.0, 9.2, 9.8, 10.4, 11.0\) mg/L. Use the nearest-rank rule. The observed median is the value at rank \(\lceil 0.5(10)\rceil=5\), or 8.8 mg/L.

Assume 20 simulated datasets were generated with the same design, and their plasma medians at 2 hours, sorted, are \(8.5, 8.7, 8.8, 8.9, 9.0, 9.0, 9.1, 9.2, 9.2, 9.3, 9.4, 9.4, 9.5, 9.6, 9.7, 9.8, 9.9, 10.0, 10.2, 10.4\) mg/L. The simulated median-of-medians under the nearest-rank convention is rank \(\lceil0.5(20)\rceil=10\), or 9.3 mg/L. The 90% prediction interval for the simulated median uses ranks \(\lceil0.05(20)\rceil=1\) and \(\lceil0.95(20)\rceil=19\), giving \([8.5,10.2]\) mg/L.

The observed median, 8.8 mg/L, lies inside this interval. That is compatible with the simulated variability at this time point; it does not establish that the model is correct. Other times, percentiles, subjects, and PD displays could reveal systematic discrepancies.

Checking PD Over Time and Against Concentration

Construct a PD-versus-time VPC as well as a plasma-versus-time VPC. A delayed response can have a later peak than plasma concentration, and its spread may change over time. An observed PD median outside its simulated prediction interval for several consecutive bins, or observed lower and upper percentiles that repeatedly fall outside their corresponding bands, can indicate a mismatch in typical response, variability, or timing. A single isolated point beyond a band is less compelling: prediction intervals are not simultaneous bands, and random variation can place some observed summaries outside them.

A concentration-effect display provides a complementary check. Use the paired plasma concentration and PD measurement from the same subject and time. Define concentration bins before interpreting the pattern; within each bin, compare observed PD percentiles with the distribution of those percentiles across simulations. The simulation must apply the same binning rule to its paired concentration-effect data. Otherwise, differences in which observations enter a bin can be mistaken for differences in the response model.

Pooling all observations into concentration bins can obscure hysteresis because the same plasma concentration may occur during both rising and falling phases. When the data permit, display or summarize those branches separately, while retaining the sequence over time. For an increasing PD endpoint, a conventional effect-site delay often gives a lower effect at a given plasma concentration on the rising branch than on the falling branch; on a concentration-horizontal, effect-vertical plot this is counterclockwise hysteresis. For endpoints whose numerical direction is reversed, interpret the response scale explicitly rather than assigning a loop direction by appearance alone.

Worked Example: Checking Hysteresis Direction and Timing

Consider a hypothetical subject with paired observations at times 0, 0.5, 1, 2, 3, and 4 hours. Plasma concentrations are \(0, 6, 10, 6, 3,\) and \(1\) mg/L, while an increasing PD response is \(0, 1, 3, 5, 7,\) and \(4\) units. Plasma peaks at 1 hour and the response peaks at 3 hours, so the observed peak-time difference is \(3-1=2\) hours.

At the shared concentration of 6 mg/L, the response is 1 unit on the rising branch (0.5 hour) and 5 units on the falling branch (2 hours). The observed branch difference is \(5-1=4\) response units. Because the response is higher on the falling branch, the observed loop has the counterclockwise orientation for an increasing endpoint under the stated axis convention.

Suppose simulations give a median branch difference of 2.9 units, with a 90% prediction interval of 2.2 to 4.1 units, and a median peak-time difference of 1.5 hours, with a 90% interval of 0.5 to 3.0 hours. The observed 4-unit branch difference and 2-hour peak-time difference both lie within the respective intervals. These comparisons support compatibility with the simulated hysteresis magnitude and timing at the level of these summaries. They do not by themselves validate every aspect of the model or establish a physiological mechanism.

Why the Predictive Intervals Work

The VPC's comparison has a direct repeated-sampling interpretation under the fitted model. Let \(T\) be a chosen data summary, such as the observed PD median in a time bin. Simulate \(M\) datasets under the model and calculate \(T_1,\ldots,T_M\) using exactly the same procedure. The simulated values approximate the model's sampling distribution for \(T\), conditional on the design and the parameter values used for simulation.

If the model and parameter values were the data-generating process, and a central 90% interval were calibrated exactly, repeated datasets would place \(T\) outside that interval about 10% of the time. This follows because the lower and upper tails each contain about 5% of the sampling distribution: \(P(T<L)\approx0.05\) and \(P(T>U)\approx0.05\), so \(P(T<L\text{ or }T>U)\approx0.10\). Finite simulation counts and discrete data make the realized rate approximate rather than exact. Moreover, checking many bins and summaries increases the chance that at least one falls outside its interval. Therefore, a VPC is interpreted through the pattern and coherence of discrepancies, not by treating any single crossing as a formal rejection.

1
Reproduce the design.
Simulate the observed number of subjects, sampling schedule, dosing, covariates, and paired PK/PD observations.
2
Choose informative summaries.
Prespecify time bins, percentiles, concentration bins, and branch or peak-timing summaries that address the delayed-effect question.
3
Compare observed and simulated patterns.
Plot observed summaries against simulation-based prediction intervals, then assess persistent offsets, width mismatches, or incorrect trajectory features.

Diagnostics, Alternatives, and Limitations

A useful VPC distinguishes several types of mismatch. A consistent vertical offset in PD summaries suggests that typical response predictions are misplaced. Observed percentiles wider than simulated bands can indicate underpredicted variability; narrower percentiles can indicate overpredicted variability. A simulated response peak that systematically occurs too early or too late, or simulated rising and falling branches that are too close together, points to a timing or hysteresis-magnitude mismatch. A plasma VPC that is adequate while the PD VPC is not can help localize the problem to the concentration-effect component, although it does not prove that the PK component is fully correct.

Check sample counts, bin boundaries, and the time ordering of the data before attributing a discrepancy to the model. Unequal numbers of observations across bins, sparse observations near a peak, influential subjects, or an inconsistent rule for assigning branches can create unstable or misleading summaries. Repeating the check with a modestly different, defensible binning scheme can reveal whether a conclusion depends on an arbitrary boundary; it should not be used to search for a preferred result.

A VPC is descriptive, not a parameter-estimation method or a formal test with a single p-value. Residual diagnostics focus on observed-minus-predicted errors and can expose patterns at the observation level; a VPC shows whether replicated datasets reproduce distributions and trajectories. A single fitted curve is simpler to display but omits the variability expected in new data. Simulation-based alternatives can summarize discrepancies numerically or account more explicitly for parameter uncertainty, but they still depend on model assumptions and correct simulation. A conventional VPC using fixed parameter estimates is conditional on those estimates; it does not automatically include uncertainty in them.

A common mistake is to regard every observed percentile as required to lie inside its 90% prediction interval, then declare model failure if any one does not. The interval applies to a particular statistic under repeated simulation, and about 10% of such statistics are expected to fall outside a calibrated 90% interval. The correction is to examine repeated, structured departures across relevant summaries, while considering the number of comparisons, sample size, and uncertainty. Conversely, a plot that looks acceptable is not proof that the model is uniquely identified, that its parameters are precise, or that its mechanistic interpretation is true.

Key takeaway: A VPC for delayed concentration-effect data should reproduce the observation design and preserve paired PK/PD histories. Assess plasma and PD distributions over time, then check whether concentration-effect displays reproduce the observed hysteresis direction, magnitude, and timing. Interpret bands as simulation-based predictive intervals, not as guarantees that every observed summary will fall inside them.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. In a 20-value simulated distribution, what rank supplies the nearest-rank median, and what ranks supply the endpoints of a central 90% interval?
  2. Why should simulated plasma concentrations and PD responses remain paired when constructing a concentration-effect VPC?
  3. For an increasing response, observed effect is 2 units on the rising branch and 6 units on the falling branch at the same plasma concentration. What is the branch difference, and what direction is expected on a plot with plasma concentration on the horizontal axis?
  4. What does it mean if one observed percentile falls outside its 90% prediction interval in one time bin?
  5. State one important uncertainty not automatically represented by a VPC simulated at fixed parameter estimates.

Solutions. (1) The median is rank \(\lceil0.5(20)\rceil=10\). The interval endpoints are ranks \(\lceil0.05(20)\rceil=1\) and \(\lceil0.95(20)\rceil=19\). (2) Pairing retains the joint relationship between concentration and response at the same subject and time; breaking it can alter the apparent concentration-effect pattern and hysteresis. (3) The difference is \(6-2=4\) response units. A higher effect on the falling branch corresponds to counterclockwise hysteresis under the stated axes and increasing-response convention. (4) It is compatible with ordinary predictive variation: a calibrated 90% interval has about a 10% chance of excluding that summary across repeated datasets, before accounting for multiple comparisons. Look for coherent patterns rather than interpreting one crossing alone. (5) Uncertainty in the estimated model parameters is not automatically included; fixed-parameter simulations condition on the parameter values used.

Clinical Biostats