Tutorials › Nonlinear Mixed-Effects Models (NLME) › Troubleshooting Conflicting VPC, pcVPC, and NPDE Results

Visual and Numerical Predictive Checks · Tutorial 607 of 797

Troubleshooting Conflicting VPC, pcVPC, and NPDE Results

Learn to trace conflicting predictive-check results to their assumptions and implementation choices before attributing them to model misfit.

Intermediate 12 min read

What You'll Learn

  • Distinguish conditional residual variation from the total spread of conditional simulated outcomes.
  • Identify how binning and prediction correction can change VPC summaries.
  • Separate simulation Monte Carlo noise from evidence of model misfit.
  • Check whether censoring and repeated-measure correlation are handled consistently.
  • Use a structured sequence to investigate discordant predictive checks.

Why Predictive Checks Can Disagree

A VPC, a prediction-corrected VPC (pcVPC), and NPDE do not ask precisely the same question. A VPC compares observed and simulated outcome distributions, often within time or prediction bins. A pcVPC first rescales observations and simulations to reduce systematic differences in typical prediction across a bin. NPDE assess standardized discrepancies while accounting for the simulated mean and covariance at the observation design. It is therefore possible for one check to look acceptable while another raises concern, even when all three have been calculated correctly.

The practical task is to locate the source of the disagreement before deciding what it implies. A mismatch may reflect conditioning, bin definitions, correction assumptions, finite simulation error, censoring, or dependence among repeated observations. It may also reflect genuine model misfit. The plots and statistics are evidence about model performance only after their simulation and summary procedures have been checked.

Definition: A VPC compares observed summaries, such as quantiles within bins, with the same summaries from simulated data. An unconditional VPC generally draws new subject-level random effects from the fitted population distribution; a conditional VPC generally holds subject-specific estimates fixed while simulating outcomes. Exact software definitions can differ, so the conditioning rule must be reported. A pcVPC applies a prediction-based rescaling before summarizing. NPDE are normal-quantile discrepancies standardized using the simulated predictive mean and covariance at the design being evaluated.

A conditional check is not automatically a residual-only plot. If subject-specific predictions differ, conditional simulated outcomes retain that between-subject spread. What can be compared with residual variability is the simulated deviation from each fixed prediction, not the overall spread of all simulated outcomes pooled across subjects.

Start With the Conditioning and the Scale

Before comparing diagnostics, write down what is held fixed and what is simulated: dosing and sampling design, covariates, subject-specific estimates, population random effects, residual error, and any censoring process. Then identify the quantity each display summarizes: pooled outcomes, within-bin quantiles, residuals around predictions, or standardized subject-level discrepancies. Similar labels do not ensure the same conditioning or target quantity.

The variance decomposition makes the conditional distinction explicit. Let \(m_i\) be the fixed subject-specific prediction for one observation, and suppose the simulated outcome is \(Y_i^{sim}=m_i+\epsilon_i\), where the simulated residual \(\epsilon_i\) has mean zero and variance \(\sigma^2\). Across subjects, the variance of the pooled conditional outcomes is

$$ \operatorname{Var}(Y_i^{sim})=\operatorname{Var}(m_i)+\sigma^2 $$

when residuals have mean zero conditional on \(m_i\) and constant variance. This follows by writing \(Y_i^{sim}-E(Y_i^{sim})=(m_i-E(m_i))+\epsilon_i\). Squaring and taking expectations gives the variance of \(m_i\), plus \(\sigma^2\), plus twice the covariance of \(m_i\) and \(\epsilon_i\); that covariance is zero under the stated conditional mean assumption. Thus the conditional residual standard deviation is not the pooled conditional outcome standard deviation.

Worked Example: A Conditional VPC With Substantial Subject Spread

Suppose, at a selected time, fitted subject-specific predictions have a standard deviation of 28 concentration units across subjects. Conditional simulations hold those predictions fixed and add residual error with standard deviation 10 units. The observed deviations from the same subject-specific predictions have standard deviation 9 units. Assume for this calculation that residual errors have mean zero, are independent of the fixed predictions, and have constant variance.

The simulated residual spread is 10 units, close to the observed residual spread of 9 units. The pooled spread of conditional simulated outcomes is instead approximately

\(\sqrt{28^2+10^2}=\sqrt{884}=29.73\) concentration units.

