41.26 Case 6: a pooled check that passes and a stratified check that does not
What you will learn
- Use stratified VPCs to diagnose a missing covariate effect in a base model.
- Read per-stratum numerical checks as directions: which way the model errs, in whom.
- See why a pooled check can pass while every subgroup is wrong in a different direction.
- Use a stratified check on the final model as a test for residual structure.
Prerequisites: 41.25 and 41.20.
The question: if we had stopped at the base model, would a VPC have told us that covariates were missing, and where?
The evidence: the Chapter 27 bundles missing_covariates (the base model, stratified by WT and EGFR) and stratified_pvcvpc (the final model, stratified by SEX and WT), plus the pooled NPC of the base model stored in the first.
The base model, stratified
The command stratifies the base fit of Case 5 on the two covariates that the final model uses on clearance, each at its median:
nlmx vpc <run22.ctl> --results-dir <base_fit> --samples 200 --seed 27006 \
--stratify WT,EGFR --stratify-groups 2 --bins nominal --output results/missing_covariates
The notes record the cut points: WT has 60 distinct values and is stratified into 2 quantile groups (cut at 72.205); EGFR … cut at 93.622. The four strata and their sizes:
| Stratum | Subjects | Observations |
|---|---|---|
| WT < 72.2, EGFR < 93.6 | 16 | 128 |
| WT < 72.2, EGFR ≥ 93.6 | 14 | 112 |
| WT ≥ 72.2, EGFR < 93.6 | 14 | 112 |
| WT ≥ 72.2, EGFR ≥ 93.6 | 16 | 128 |
The 60 subjects and the 480 observations are all accounted for (16 + 14 + 14 + 16 = 60; 128 + 112 + 112 + 128 = 480).
Pooled first
On all 480 observations the numerical check of the base model passes: at the median PI, 217 observations (45.2 %) lie below and 263 (54.8 %) above, within the simulated 43.7–57.5 % and 42.5–56.3 %; at the 50 % PI the shares are 22.1 % and 26.0 % against 25 % expected, inside 18.7–31.5 % and 18.5–31.3 %. None of the 16 cells of the pooled table (eight PI levels, two sides) is outside its interval. A reader who looked only at this table would conclude that the base model is adequate.
Then by stratum
| Stratum | VPC percentiles outside (of 24) | Observations above / below the model's median | NPC cells outside (of 16) |
|---|---|---|---|
| WT < 72.2, EGFR < 93.6 | 5 | 72.7 % above, 27.3 % below | 11 |
| WT < 72.2, EGFR ≥ 93.6 | 1 | 65.2 % above, 34.8 % below | 6 |
| WT ≥ 72.2, EGFR < 93.6 | 4 | 48.2 % above, 51.8 % below | 0 |
| WT ≥ 72.2, EGFR ≥ 93.6 | 6 | 33.6 % above, 66.4 % below | 11 |
In total 16 of 96 percentiles lie outside their intervals, against about 4.8 expected by chance, more than three times as many. And the direction is informative:
- In the lightest, lowest-eGFR stratum, 72.7 % of the observations are above the base model's median: the subjects have higher concentrations than the model predicts, so their clearance is lower than the typical value.
- In the heaviest, highest-eGFR stratum, 66.4 % are below the median: lower concentrations, higher clearance.
- In the stratum where the two covariates pull in opposite directions (heavy but low eGFR), the observations are balanced (48.2 % and 51.8 %): the weight and renal effects offset each other, and the base model, which has neither, is right on average there.
That is exactly the pattern a model with clearance increasing in weight and in eGFR would produce, and the direction agrees with the fitted effects of page 41.24, where light or low-eGFR subjects have a clearance ratio below 1 (0.77 at WT 50 kg or eGFR 60) and heavy or high-eGFR subjects above 1 (1.15 to 1.17 at WT 90 kg or eGFR 120). The VPC has found the missing covariates without being told which they were; the stratifiers are the candidate covariates, and the pattern across them is the diagnosis.
Why the pooled check passed
The strata err in opposite directions. Two are too low and one is too high, and the heavy-low-eGFR stratum is neutral, so in the pool the errors cancel: for each observation that is above the median there is, elsewhere, one below it. A pooled check is sensitive to overall bias and to overall spread; it is not sensitive to a bias that changes sign between subgroups. This is the general reason to stratify on every covariate that is plausibly related to the parameters, before and not after the model is declared adequate.
The final model, stratified on other covariates
The companion bundle runs a variance-and-prediction-corrected VPC (--vpc-type pvcvpc) of the final model, stratified by SEX and by WT at its median, against time after dose:
nlmx vpc <run26.ctl> … --vpc-type pvcvpc --stratify SEX,WT --stratify-groups 2 --idv TAD --bins auto \
--samples 200 --seed 27002 --output results/stratified_pvcvpc
| Stratum | Outside (of 24) |
|---|---|
| SEX = 0, WT < 72.2 | 2 |
| SEX = 0, WT ≥ 72.2 | 0 |
| SEX = 1, WT < 72.2 | 0 |
| SEX = 1, WT ≥ 72.2 | 2 |
| Total | 4 of 96 |
Four of 96 is 4.2 %, close to the 4.8 expected. The four exceedances are scattered: in the lighter SEX = 0 stratum the 5th and 50th percentiles at 4 h lie marginally below their intervals (1.052 against 1.060, and 1.685 against 1.700), and in the heavier SEX = 1 stratum the medians at 1 h and 2 h lie above theirs (1.514 against 1.453, and 1.855 against 1.768). No stratum shows a run of exceedances across bins, and SEX is a covariate the model deliberately does not contain, so a clean result across the SEX strata is the expected one: the check supports leaving SEX out.
Two details of the check itself matter. First, the check type: pvcVPC also corrects for the variability (the spread among subjects with different predictions), which is meant to make the intervals comparable across strata whose typical predictions differ. Second, the x variable is time after dose (TAD) instead of time: for a single-dose study they coincide, and the setting matters in multiple-dose studies where times since the last dose line subjects up.
The comparison, honestly stated
The base model's 16 of 96 and the final model's 4 of 96 are not a like-for-like comparison: the strata differ (WT × EGFR against SEX × WT), the check type differs (prediction-corrected against prediction- and variance-corrected), and the x variable differs (TIME against TAD). What the two bundles show is two separate things: that the base model fails in the strata that match the missing effects, and that the final model shows no structure in strata that match the effect it deliberately excludes. A single like-for-like experiment would stratify both models on the same variables; it is a natural next step and is not one of the frozen bundles.
The decision
| Question | Evidence | Decision | Reversible? |
|---|---|---|---|
| Was the base model adequate? | pooled: inside; stratified: 16 of 96 outside, with sign changing across strata | no: covariate effects are missing | yes |
| Does the final model leave structure by SEX or WT? | 4 of 96 outside, scattered | no residual structure seen | yes |
What this case does not show
Stratifying on two covariates at a median each halves the sample twice: with 14 to 16 subjects per stratum, percentiles of the observed data are noisy, and the simulated intervals are wide for the same reason. Stratification can also find false structure by chance when many strata are examined. Both effects are modest here (four strata), but the count would matter with ten.
Review checklist
- Before accepting a model on a pooled VPC, did you stratify on every plausible covariate?
- Do you read the direction of errors by stratum, not just their number?
- Is a clean stratified check on an excluded covariate recorded as support for excluding it?
- Do you compare models only on like-for-like checks?
Navigation
See the previous page, the next page and the complete case-study reference.