41.27 Case 6: the numerical check, censored observations and parameter uncertainty
What you will learn
- Read a numerical predictive check as a table of expected against observed fractions, with its interval.
- Understand what changes when an LLOQ is declared, and how many observations are set aside.
- Include parameter uncertainty in a VPC, and say what the wider intervals mean.
- Choose, for a stated purpose, which of the four VPC runs to report.
Prerequisites: 41.25 and 41.26.
The question: how do the answers of the previous two pages change when the check is run in other ways: as a table, with censored data, with parameter uncertainty?
The evidence: the Chapter 27 bundles npc_tables, blq_pcvpc and uncertainty_vpc, all on the final model of Case 5.
The numerical check without a plot
--vpc-type npc --no-plots produces only the numerical predictive check (NPC), at the prediction intervals chosen by --npc-pi 20,50,80,90,95, with 300 replicates. For every interval the table counts how many observations fall below its lower limit and how many above its upper limit, and compares the percentages with what a correct model gives:
| PI | Below | % (expected) | Interval | Above | % (expected) | Interval |
|---|---|---|---|---|---|---|
| 20 % | 187 | 39.0 (40.0) | 33.8–45.9 | 206 | 42.9 (40.0) | 33.2–45.8 |
| 50 % | 120 | 25.0 (25.0) | 19.5–30.4 | 125 | 26.0 (25.0) | 19.6–30.9 |
| 80 % | 50 | 10.4 (10.0) | 6.5–13.8 | 47 | 9.8 (10.0) | 6.2–14.2 |
| 90 % | 31 | 6.5 (5.0) | 2.5–7.8 | 27 | 5.6 (5.0) | 2.5–7.9 |
| 95 % | 14 | 2.9 (2.5) | 1.2–4.4 | 15 | 3.1 (2.5) | 1.1–4.8 |
The expected percentages follow from the definition. A prediction interval of level L leaves (100 − L)/2 % of a correct model's observations below it and the same above, so the 20 % PI expects 40 % on each side, the 50 % PI expects 25 %, the 90 % PI expects 5 %, and the 95 % PI expects 2.5 %. The counts are checkable: 187 of 480 is 38.96 % and 206 of 480 is 42.92 %.
No cell is outside its interval. The observed fractions scatter on both sides of the expected value with no trend: 39.0 below and 42.9 above at the 20 % level, then 25.0 and 26.0, then 10.4 and 9.8, then 6.5 and 5.6, then 2.9 and 3.1. A model that was systematically too narrow would show more than expected on both sides at the high-level intervals (90 and 95 %); one with a biased centre would show opposite deviations in the two columns. Neither is present. The table is the one to cite in a report where a plot would be hard to reproduce, and it is the form a reader can recompute from npc_results.csv.
Censored observations: the LLOQ
The blq_pcvpc bundle repeats the prediction-corrected VPC with --lloq 0.2 and one bin per distinct time (--bins nominal), 200 replicates. The question it answers is what the check does when some observations are below a quantification limit. The stored per-observation file flags them:
| Time (h) | Observations | Below the LLOQ |
|---|---|---|
| 0.25 | 60 | 1 |
| 24 | 60 | 24 |
| every other time | 360 | 0 |
| All | 480 | 25 |
Two points need stating before the output is read.
This is a check setting, not a property of the data. The data of this study were not censored: the 480 observations are numeric. Declaring an LLOQ of 0.2 in the check marks the observations below 0.2 as censored for the purposes of the VPC. It is a way of asking "what would this plot look like if the assay could not see below 0.2?", and it does not change the model that was fitted. A real below-limit analysis would handle the censoring in the fit as well as in the check.
What the program does with them. The percentile statistics are computed with the censored observations treated as censored, so a percentile that falls inside the censored region is reported as <LLOQ rather than as a number: in bin 8 (24 h), the observed 5th percentile is <LLOQ, because with 24 of 60 below 0.2 (40 %), the 5th percentile is in the censored part. The simulated interval for that percentile is <LLOQ – <LLOQ for the same reason. The median at 24 h is 0.2428 against 0.2563 in the run without a limit, and its interval [0.1767, 0.2847] against [0.2109, 0.2897]: the numbers shift because the lowest observations are now censored, not real values. The numerical check, finally, leaves out the 25 observations below the LLOQ and reports on the remaining 455 (the note says so).
The result is unchanged where it matters: 1 of 24 observed percentiles outside (the same median at 0.5 h, 1.018 against [0.8852, 1.015], now by a margin of 0.003), and the NPC percentages with 455 observations stay within their intervals. For a real censored data set, the thing to inspect is not whether the plot looks the same, but that the censored fraction in each bin is itself reproduced by the model: 24 of 60 below 0.2 at 24 h is a prediction the model makes and can be checked against.
Parameter uncertainty
The uncertainty_vpc bundle adds --param-uncertainty: instead of fixing the parameters at their estimates, each simulated study uses a fresh parameter set drawn from a multivariate normal around the estimates with the covariance of the fit. The stored summary reports 200 distinct parameter sets, 0 rejected draws for the nine estimated parameters (THETA(1) to THETA(7), OMEGA(1,1) and OMEGA(2,2)). The run also uses a user-set bin definition and different levels:
--vpc-type vpc --samples 200 --seed 27003 --bins "0,0.4,0.75,1.5,3,6,10,18,30" --pi 10,50,90 --ci 90 \
--param-uncertainty
The bin edges are placed around the eight sampling times (0.25, 0.5, 1, 2, 4, 8, 12, 24 h), so each bin again contains exactly one sampling time: edges 0–0.4, 0.4–0.75, 0.75–1.5, 1.5–3, 3–6, 6–10, 10–18 and 18–30. The percentiles are 10, 50 and 90 with 90 % intervals, and it is an ordinary VPC, not prediction-corrected.
The outcome is 0 of 24 percentiles outside their 90 % intervals (the earlier run had 1 of 24 outside 95 % intervals), and the NPC percentages are inside again. Two reasons make that unsurprising, and both are worth keeping apart:
- Including parameter uncertainty widens the simulated intervals, because it adds the variability of the estimates to the variability of the simulated data. Wider intervals contain more of the observed percentiles.
- The run uses 90 % intervals, which are narrower than the 95 % intervals of the primary run, working in the other direction.
The two effects confound, so the zero should not be read as evidence that one setting is stricter than another; the bundle is not a controlled comparison of the two. What it shows is that an adequate model remains adequate when its own estimation uncertainty is carried into the check, and that the program can sample the 200 sets without rejecting any (a rejected draw would be a sampled parameter set that the model cannot simulate from).
Which run to report?
| Purpose | Run | Why |
|---|---|---|
| Show model adequacy in a report or a paper | pcVPC with the fit's parameters (page 41.25) | the standard figure; corrects for covariate-driven spread |
| Find a missing covariate | stratified pcVPC of the base model (41.26) | direction of error by subgroup |
| Check a final model for residual structure | stratified pvcVPC (41.26) | comparable intervals across strata |
| Quote numbers where a plot is impractical | NPC table (this page) | recomputable fractions with intervals |
| Data with a quantification limit | pcVPC with the LLOQ (this page), after censoring is in the fit | censored fraction by bin |
| Show that adequacy is not an artefact of the point estimates | VPC with parameter uncertainty (this page) | intervals include estimation variability |
The decision
| Question | Evidence | Decision | Reversible? |
|---|---|---|---|
| Is the final model adequate by the numerical check? | 10 cells inside (5 PI levels, 2 sides) | yes | yes |
| Is the result robust to a declared LLOQ? | same 1 of 24, 455 observations | yes, as a check setting | yes |
| Is the result robust to parameter uncertainty? | 0 of 24 outside with 200 parameter sets | yes | yes |
What this case does not show
All four runs share the same data and the same model, and each uses a different seed and set of settings, so differences between them include Monte Carlo variation. The LLOQ bundle does not demonstrate a censored-data analysis, only the check's handling of a limit. None of the bundles uses an external data set: they check the model on the data it was fitted to.
Review checklist
- Can you compute each expected fraction in an NPC table from its PI level?
- When an LLOQ is declared, do you know how many observations are set aside, and in which bins?
- Do you state whether a VPC includes parameter uncertainty, and the interval level used?
- Is the choice among the four runs tied to a stated purpose?
Navigation
See the previous page, the next page and the complete case-study reference.