Expand description
Local polynomial regression discontinuity (RD) estimation: a port of the
rdrobust package 2.1.1 (Calonico, Cattaneo and Titiunik, 2014;
Calonico, Cattaneo and Farrell, 2020), used by RdFlex.
rd_bandwidths: the MSE- or CER-optimal bandwidths ofrdbwselectfor the point estimate (h) and the bias correction (b).rd_estimate: the local polynomial estimate at the cutoff with its bias correction and the conventional, bias-corrected and robust confidence intervals.
RdOptions holds rdrobust’s options (polynomial orders, kernel,
bandwidth selector, variance estimator, mass-point handling, …) with its
defaults; RdData the outcome, running variable and optional treatment
(fuzzy design), covariates and cluster labels. With clusters the variance
is cluster-robust (rdrobust’s cr1, or the leverage-adjusted cr2 and
cr3). rdbwselect and rdrobust are shortcuts with the default
options.
Structs§
- RdBandwidths
- Bandwidths below (
.0) and above (.1) the cutoff. - RdData
- Data of an RD design: outcome
y, running variablexand cutoff, and optionally the treatment (fuzzy design), covariates and cluster labels. - RdEstimate
- Result of
rd_estimate: rows are the conventional, bias-corrected and robust (bias-corrected with robust standard error) estimates. - RdOptions
- Options of
rd_bandwidthsandrd_estimate, withrdrobust’s defaults.
Enums§
- BwSelect
- Bandwidth selector, as
rdrobust’sbwselect. - Kernel
- Kernel of the local polynomial fits.
- Mass
Points - Treatment of repeated values of the running variable, as
rdrobust’smasspoints. - Vce
- Variance estimator, as
rdrobust’svce. As inrdrobust, the cluster-robust estimators need cluster labels and the others are switched to them when labels are given:Nn,Hc0andHc1toCr1,Hc2toCr2andHc3toCr3; without labelsCr1,Cr2andCr3fall back toHc1,Hc2andHc3.
Functions§
- rd_
bandwidths - Bandwidths of
rdrobust’srdbwselectfor the RD effect at the cutoff, with the selector and options inopts. - rd_
estimate - Local polynomial RD estimate at the cutoff with its bias correction, as
rdrobustwith the options inopts.bandwidthsfixeshandb(withopts.rho,b = h / rho);Noneselects them withrd_bandwidths. A fuzzy design estimates the ratio of the outcome and treatment jumps; covariates adjust both. - rdbwselect
- The MSE-optimal common bandwidths
(h, b)ofrdrobust’srdbwselect(default options) for the RD effect at cutoffc; pass the treatment asfuzzyfor a fuzzy design. - rdrobust
- Local linear RD estimate at cutoff
cwith a quadratic bias correction and nearest-neighbour standard errors, asrdrobustwith its default options.bandwidthsgives(h, b)(both sides);Noneselects them withrdbwselect. Pass the treatment asfuzzyfor a fuzzy design (the effect is then the ratio of the outcome and treatment jumps).