Hidden Variable Sensitivity Analyzer

This tool explores how a hypothetical unobserved variable—such as one that might influence both smoking and cancer—could distort a predictive model’s conclusions. Grounded in the work of Cochran, Rosenbaum, and Rubin, it applies that logic to approval ratings for JFK in 1963. It also includes color-coded warning badges to highlight potential vulnerabilities.

How to use this tool:

  1. Adjust the sliders to define the characteristics of a potential missing variable.
  2. Click "Run Analysis" to simulate how it might influence model predictions.
  3. Review changes in correlations, coefficients, margins, and predicted outcomes.
  4. Click "Reset" to restore the default scenario.
-0.8 0.8 0
(2–5 categories allowed)
-0.8 0.8 0