Estimator

class Estimator(StrEnum):
    CHANGES_IN_CHANGES = 'changes_in_changes'
    QUANTILE_DID = 'quantile_did'
    MEAN_DID = 'mean_did'
    DISTRIBUTIONAL_DID = 'distributional_did'

Estimator that produced a result.

This is an output field: read it from result.estimator to see how an estimate was produced, and compare it against a member. The estimator is selected by calling the corresponding estimate_*_effects function.

Attributes

Name Type Description
CHANGES_IN_CHANGES Changes-in-changes.
QUANTILE_DID Quantile difference-in-differences.
MEAN_DID Mean difference-in-differences.
DISTRIBUTIONAL_DID Distributional difference-in-differences.

Examples

Inspect which estimator produced a result:

>>> from qte.datasets import load_mpdta
>>> from qte.distributional_did import Estimator, TrtGroupConfig, estimate_quantile_did_effects
>>> res = estimate_quantile_did_effects(
...     load_mpdta(),
...     "lemp",
...     TrtGroupConfig("first.treat", 0),
...     "year",
...     "countyreal",
...     bootstrap_config=2,
... )
>>> res.overall.estimator is Estimator.QUANTILE_DID
True