Skip to content
Submodule
causalis.scenarios.multi_unconfoundedness.refutation.overlap.overlap_plot

overlap_plot

Submodule causalis.scenarios.multi_unconfoundedness.refutation.overlap.overlap_plot with no child pages and 3 documented members.

Functions

Jump directly into the documented functions for this page.

2 items

Data

Jump directly into the documented data for this page.

1 items
function
causalis.scenarios.multi_unconfoundedness.refutation.overlap.overlap_plot.plot_m_overlap

plot_m_overlap

Multi-treatment overlap plot for pairwise conditional propensity scores.

For each comparison baseline (default 0) vs k, this plots P(D=k | X, D in {baseline, k}) = m_k(X) / (m_baseline(X) + m_k(X)) on the observed pair sample D in {baseline, k}, comparing:

  • units with D=k (treated for the pair),

  • units with D=baseline (control for the pair).

Parameters:

  • diag.d: (n, K) one-hot

  • diag.m_hat / diag.m_hat_raw: (n, K) propensity

  • treatment_idx:

    • None -> plot all k != baseline_idx (multi-panel)

    • int -> plot one comparison

    • list[int] -> plot selected comparisons

  • ax: supported only for a single comparison (exactly one k)

Returns matplotlib.figure.Figure.

Canonical target

causalis.scenarios.multi_unconfoundedness.refutation.overlap.overlap_plot.plot_m_overlap

Link to this symbol
function
causalis.scenarios.multi_unconfoundedness.refutation.overlap.overlap_plot.overlap_plot

overlap_plot

Convenience wrapper to match overlap_plot(data, estimate) API style.

Canonical target

causalis.scenarios.multi_unconfoundedness.refutation.overlap.overlap_plot.overlap_plot

Link to this symbol
data
causalis.scenarios.multi_unconfoundedness.refutation.overlap.overlap_plot.__all__

__all__

Value: ['plot_m_overlap', 'overlap_plot']

[‘plot_m_overlap’, ‘overlap_plot’]

Canonical target

causalis.scenarios.multi_unconfoundedness.refutation.overlap.overlap_plot.__all__

Link to this symbol