r3d_bwselect.Rd
Computes 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 vandijcke2025;textualR3D.
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 calonico2018effect;textualR3D. Default is FALSE.
Additional arguments for future expansions.
A list with elements:
method
Method used: "simple"
or "frechet"
.
q_grid
Input q_grid
.
h_star_num
Bandwidth(s) for numerator (outcome).
h_star_den
Bandwidth for denominator (treatment, if fuzzy).
pilot_h_num
Pilot bandwidth(s) for numerator.
pilot_h_den
Pilot bandwidth for denominator (if fuzzy).
s
, p
Polynomial orders.
B_plus
, B_minus
Bias estimates for numerator.
V_plus
, V_minus
Variance estimates for numerator.
f_X_hat
Estimated 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).