Documentation

41.21 Case 5: five variants of the screen, and the one that fails

One screen, five variants: where the answer holds and where it moves

What you will learn

  • Compare the screen's score statistic with the OFV drop from an actual refit, candidate by candidate.
  • Tell a calibration choice (which changes p-values) from an information-matrix choice (which changes the test).
  • Understand the floor on a permutation p-value, and compute it.
  • Recognise a numerically invalid information matrix, and respond to its exit code.

Prerequisites: 41.19 and 41.20.

The question: is the screening result a property of the data, or of the way the screen was run?

The evidence: the Chapter 23 bundles refined, candidate_only, permutation, exact_uncertainty and observed_failure, all reading the same base fit as before, plus the stored comparison score-refit-comparison.csv.

Score against refit

The Chapter 23 bundle keeps, for each candidate added alone to the base model, the screen's statistic next to the actual OFV drop from the refit:

Candidate Efficient score S Refit ΔOFV S − ΔOFV Class (screen)
V ~ WT 42.464 40.764 +1.70 retained
CL ~ WT 21.433 17.533 +3.90 uncertain
CL ~ EGFR 13.727 12.696 +1.03 uncertain
V ~ SEX 0.0152 0.0126 +0.003 rejected
CL ~ SEX 0.0045 0.0039 +0.001 rejected

Three observations.

  1. The score is a good approximation of the drop. It ranks the five candidates in the same order and lies within 1 to 4 units of the refit; where it matters (the two SEX terms) it is within a few thousandths.
  2. It overshoots in every row. S exceeds ΔOFV for all five. A one-step quantity evaluated at the base solution does not re-optimise the other parameters, so it tends to be slightly optimistic. For decision purposes a screen that is optimistic by up to 22 % (CL ~ WT: 3.9 on 17.5) is a screen, not a final answer.
  3. No class changes from screen to refit alone. Even the refit ΔOFV values (17.5 and 12.7) are well above 6.63 for both CL terms; what made them uncertain was the conditional step, not the univariate one.

The five variants

Bundle What changes Command option
refined extra outputs: per-subject scores and the information matrices --refine 5 --write-subject-scores --write-matrices
candidate_only the test ignores the base parameters' information --information candidate-only --no-uncertainty --no-final-refit
permutation p-values by permutation, adjusted by Westfall–Young --calibration permutation --calibration-replicates 200 --adjust westfall-young
exact_uncertainty uncertainty draws re-score each candidate exactly a settings file with recompute_scores = "exact", 200 draws
observed_failure observed (Hessian-based) information --information-estimator observed

refined reproduces the screen's numbers exactly: the same S and adjusted p for every candidate. Its value is the two extra files, which are what page 41.19 used to reproduce the statistics by hand.

Candidate-only: a cheaper test that is less accurate

Candidate-only drops the adjustment for the base parameters. The statistics shrink:

Candidate Efficient S Candidate-only S Refit ΔOFV
V ~ WT 42.464 12.748 40.764
CL ~ WT 21.433 12.258 17.533
CL ~ EGFR 13.727 10.585 12.696
V ~ SEX 0.015 0.007 0.013
CL ~ SEX 0.004 0.002 0.004

For V ~ WT it reports 12.7 where the refit shows 40.8: about a third of the measured drop. The same numbers explain why candidate-only calls CL ~ WT and CL ~ EGFR retained (conditional p 4.4e-4 and 6.3e-4): the conditional p-values are no longer penalised as in the default run. The class agrees with the refit (page 41.20), but the statistic itself is far from the measured drop, so the agreement is not a validation of the method. This is the practical rule: use candidate-only for speed or to see the unadjusted baseline, never as the basis for the report.

Permutation: a floor on the p-value

With 200 permutation replicates the smallest p-value the procedure can produce is

(0 + 1) / (200 + 1) = 1/201 = 0.004975.

That is exactly the calibrated p reported for V ~ WT, CL ~ WT and CL ~ EGFR. The three strongest candidates, whose adjusted asymptotic p-values are about 10⁻¹⁰ to 10⁻⁴, are all at the floor: none of the 200 random permutations produced a statistic as large as the observed one. The Westfall–Young adjusted values are 0.00498 for V ~ WT and CL ~ WT and 0.00995 = 2/201 for CL ~ EGFR (the step-down adjustment accounts for the stronger candidates). The SEX terms get calibrated p of 0.93–0.94.

