Skip to content
Submodule
causalis.scenarios.iv.model

model

Submodule causalis.scenarios.iv.model with no child pages and 11 documented members.

Classes

Jump directly into the documented classes for this page.

1 items

Data

Jump directly into the documented data for this page.

1 items
class
causalis.scenarios.iv.model.IIVM

IIVM

Bases: sklearn.base.BaseEstimator

DoubleML-style IIVM estimator for LATE with binary treatment and IV.

The model consumes :class:~causalis.data_contracts.IVCausalData, which stores exactly one binary instrument. It cross-fits nuisance functions:

g0(z,X)=E[YZ=z,X],r0(z,X)=E[DZ=z,X],m0(X)=P(Z=1X).g_0(z, X) = \mathbb{E}[Y \mid Z=z, X], \quad r_0(z, X) = \mathbb{E}[D \mid Z=z, X], \quad m_0(X) = \mathbb{P}(Z=1 \mid X).

estimate(score="LATE") then solves the linear orthogonal score

ψ(W;θ,η)=ϕY(W;η)θϕD(W;η),\psi(W; \theta, \eta) = \phi_Y(W; \eta) - \theta \phi_D(W; \eta),

returning

θ^=En[ϕY]/En[ϕD].\hat\theta = \mathbb{E}_n[\phi_Y] / \mathbb{E}_n[\phi_D].

where the orthogonal signals are:

\phi_Y(W; \eta) &= g(1, X) - g(0, X) + \frac{Z(Y - g(1, X))}{m(X)} - \frac{(1-Z)(Y - g(0, X))}{1 - m(X)} \\ \phi_D(W; \eta) &= r(1, X) - r(0, X) + \frac{Z(D - r(1, X))}{m(X)} - \frac{(1-Z)(D - r(0, X))}{1 - m(X)}

Notes

The Local Average Treatment Effect (LATE) is the effect of the treatment among “compliers” — those whose treatment status is changed by the instrument.

Examples

Canonical target

causalis.scenarios.iv.model.IIVM

Sections

NotesExamples
Link to this symbol
method
causalis.scenarios.iv.model.IIVM.fit

fit

Fit cross-fitted nuisance functions for IIVM.

Canonical target

causalis.scenarios.iv.model.IIVM.fit

Link to this symbol
method
causalis.scenarios.iv.model.IIVM.estimate

estimate

Estimate LATE from cross-fitted IIVM nuisance predictions.

Canonical target

causalis.scenarios.iv.model.IIVM.estimate

Link to this symbol
property
causalis.scenarios.iv.model.IIVM.diagnostics_

diagnostics_

Return fit-time diagnostic arrays.

Canonical target

causalis.scenarios.iv.model.IIVM.diagnostics_

Link to this symbol
property
causalis.scenarios.iv.model.IIVM.coef

coef

Return the estimated coefficient.

Canonical target

causalis.scenarios.iv.model.IIVM.coef

Link to this symbol
property
causalis.scenarios.iv.model.IIVM.se

se

Return the standard error.

Canonical target

causalis.scenarios.iv.model.IIVM.se

Link to this symbol
property
causalis.scenarios.iv.model.IIVM.pvalues

pvalues

Return p-values.

Canonical target

causalis.scenarios.iv.model.IIVM.pvalues

Link to this symbol
property
causalis.scenarios.iv.model.IIVM.summary

summary

Return the latest estimate summary table.

Canonical target

causalis.scenarios.iv.model.IIVM.summary

Link to this symbol
method
causalis.scenarios.iv.model.IIVM.confint

confint

Return the latest confidence interval as a DataFrame.

Canonical target

causalis.scenarios.iv.model.IIVM.confint

Link to this symbol
method
causalis.scenarios.iv.model.IIVM.__repr__

__repr__

Concise representation of IIVM to avoid verbose learner output.

Canonical target

causalis.scenarios.iv.model.IIVM.__repr__

Link to this symbol
data
causalis.scenarios.iv.model.__all__

__all__

Value: ['IIVM', 'IVCausalEstimate']

[‘IIVM’, ‘IVCausalEstimate’]

Canonical target

causalis.scenarios.iv.model.__all__

Link to this symbol