This function estimates the standard discontinuity regression:
$$Y=\alpha+\tau D+\beta_{1}(X-c)+\beta_{2}D(X-c)+\epsilon$$
with \(\tau\) the main parameter of interest. Several versions of the regression can be estimated, either restricting the slopes to be the same,
i.e \(\beta_{1}=\beta_{2}\) (argument slope
). The order of the polynomial in \(X-c\) can also be adjusted with argument order
.
Note that a value of zero can be used, which corresponds to the simple difference in means, that one would use if the samples were random.
Covariates can also be added in the regression, according to the two strategies discussed in Lee and Lemieux (2010, sec 4.5), through argument covar.strat
:
- include
Covariates are simply added as supplementary regressors in the RD equation
- residual
The dependent variable is first regressed on the covariates only, then the RDD equation is applied on the residuals from this first step
The regression can also be estimated in a neighborhood of the cutpoint with the argument bw
. This make the parametric regression resemble
the non-parametric local kernel rdd_reg_np
. Similarly, weights can also be provided (but not simultaneously to bw
).
The returned object is a classical lm
object, augmented with a RDDslot
, so usual methods can be applied. As is done in general in R,
heteroskeadsticity-robust inference can be done later on with the usual function from package sandwich. For the case of clustered observations
a specific function clusterInf
is provided.