Real Observed Panels

Notebook: tutorials/guides/01_real_observed_panels.ipynb

This tutorial applies all seven causaltensor estimators to three classic panel datasets included in the package:

  • Smoking – California Proposition 99 (Abadie & Gardeazabal, 2003)

  • Basque – Basque terrorism economic impact (Abadie & Gardeazabal, 2003)

  • Germany – German reunification (Abadie, Diamond & Hainmueller, 2015)

Topics covered

  1. Loading data with PanelDataset.

  2. Fitting estimators – instantiate each solver with (O, Z) and call fit().

  3. Counterfactual plots – interactive Plotly charts comparing actual vs. estimated counterfactual outcome trajectories for the treated unit.

Estimators demonstrated

  • DIDPanelSolver (DID)

  • SDIDPanelSolver (SDID)

  • DCPanelSolver (DC-PR)

  • MCNNMPanelSolver (MC-NNM)

  • CovariancePCAPanelSolver (CovPCA)

  • OLSSCPanelSolver (SC)

  • RSCPanelSolver (RSC)