estimate_rdd_distribution_effects
rdd.estimate_rdd_distribution_effects(
ds: pl.DataFrame,
outcome: ColumnName,
treatment: ColumnName,
running_variable: RunningVariableConfig,
qs: ArrayLike = MEDIAN,
*,
local_polynomial_config: LocalPolynomialConfig,
outcome_grid: int | ArrayLike = 100,
weights: ColumnName | None = None,
bootstrap_config: BootstrapConfig | BootstrapMultiplierConfig | int = 100,
)Estimate local quantile treatment effects by local distribution regression.
The estimator is the Frandsen, Frölich and Melly (2012) local-linear distribution regression. It targets the quantile treatment effect for compliers at the cutoff and handles both sharp and fuzzy designs; the sharp design is the special case with a first stage of one.
A bandwidth has to be supplied because the estimator does not select one internally. The outcome grid for the distribution regressions is built from weighted quantiles of the local sample and defaults to 100 points.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| ds | polars.DataFrame |
Input data. | required |
| outcome | ColumnName |
Name of the outcome column. | required |
| treatment | ColumnName |
Name of the binary treatment column (1 treated, 0 not). |
required |
| running_variable | RunningVariableConfig |
Running (forcing) variable and the cutoff at which the treatment probability jumps. | required |
| qs | array_like |
Quantiles in (0, 1) at which to estimate the effect. |
0.5 |
| local_polynomial_config | LocalPolynomialConfig |
Bandwidth and kernel for the local-linear distribution regressions. | required |
| outcome_grid | int or array_like |
Outcome values at which the distribution regressions are evaluated. An integer k builds a grid from k weighted quantiles of the local sample; an explicit sequence is used as given. |
100 |
| weights | ColumnName |
Name of a column with sampling weights. | None |
| bootstrap_config | BootstrapConfig, BootstrapMultiplierConfig or int |
Inference settings. A BootstrapConfig or integer requests the case bootstrap and pointwise standard errors. A BootstrapMultiplierConfig requests multiplier draws, pointwise standard errors and a constant-width uniform band. |
100 |
Returns
| Name | Type | Description |
|---|---|---|
RddDistributionResult |
Complier quantile effects and the local average treatment effect, with bootstrap standard errors. |
See Also
qte.rdd.simulate.simulate_rdd_data, qte.rdd.simulate.get_true_local_effects