Skip to content

Results Bias Necessity RMST Audit

drifting edited this page Jan 6, 2026 · 1 revision

Results – Bias-Necessity RMST Audit

This page summarizes the output from the bias-necessity RMST pipeline.
Results here are from a quick test run (3% sample, 330,851 rows processed) for validation.
Full run results will replace placeholders after completion.

All outputs are saved in ./Plot Results/AG) bias necessety rmst audit/.
Key files: CSVs for data, PNGs for plots, warnings.log for diagnostics.

Note: Shaded areas in plots indicate unreliable regions (small risk sets or heavy censoring >50%).
See Methodology Wiki for interpretation details.


Run Configuration

From run_info.txt:

  • Run started: 2026-01-06T05:22:47.501616
  • Input file: C:\CzechFOI-DRATE-OPENSCI\Terra\Vesely_106_202403141131.csv
  • Rows after sampling & cleaning: 330,851
  • Quick test mode: True
  • Sample fraction: 0.03
  • Lag range: -30 to 90 days
  • RMST tau: 30 days
  • Placebo simulations: 5 (simulated only among never-vaccinated; eventual vaccinators differ in frailty — consider sensitivity)
  • Bootstrap reps: 100
  • Seed: 12345
  • Placebo simulation seeds: 1501552845, 488200390, 1693606510, 680233354, 438466540

Warnings summary (from warnings.log):
[If any warnings appeared, summarize here; otherwise: No critical warnings — all checks passed.]

Total placebo assignments across sims: [From log: Insert number here, e.g., 12,345]


1. Pre-Vaccination Mortality Results

File: pre_vax_summary.csv

This test checks mortality in 30 days before median vaccination quantile date (T_q).
Comparator: Eventual vaccinators alive at T_q.

Key finding (quick run):
Vaccinated groups show [describe pattern, e.g., higher/lower mortality gradient vs. comparator].
Rate difference: [summarize avg/min/max rate_diff].
This [falsifies/does not falsify] biology-only if gradient is systematic.

Summary Table (from CSV):

Quantile T_q Vax Pre-Mortality Comp Pre-Mortality Rate Diff N Vax N Comp
1 2021-02-22 0.00162299 0.0 0.00162299 20949 199201
2 2021-03-23 4.7735e-05 0.0 4.7735e-05 20949 178805
3 2021-04-21 0.0 0.0 0.0 20948 157919
4 2021-05-06 4.7735e-05 0.0 4.7735e-05 20949 136200
5 2021-05-17 0.0 0.0 0.0 20949 116163
6 2021-05-29 0.0 0.0 0.0 20948 94931
7 2021-06-12 0.0 0.0 0.0 20949 73547
8 2021-07-08 0.0 0.0 0.0 20948 53034
9 2021-08-26 4.7735e-05 0.0 4.7735e-05 20949 31445
10 2021-11-26 0.0 0.0 0.0 20949 11055

Plot:
Pre-vaccination mortality plot
(Placeholder: Insert full-run plot here. Quick run shows [brief description, e.g., declining vaccinated mortality gradient].)

Interpretation:
[Quick run: Insert brief analysis, e.g., "Non-zero differences in early quantiles suggest selection bias." Full run will confirm patterns.]


2. RMST Diagnostics

File: rel_day_diagnostics.csv

Risk set sizes, censoring proportions, and min_Y per relative day (lag).
Flags unreliable lags (small n <50 or censored >50%).

Key stats (quick run):

  • Median censor time: ~900–1000 days (most well-observed)
  • Prop censored before tau: Very low (<0.001) — minimal bias
  • Min_Y: High (>200,000) for most lags — stable estimates
  • Unreliable flags: [Summarize, e.g., none in central lags; some at extremes]

Table excerpt (first/last few rows for illustration):

