Estimator
class Estimator(StrEnum):
UNADJUSTED = 'unadjusted'
IPW = 'ipw'
OR = 'or'
AIPW = 'aipw'Cross-sectional 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.
Attributes
| Name | Type | Description |
|---|---|---|
| UNADJUSTED | Difference in group quantiles without covariate adjustment. | |
| IPW | Inverse probability weighting. | |
| OR | Outcome regression. | |
| AIPW | Augmented inverse probability weighting. |
Examples
Inspect which estimator produced a result:
>>> from qte.cross_sectional import Estimator, estimate_unadjusted_effects
>>> from qte.datasets import load_lalonde
>>> res = estimate_unadjusted_effects(load_lalonde(), "re78", "treat")
>>> res.estimator is Estimator.UNADJUSTED
True