r3d_bwselect.RdComputes bandwidth(s) for local polynomial estimation in a regression discontinuity
setting with distribution-valued outcomes. Implements a three-step pilot
procedure to find either MSE-optimal (per-quantile) bandwidths or a single IMSE-optimal
bandwidth, depending on method. For details, see the Appendix of Van Dijcke (2025)
.
Numeric vector of the running variable.
A list of numeric vectors; each entry is the sample of outcomes from one unit's distribution.
(Optional) Numeric or logical vector of treatment statuses for fuzzy design.
Numeric vector of quantiles at which local polynomial fits are performed.
Either "simple" (per-quantile MSE-optimal) or
"frechet" (single IMSE-optimal bandwidth).
Integer specifying the order of local polynomial in the pilot stage (often 1).
Integer specifying the final local polynomial order (often 2).
Kernel function for local weighting. Defaults to triangular kernel.
Numeric scalar threshold. Data are recentered so X - cutoff has cutoff at 0.
Logical indicating fuzzy design. Default is FALSE.
Logical indicating whether to apply the coverage correction rule of thumb of Calonico et al. (2018) . Default is FALSE.
Additional arguments for future expansions.
A list with elements:
methodMethod used: "simple" or "frechet".
q_gridInput q_grid.
h_star_numBandwidth(s) for numerator (outcome).
h_star_denBandwidth for denominator (treatment, if fuzzy).
pilot_h_numPilot bandwidth(s) for numerator.
pilot_h_denPilot bandwidth for denominator (if fuzzy).
s, pPolynomial orders.
B_plus, B_minusBias estimates for numerator.
V_plus, V_minusVariance estimates for numerator.
f_X_hatEstimated density of \(X\) at cutoff.
Implements a three-step procedure:
Estimates \(f_X(0)\) using Silverman’s rule and computes pilot bandwidths via global polynomials.
Runs pilot local polynomial regressions to estimate bias and variance.
Computes MSE-optimal (per-quantile) or IMSE-optimal (single) bandwidths.
In fuzzy RDD, separate bandwidths are computed for the numerator (outcome) and denominator (treatment).
Calonico S, Cattaneo MD, Farrell MH (2018).
“On the effect of bias estimation on coverage accuracy in nonparametric inference.”
Journal of the American Statistical Association, 113(522), 767–779.
Van Dijcke D (2025).
“Regression Discontinuity Design with Distribution-Valued Outcomes.”
Working paper.