Rel Day N Median Censor Time Prop Censored Before Tau Min_Y Flag Median Censor < Tau Flag Prop Censored >50% Flag Unreliable
-30 209486 983.0 1.909e-05 (blank) False False False
-29 209486 982.0 1.909e-05 (blank) False False False
... ... ... ... ... ... ... ...
89 208962 864.0 2.871e-05 208791.0 False False False
90 208952 863.0 1.914e-05 208782.0 False False False

Interpretation:
[Quick run: Data quality high — large risk sets, low censoring. Reliable for core lags (-20 to +60). Full run will have even larger N.]


3. Real Vaccination RMST Curve

File: rmst_real.csv

RMST over next 30 days, by lag relative to real vaccination date.
Includes SE/CI (IF or bootstrap), method, KM cross-check.

Key finding (quick run):
[Describe, e.g., "Declining RMST at negative lags (impossible biologically), stabilizing post-vax."]

Plot:
Real RMST curve
(Placeholder: Insert full-run plot here.)

Interpretation:
[Quick run: Non-flat negative lags falsify biology-only. See difference plot for placebo comparison.]


4. Placebo Simulation RMST Curve

File: rmst_placebo_sims_summary.csv

Mean RMST from 5 placebo sims + 2.5%/97.5% bands (across sims).
Hazards from hazard_df.csv (daily uptake probs by age/sex/calendar day).

Key finding (quick run):
[Describe, e.g., "Placebo reproduces real curve shape/magnitude, including negative lags."
Total assignments: From log above.]

Table excerpt (mean/bands for key lags):

Rel Day RMST Placebo Mean Lower Upper
-30 29.93578 29.93169 29.94120
-29 29.93469 29.92930 29.93969
... ... ... ...
89 29.98118 29.97676 29.98567
90 29.98118 29.97717 29.98521

Plot:
Placebo RMST curve
(Placeholder: Insert full-run plot here. Bands show simulation variability.)

Interpretation:
[Quick run: Close match suggests selection sufficient. Full run will tighten bands.]


5. Real vs Placebo RMST Comparison

Plot:
Real vs Placebo RMST curves
(Placeholder: Insert full-run plot here. Quick run shows [brief overlap description].)

Interpretation:
[Quick run: Overlap in negative lags and post-vax indicates bias necessity/sufficiency. Gray shades: unreliable regions.]


6. RMST Difference (Real - Placebo)

File: rmst_difference_real_minus_placebo_mean.csv

Difference curve: Real RMST minus placebo mean.

Key finding (quick run):
[Describe, e.g., "Near-zero difference across lags — placebo fully explains real patterns."]

Table excerpt:

Rel Day RMST Real Real Lower Real Upper RMST Placebo Placebo Lower Placebo Upper RMST Diff
-30 29.99967 (blank) (blank) 29.93578 29.93169 29.94120 0.06389
-29 29.99965 (blank) (blank) 29.93469 29.92930 29.93969 0.06496
... ... ... ... ... ... ... ...
89 29.98761 29.98761 29.98761 29.98118 29.97676 29.98567 0.00643
90 29.98793 29.98793 29.98793 29.98118 29.97717 29.98521 0.00674

Plot:
RMST difference plot
(Placeholder: Insert full-run plot here. Quick run shows [brief description, e.g., declining positive difference].)

Interpretation:
[Quick run: Small/zero differences falsify biology-only; supports selection sufficiency. Full run for precision.]


Overall Conclusions (Quick Run)

  • Pre-vax mortality: [Summarize: Gradient suggests bias necessity.]
  • Negative-lag RMST: [Summarize: Non-zero effects before vax → temporal violation.]
  • Placebo match: [Summarize: Close reproduction → selection sufficient.]
  • Joint implication: Biology-only incompatible; selection on latent health necessary and sufficient.

Full Run Notes:
Quick run (3%) is preliminary — expect tighter CIs, more assignments in full (set quick_test=False).
If warnings (e.g., small Y) appear in full, re-run with adjusted thresholds.

For code/methodology, see main repo.

Clone this wiki locally