The value 29.73 includes variation among the fixed predictions; it is not the residual spread. Calling 10 units the “between-subject spread” of the conditional outcomes would be incorrect. A pooled conditional VPC can therefore show broad outcome quantiles even when the residual variation around individual predictions is well calibrated. To compare the residual component, examine simulated and observed deviations from predictions on a compatible scale.

Binning and Prediction Correction

VPC quantiles depend on bin membership. Time bins that are too wide can combine observations from different parts of a steep concentration profile; bins that are too narrow can contain too few observations for stable quantiles. Data-dependent binning can also make the observed and simulated summaries incomparable if bin boundaries are recalculated differently for each simulated data set. A defensible comparison uses the same design and clearly specified binning rule, and checks whether conclusions persist under reasonable alternative boundaries.

A pcVPC addresses a different issue: observations in one bin may have different typical predictions because of dose, body size, or other covariates. One common proportional correction, for observation \(ij\) in bin \(b\), is

$$ Y_{ij}^{pc}=Y_{ij}\frac{P_{ref,b}}{P_{ij}}, \qquad Y_{ij}^{sim,pc}=Y_{ij}^{sim}\frac{P_{ref,b}}{P_{ij}^{sim}} $$

Here \(P_{ij}\) and \(P_{ij}^{sim}\) are the corresponding predictions, and \(P_{ref,b}\) is a stated reference prediction for the bin. Observations and simulations must use a consistent correction rule. This scaling is most interpretable when outcome magnitude is approximately proportional to prediction. It is not a universal remedy for covariate effects, nonlinear scaling, or incorrect structural predictions.

Worked Example: How Correction Changes a Bin Summary

Consider a bin with reference prediction \(P_{ref,b}=10\) concentration units. Two hypothetical observed concentrations are 24 and 18 units, with individual predictions 20 and 10 units, respectively. The raw mean is \((24+18)/2=21\) units.

After proportional correction, the first value is \(24(10/20)=12\) units, and the second is \(18(10/10)=18\) units. The corrected mean is \((12+18)/2=15\) units. The difference arises because the first observation was made where its prediction was twice the bin reference; correction expresses it on the reference-prediction scale.

This calculation does not prove that correction is appropriate. It assumes proportional rescaling is meaningful and that the predictions used in the correction are appropriate. If a prediction is near zero, the ratio can become unstable; if the relationship between prediction and outcome is not proportional, corrected values may distort rather than clarify the comparison. Inspect raw and corrected checks together.

Simulation Precision, Censoring, and Correlation

Predictive-check summaries have sampling variability, and simulated summaries have additional Monte Carlo variability because only a finite number of replicates is generated. For a simple coverage proportion based on \(n\) independent observations, the standard error under coverage probability \(p\) is \(\sqrt{p(1-p)/n}\). Dependence among repeated observations makes this independent-observation formula too optimistic if it is applied to all records as though they were independent. Replicate-level summaries and subject-level structure should be retained when assessing uncertainty.

Worked Example: Is a Coverage Difference Larger Than Simulation Noise?

Suppose a VPC uses 200 simulated data sets, and a particular observed quantile lies within its simulated interval in 188 replicates. The estimated coverage is \(188/200=0.94\). If the target coverage is 0.90, the Monte Carlo standard error under that target is

\(\sqrt{0.90(1-0.90)/200}=\sqrt{0.00045}=0.0212\), or 2.12 percentage points.

The observed difference is \(0.94-0.90=0.04\), about \(0.04/0.0212=1.89\) Monte Carlo standard errors. This is a warning to inspect the result, not by itself decisive evidence of misfit. More simulations can reduce Monte Carlo noise, but cannot correct an unsuitable bin, incorrect conditioning, or an invalid model. The calculation also treats replicate-level coverage indicators as independent; it does not remove uncertainty due to the finite observed sample.

Censoring needs equivalent care. If concentrations below a limit of quantification are reported as censored rather than as exact values, replacing them with the limit and treating them as ordinary measurements changes the data distribution. Simulations should apply the same censoring and reporting rule as the observations. Checks can then compare quantities such as the fraction censored by time or dose group, while NPDE procedures must use a treatment of censored observations compatible with the model and the available information. Ordinary normal-score discrepancies for invented exact values at the limit do not represent the original censored data.

