Can a useful treatment look worse?
Change who receives Treatment A. Compare the known effect with the crude and adjusted analyses.
Causal structure
The same four baseline characteristics enter the prognosis and assignment models. Dotted paths are switched off.
Stage distribution
Within-treatment percentages. Open Baseline characteristics for Age, Sex, Stage and ECOG together.
Observed survival
Adjusted survival
Cox predictions averaged over every patient in the same complete cohort. Dotted curves show the known model.
Treatment effect estimates
A vs B - line at HR = 1
Read the estimates
Hover, tap a point or open the values. Diamonds are known-model references; circles are sample estimates.
What happened in this run?
Each example applies its named change and runs both modules. The current seed and population settings are retained.
Compare each estimate with its matching target
Gap = estimate minus matching reference in HR units. This is a deviation in one sample, not an estimate of repeated-sampling bias.
Survival probabilities and time alive
Median survival
Can weighting make the groups comparable?
Start with the patient differences. Apply treatment weights, inspect balance and overlap, then read the estimates.
Treatment effect estimates
A vs B - line at HR = 1
Read the estimates
Hover, tap a point or open the values. Diamonds are known-model references; circles are sample estimates.
IPTW survival
Weighted Kaplan-Meier curves. Dotted curves show the known-model survival for the same complete cohort. Curve intervals are not shown.
Interpret the weighted comparison
A common survival target
Balance before and after IPTW
Closer to zero means less measured imbalance. The 0.10 line is a descriptive flag, not a guarantee.
Propensity-score distributions
Both groups use P(Treatment A). Strong separation means little overlap.
Baseline characteristics
Weight distribution
How much information remains?
Effective sample size describes the concentration of weights. It does not create additional patients and is not a complete measure of outcome information.
Stabilised ATE weights. No trimming, truncation or weight cap. Default HR intervals use robust variance; optional bootstrap intervals refit the propensity model.