Stopping rules on LTMLE#
This study validates the interval of LTMLE under stopping="scaled_var" and
stopping="sample_size" on two walks: the per-node Newton fluctuation of an end-of-study
outcome, and the one-step hazard walk of a survival outcome. The
stopping rules section
states the rules, which a longitudinal fit applies per node or per hazard walk. Under either
rule the walk can stop before its score equation is solved, and the reported interval adds the
remaining score to its half-width, \(\psi_n \pm (z\,\widehat{se} + |r_n|)\). That interval covers
whenever the plain Wald pivot does, so it is conservative by construction.
No package widens a Wald interval by its remaining score, so no canonical implementation is compared. The study rests on exact truths and on repeated-sampling properties.
What was fitted#
law |
construction |
fits |
|---|---|---|
L3 |
the |
the per-node Newton walk under each rule and under the relative rule, in sample, at n = 2,000; always against never |
L4 |
the |
the one-step hazard walk under each rule and under the relative rule; the risk difference and the arm-1 risk at visit 5. The necessity cells use the |
The laws and the threshold scale are in tests/studies/_option_stopping_laws.py, and
tests/unit/test_option_stopping_ltmle_design.py recomputes every declared number.
tests/unit/test_stopping_rule_longitudinal.py and tests/unit/test_hazard_targeting_rules.py
check each node’s threshold and the walk’s stop by hand.
The committed rows record the identity interval. The package now builds the interval of an
unclustered risk of a binary outcome on the logit scale
(small-sample scale), and the residual enters there as
\(\lvert r_n\rvert / (\psi_n(1 - \psi_n))\). The differences keep their interval. On the same
committed estimates, standard errors and residuals, the L4 arm-1 risk row covers 0.9582 against
the recorded 0.9564. The residual_necessity pair reads 0.9768 widened, with an exact 99% lower
limit of 0.9716, and 0.8701 plain, with an upper limit of 0.8805, so neither verdict changes
(tests/canonical/interval-audit-screen.csv).
Accuracy against known truth#
law |
estimand |
what was tested |
implementation |
bias (99% interval) |
coverage |
SE ratio |
result |
|---|---|---|---|---|---|---|---|
law L3 (the canonical-ltmle censored two-node law with its learners), always against never, n = 2,000; the per-node Newton walk under stopping=’scaled_var’, the widened interval |
|
difference in mean outcome between the plans “treat at both times” against “treat at neither time” |
|
-0.0023 to 0.000668 |
0.9525 |
1.0179 |
pass |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000 and the arm-1 risk; stopping=’scaled_var’, the widened interval |
|
difference in cumulative risk between the plans “assign arm 1 at baseline and hold it” against “assign arm 0 at baseline and hold it” at horizon t = 5 |
|
-0.0016 to 0.000804 |
0.9532 |
0.9887 |
pass |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000 and the arm-1 risk; stopping=’scaled_var’, the widened interval |
|
cumulative risk under the plan assign arm 1 at baseline and hold it at horizon t = 5 |
|
-0.000814 to 0.000878 |
0.9564 |
1.0121 |
pass |
Theory properties#
property |
cell |
role |
what was tested |
what must hold |
measured |
result |
|---|---|---|---|---|---|---|
|
|
control |
law L3 (the canonical-ltmle censored two-node law with its learners), always against never, n = 2,000: stopping=’sample_size’ on the Newton walk: a declared scale of independent noise is added to each estimate |
the SE-ratio interval must fall below the calibration band |
coverage 0.8115 to 0.8354, SE ratio 0.6761 to 0.7072 |
pass |
|
|
control |
law L3 (the canonical-ltmle censored two-node law with its learners), always against never, n = 2,000: stopping=’sample_size’ on the Newton walk: the reported standard errors are multiplied by a declared factor below one |
the SE-ratio interval must fall below the calibration band |
coverage 0.8190 to 0.8426, SE ratio 0.6727 to 0.7041 |
pass |
|
|
positive |
law L3 (the canonical-ltmle censored two-node law with its learners), always against never, n = 2,000: stopping=’sample_size’ on the Newton walk: the interval adds the remaining score to its half-width |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9345 to 0.9493, SE ratio 0.9617 to 1.0066 |
pass |
|
|
control |
law L3 (the canonical-ltmle censored two-node law with its learners), always against never, n = 2,000: stopping=’scaled_var’ on the Newton walk: a declared scale of independent noise is added to each estimate |
the SE-ratio interval must fall below the calibration band |
coverage 0.8162 to 0.8399, SE ratio 0.6852 to 0.7159 |
pass |
|
|
control |
law L3 (the canonical-ltmle censored two-node law with its learners), always against never, n = 2,000: stopping=’scaled_var’ on the Newton walk: the reported standard errors are multiplied by a declared factor below one |
the SE-ratio interval must fall below the calibration band |
coverage 0.8190 to 0.8426, SE ratio 0.6732 to 0.7043 |
pass |
|
|
positive |
law L3 (the canonical-ltmle censored two-node law with its learners), always against never, n = 2,000: stopping=’scaled_var’ on the Newton walk: the interval adds the remaining score to its half-width |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9345 to 0.9493, SE ratio 0.9619 to 1.0058 |
pass |
|
|
control |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000: stopping=’sample_size’ on the one-step walk: a declared scale of independent noise is added to each estimate |
the SE-ratio interval must fall below the calibration band |
coverage 0.8207 to 0.8441, SE ratio 0.6927 to 0.7231 |
pass |
|
|
control |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000: stopping=’sample_size’ on the one-step walk: the reported standard errors are multiplied by a declared factor below one |
the SE-ratio interval must fall below the calibration band |
coverage 0.8211 to 0.8446, SE ratio 0.6936 to 0.7238 |
pass |
|
|
positive |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000: stopping=’sample_size’ on the one-step walk: the interval adds the remaining score to its half-width |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9483 to 0.9614, SE ratio 0.9904 to 1.0345 |
pass |
|
|
control |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000: stopping=’scaled_var’ on the one-step walk: a declared scale of independent noise is added to each estimate |
the SE-ratio interval must fall below the calibration band |
coverage 0.8223 to 0.8457, SE ratio 0.6957 to 0.7273 |
pass |
|
|
control |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000: stopping=’scaled_var’ on the one-step walk: the reported standard errors are multiplied by a declared factor below one |
the SE-ratio interval must fall below the calibration band |
coverage 0.8231 to 0.8464, SE ratio 0.6951 to 0.7270 |
pass |
|
|
positive |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000: stopping=’scaled_var’ on the one-step walk: the interval adds the remaining score to its half-width |
SE ratio and coverage intervals both inside their calibration bands |
coverage 0.9517 to 0.9644, SE ratio 0.9935 to 1.0384 |
pass |
|
|
diagnostic |
law L4 with intercept-only hazard learners and correct mechanisms, n = 2,000, the risk difference at visit 5: stopping=’scaled_var’, every threshold times 8: the plain interval |
none. The row is a diagnostic and states no verdict |
coverage 0.7472 to 0.7739, SE ratio 1.0720, mean absolute residual 1.2864 SE |
reported |
|
|
diagnostic |
law L4 with intercept-only hazard learners and correct mechanisms, n = 2,000, the risk difference at visit 5: stopping=’scaled_var’, every threshold times 8: the widened interval |
none. The row is a diagnostic and states no verdict |
coverage 0.9747 to 0.9837, SE ratio 1.0720, mean absolute residual 1.2864 SE |
reported |
|
|
diagnostic |
law L4 with intercept-only hazard learners and correct mechanisms, n = 2,000, the arm-1 risk at visit 5: stopping=’scaled_var’ at the declared thresholds: the plain interval |
none. The row is a diagnostic and states no verdict |
coverage 0.9532 to 0.9656, SE ratio 1.0337, mean absolute residual 0.0736 SE |
reported |
|
|
diagnostic |
law L4 with intercept-only hazard learners and correct mechanisms, n = 2,000, the arm-1 risk at visit 5: stopping=’scaled_var’ at the declared thresholds: the widened interval |
none. The row is a diagnostic and states no verdict |
coverage 0.9581 to 0.9698, SE ratio 1.0337, mean absolute residual 0.0736 SE |
reported |
|
|
diagnostic |
law L3 (the canonical-ltmle censored two-node law with its learners), always against never, n = 2,000: stopping=’sample_size’ on the Newton walk: the plain Wald interval of the same fits, without the residual |
none. The row is a diagnostic and states no verdict |
coverage 0.9345 to 0.9493, SE ratio 0.9830, mean absolute residual 2.490e-11 SE |
reported |
|
|
diagnostic |
law L3 (the canonical-ltmle censored two-node law with its learners), always against never, n = 2,000: stopping=’scaled_var’ on the Newton walk: the plain Wald interval of the same fits, without the residual |
none. The row is a diagnostic and states no verdict |
coverage 0.9345 to 0.9493, SE ratio 0.9830, mean absolute residual 2.490e-11 SE |
reported |
|
|
diagnostic |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000: stopping=’sample_size’ on the one-step walk: the plain Wald interval of the same fits, without the residual |
none. The row is a diagnostic and states no verdict |
coverage 0.9472 to 0.9604, SE ratio 1.0121, mean absolute residual 0.0072 SE |
reported |
|
|
diagnostic |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000: stopping=’scaled_var’ on the one-step walk: the plain Wald interval of the same fits, without the residual |
none. The row is a diagnostic and states no verdict |
coverage 0.9477 to 0.9608, SE ratio 1.0145, mean absolute residual 0.0338 SE |
reported |
|
|
diagnostic |
law L3 (the canonical-ltmle censored two-node law with its learners), always against never, n = 2,000: stopping=’relative’ on the Newton walk: the default rule, whose residual is below tol |
none. The row is a diagnostic and states no verdict |
coverage 0.9345 to 0.9493, SE ratio 0.9830, mean absolute residual 6.479e-12 SE |
reported |
|
|
diagnostic |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000: stopping=’relative’ on the one-step walk: the default rule, whose residual is below tol |
none. The row is a diagnostic and states no verdict |
coverage 0.9467 to 0.9600, SE ratio 1.0116, mean absolute residual 5.147e-09 SE |
reported |
|
|
diagnostic |
law L4, the arm-1 risk at visit 5, n = 2,000: stopping=’sample_size’ on the one-step hazard walk: the widened interval |
none. The row is a diagnostic and states no verdict |
coverage 0.9510 to 0.9637, SE ratio 1.0203 |
reported |
|
|
diagnostic |
law L4, the arm-1 risk at visit 5, n = 2,000: stopping=’scaled_var’ on the one-step hazard walk: the widened interval |
none. The row is a diagnostic and states no verdict |
coverage 0.9547 to 0.9670, SE ratio 1.0260 |
reported |
|
|
control |
law L4 with intercept-only hazard learners and correct mechanisms, n = 2,000, the arm-1 risk at visit 5: stopping=’scaled_var’, every threshold times 8: the plain interval, without the residual |
the upper limit of the coverage’s exact 99% interval below 0.92 |
coverage 0.8628 to 0.8837, SE ratio 1.0563, mean absolute residual 0.8513 SE |
pass |
|
|
positive |
law L4 with intercept-only hazard learners and correct mechanisms, n = 2,000, the arm-1 risk at visit 5: stopping=’scaled_var’, every threshold times 8: the widened interval of the same fits |
the lower limit of the coverage’s exact 99% interval at least 0.90 |
coverage 0.9739 to 0.9831, SE ratio 1.0563, mean absolute residual 0.8513 SE |
pass |
|
|
diagnostic |
law L3 (the canonical-ltmle censored two-node law with its learners), always against never, n = 2,000: stopping=’sample_size’ on the Newton walk: the share of draws whose absolute residual is at least 0.01 standard errors |
none. The row is a diagnostic and states no verdict |
share 0 to 0.000779 |
reported |
|
|
diagnostic |
law L3 (the canonical-ltmle censored two-node law with its learners), always against never, n = 2,000: stopping=’scaled_var’ on the Newton walk: the share of draws whose absolute residual is at least 0.01 standard errors |
none. The row is a diagnostic and states no verdict |
share 0 to 0.000779 |
reported |
|
|
diagnostic |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000: stopping=’sample_size’ on the one-step walk: the share of draws whose absolute residual is at least 0.01 standard errors |
none. The row is a diagnostic and states no verdict |
share 0.2347 to 0.2618 |
reported |
|
|
positive |
law L4 (the point-survival-curve five-visit survival law, one-step hazard walk, with its learners), the risk difference at visit 5, n = 2,000: stopping=’scaled_var’ on the one-step walk: the share of draws whose absolute residual is at least 0.01 standard errors |
the lower limit of the share’s exact 99% interval at least 0.5 |
share 0.8041 to 0.8284 |
pass |
On L3 the per-node Newton walk lands at the default fit: the largest residual is
\(1.3 \times 10^{-7}\) SE, no draw reaches 0.01 SE, and coverage (0.942) and SE ratio (0.983)
equal the relative fit’s on the same draws. Those two cells measure the default estimator under
a rule and license only the Newton walk, not a one-step end-of-study walk. On L4 the rule binds:
scaled_var leaves a residual of at least 0.01 SE on 82% of draws and sample_size on 25%,
and the widened interval covers 0.958 and 0.955.
The necessity pair reads the arm-1 risk at visit 5 on L4 with intercept-only hazards and every threshold times 8. The plain interval covers 0.874 and the widened interval 0.979 on the same fits.
Reported readings#
These rows carry no verdict. The plain interval of the L4 calibration fits covers 0.954 and
0.955, within 0.004 of the widened one. On the necessity fits the risk difference covers 0.761
plain and 0.980 widened, and at the declared thresholds the arm-1 risk covers 0.960 and 0.964.
The arm-1 risk of the calibration fits covers 0.958 (sample_size) and 0.961 (scaled_var).
Sizing#
Every size was fixed before the run from the pilot in tests/studies/option_stopping_pilot.py,
on a stream no declared cell reads. Every property cell runs 6,800 replications, the arm-pooled
predictive rule at the pilot, and the primary phase 2,800. The design test recomputes each count.
Red-cell route#
The study is registered under reporting, and no cell is red. The declared reading is in
tests/canonical/option_stopping_ltmle/regenerate.py, and
tests/unit/test_option_stopping_ltmle_design.py applies it to the committed tables through
gating_findings.
Measured values#
Names beginning margin: are thresholds declared before the run. Everything else is measured
from the committed results and checked at the precision printed.
quantity |
value |
source |
|---|---|---|
|
2800 |
primary replications |
|
2000 |
observations per replication |
|
3 |
truth tests passing |
|
3 |
truth tests reported |
|
15 |
gated property cells passing |
|
15 |
gated property cells reported |
|
0.0269 |
largest primary standardized bias |
|
0.9525 |
lowest primary coverage |
|
0.9422 |
widened coverage on L3, scaled_var |
|
0.9830 |
its SE ratio |
|
0.9422 |
the relative fit on the same draws |
|
0.9584 |
widened coverage on L4, scaled_var |
|
0.9551 |
widened coverage on L4, sample_size |
|
0.8165 |
share of L4 draws with a residual of at least 0.01 SE, scaled_var |
|
0.2481 |
the same share, sample_size |
|
0.8735 |
plain coverage of the necessity fits |
|
0.9788 |
widened coverage of the necessity fits |
|
0.7607 |
the risk difference of the necessity fits, plain |
|
0.9796 |
the same, widened |
|
0.9900 |
Monte Carlo confidence level |
|
0.0500 |
test size |
|
0.9500 |
nominal interval coverage |
|
10000 |
bootstrap replications |
|
0.2500 |
standardized-bias margin |
|
0.9000 |
primary coverage floor |
|
0.9900 |
descriptive overcoverage threshold |
|
0.8000 |
primary SE-ratio lower screen |
|
1.2000 |
primary SE-ratio upper screen |
|
0.9300 |
calibration SE-ratio lower bound |
|
1.0700 |
calibration SE-ratio upper bound |
|
0.9200 |
calibration coverage lower bound |
|
0.9800 |
calibration coverage upper bound |
|
0.1000 |
type-I upper bound. No cell of this study reads it |
|
0.1500 |
paired similarity margin in pooled SDs. No cell of this study reads it |
|
1.1000 |
RMSE-ratio noninferiority bound. No cell of this study reads it |
|
-0.0250 |
coverage-difference noninferiority bound. No cell of this study reads it |
|
0.0500 |
calibration-excess noninferiority bound. No cell of this study reads it |
|
0.8000 |
minimum power lower bound. No cell of this study reads it |
|
-0.5000 |
expected root-n slope. No cell of this study reads it |
|
-0.6250 |
root-n slope lower bound. No cell of this study reads it |
|
-0.3750 |
root-n slope upper bound. No cell of this study reads it |
|
-0.2500 |
slower rate the interval must exclude. No cell of this study reads it |
|
0.7000 |
negative-control SE multiplier |
|
0.0100 |
declared share of replications a cell may lose to a recordable fitting failure |
|
28 |
the same bound, in primary replications |
Limitations#
The widened interval is conservative. Its coverage rests on the plain pivot alone, so where the rule binds hard it over-covers (0.979 in the necessity cell).
The L3 cells measure the default estimator. The per-node Newton walk lands at the relative fit, so the end-of-study rows license that walk only; a one-step end-of-study walk under a rule matches no row.
Two laws, in sample. One censored two-node law and one five-visit survival law at n = 2,000. Competing risks, repeated outcomes, cross-fitting, SDR and dynamic or stochastic plans under a rule read experimental.
No band. The simultaneous band under a rule is not measured, and the bootstrap is refused.
No comparator. No package widens a Wald interval by its remaining score.
Reproduction#
tests/canonical/option_stopping_ltmle/regenerate.py regenerates the study and states the run
form. It runs no reference process, because the study has no comparator. The manifest records
the seeds, the margins, the estimator configuration and the source and result hashes, and the
run log records the commit, the clean tree and the wall time.