For repeated measurements, marginal agreement does not guarantee correct within-subject correlation. A VPC can reproduce the distribution at each time while missing the tendency for a subject’s successive residuals to move together. NPDE use the simulated covariance across observations when standardizing the subject’s vector; a misspecified covariance or an unstable covariance estimate can therefore change their results. Conversely, NPDE marginal calibration alone does not establish independence. Examine the sequence and subject-level pattern of discrepancies, and interpret results with the dependence structure in mind.

A Structured Troubleshooting Sequence

When checks disagree, proceed from implementation to interpretation. This avoids treating a difference between summaries as proof that one diagnostic is “right” and another “wrong.”

1
Align the target.
Confirm that simulations use the observed doses, covariates, sampling times, and reporting process. Record whether subject effects are fixed or redrawn.
2
Match the summary.
Check that bins, quantiles, time windows, and censoring rules are comparable. Separate residual deviations from pooled outcome spread.
3
Audit correction and covariance.
Verify the pcVPC prediction and reference scale; for NPDE, check that simulated repeated-measure covariance is adequate and estimated stably.
4
Assess precision and robustness.
Increase simulation replicates if Monte Carlo noise is material, and check whether conclusions survive reasonable binning and summary choices.
5
Interpret the remaining pattern.
If a systematic discrepancy persists under aligned, sufficiently precise checks, investigate its location and shape as potential model misfit.

These checks are complementary, not interchangeable. A raw VPC is direct for the observed outcome scale but can mix prediction levels within bins. A pcVPC can clarify proportional differences across prediction levels but depends on the correction assumption. NPDE provide a numerical, covariance-standardized assessment but can be sensitive to simulation size, covariance estimation, sparse within-subject data, and censoring treatment. No single diagnostic is a universal pass/fail test.

Common Mistakes and Limitations

  • Calling residual spread the spread of conditional outcomes. Fixed subject predictions still vary across subjects. Report residual deviations separately from pooled simulated outcome dispersion.
  • Assuming a pcVPC is always superior. Correction changes the scale and can be misleading when prediction-proportional scaling is inappropriate. Compare corrected and uncorrected displays.
  • Reading one unstable bin as decisive. Sparse bins, extreme quantiles, and too few simulations yield noisy summaries. Inspect bin counts and simulation precision.
  • Treating censored values as exact. Artificially setting every censored value equal to the limit changes the analysis target. Replicate the observation and censoring process.
  • Equating marginal fit with joint fit. Matching time-specific distributions does not establish that repeated observations have the correct dependence.
  • Interpreting all disagreement as model failure. First rule out differences in conditioning, scales, binning, and simulation precision; then assess persistent structured patterns.

A useful report states the conditioning rule, simulation count, binning method, prediction-correction formula, censoring treatment, and how repeated-measure dependence enters the numerical check. These details make it possible to distinguish a robust diagnostic pattern from an artifact of implementation. Even after they are checked, predictive checks have finite data and simulation resolution: they can reveal discrepancies but do not identify a unique model repair.

Check Your Understanding

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

  1. A conditional simulation holds subject predictions fixed, with standard deviation 15 units, and adds residual error with standard deviation 8 units. Under the assumptions used in the variance decomposition, what is the pooled conditional outcome standard deviation?
  2. Why can raw VPC and pcVPC quantiles differ even when both are computed correctly?
  3. A coverage estimate is 0.88 from 100 independent replicate-level indicators. What is its approximate standard error if the target probability is 0.90?
  4. Why is a marginally satisfactory VPC insufficient to establish correct repeated-measure dependence?
  5. What should be done when observations below the quantification limit are censored?

Solutions. (1) \(\sqrt{15^2+8^2}=\sqrt{289}=17.0\) units; this is pooled outcome spread, not residual spread. (2) The pcVPC rescales each value to a reference prediction, whereas the raw VPC remains on the original outcome scale; the summaries target different scales. (3) \(\sqrt{0.90(0.10)/100}=0.0300\), or 3.00 percentage points. (4) Marginal summaries can match at each time while the association among repeated observations is wrong; assess dependence as well. (5) Apply the same censoring/reporting mechanism in simulations and use summaries or residual procedures appropriate to censored data, rather than treating the limit as an exact observation.