So the permutation run confirms the classes (retained, uncertain, uncertain, rejected, rejected) and tells you the data are inconsistent with "no effect" for three candidates, but it cannot rank them: a calibrated p of 0.005 is a statement about 200 replicates, not about evidence. To compare strong candidates, use the statistic or the refit drop; to attest that the asymptotic p-values are not misleading, the permutation floor is enough.

Exact uncertainty: how stable is the pass?

Each run propagates the base parameters' uncertainty: 200 draws, each re-scoring every candidate, and the pass probability is the share of draws in which the candidate passes its test. Default scoring is linearised; exact_uncertainty re-scores each draw exactly.

Candidate Pass probability, linearised Pass probability, exact
V ~ WT 0.98 1.00
CL ~ WT 1.00 1.00
CL ~ EGFR 1.00 1.00
V ~ SEX 0.35 0.09
CL ~ SEX 0.25 0.065

The two columns agree on the retained terms and differ on the SEX terms, where the approximation was more generous than the exact re-scoring (0.25–0.35 against 0.065–0.09). Both are well below any retention threshold, and the classes do not change. The cost of exactness is compute; whether it is worth it depends on how near a candidate sits to a threshold. None does here.

The one that fails: observed information

The last variant swaps the information estimator for the observed Hessian. It does not complete:

selection (hierarchical_conditional): V~WT:power: efficient information is not
positive definite (minimum eigenvalue -1.3492e3 … adjustment removed 264.8% of
the leading term)
exit code 9 (numerical or learner failure)
hint: the nuisance adjustment exceeded the candidate information, so I* is not
positive definite. Try `--information candidate-only` to see the unadjusted
test, raise `--fd-rel` (e.g. 1e-3) if the second differences are noisy, or drop
collinear always-included effects.

The transcript shows the cause from the first step. The nuisance information of the base parameters, estimated by numerical second differences, has a negative eigenvalue even at the base solution (−2.45 × 10³ among six). A matrix that should be positive definite at a minimum is not: the second differences are noisy. The program works around it with a pseudoinverse, and keeps going while it can, but the numbers it produces on the way are already unreliable:

Quantity Observed-information run Default (and refit)
Step-1 S for V ~ WT 77.47 42.46 (refit 40.76)
Step-2 S for CL ~ WT 27.85 6.02
Step 4 selects V ~ SEX (S 9.21, p 0.0024) nothing (p 0.13)

At step 4 it selects a candidate that every other method rejects, with a "score correction" of −50.1, and the failure comes only in the backward check that follows the forward stage. The exit code is the guard. The file variant-summary.json of the bundle records it as an expected sensitivity boundary: a numerical failure is a result. A reader who had the table from step 4 but not the transcript would have a covariate model that contains sex.

The response in the hint is the right order: (1) read the transcript, (2) do not use any table from the failed run, (3) obtain the unadjusted view with --information candidate-only if needed (above), (4) change the finite-difference step only with a reason, and rerun to the same seed.

The decision

Question Evidence Decision Reversible?
Is the screen's result robust to how it is calibrated? permutation and exact-uncertainty classes unchanged yes yes
Is the screen's statistic close to the refit drop? S within 1–4 units, optimistic yes, as a screen yes
May the observed-information variant be used? exit 9, nonsense on the way no; the default information stays yes

What this case does not show

These are variants on one data set and one base model. They show that the classes are stable under the supported calibrations here and that one unsupported setting fails safely; they do not give error rates. A different data set with a candidate close to a threshold could behave differently.

Review checklist

  • Do you compare the screen's S with the refit ΔOFV for every uncertain candidate?
  • Do you know the smallest p-value your permutation count can produce?
  • Is candidate-only used as a diagnostic, not as a reported result?
  • Does a non-zero exit code remove the run's tables from your analysis, whatever they say?

See the previous page, the next page and the complete case-study reference.