CausalTarget

class CausalTarget(StrEnum):
    QTE = 'qte'
    QTT = 'qtt'

Causal estimand a unconfounded estimator targets.

Use a member as the target argument of the unconfounded estimators, for example CausalTarget.QTT.

Attributes

Name Type Description
QTE Quantile treatment effect for the whole population.
QTT Quantile treatment effect on the treated.

Examples

Target the effect on the treated instead of the whole population:

>>> from qte.unconfounded import CausalTarget, estimate_ipw_effects
>>> from qte.datasets import load_lalonde
>>> res = estimate_ipw_effects(
...     load_lalonde(),
...     "re78",
...     "treat",
...     propensity_score_formula="age + education",
...     target=CausalTarget.QTT,
... )