Skip to content

MatthieuStigler/RDDtools

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1dc554f · Apr 3, 2015
Apr 3, 2015
Jan 13, 2015
Apr 3, 2015
Jan 13, 2015
Apr 1, 2015
Apr 2, 2015
Mar 31, 2015
Mar 12, 2015
Mar 31, 2015
Apr 3, 2015
Mar 31, 2015
Mar 12, 2015
Mar 17, 2015
Apr 2, 2015

Repository files navigation

RDDtools

Travis-CI Build Status Coverage Status

RDDtools is a new R package under development, designed to offer a set of tools to run all the steps required for a Regression Discontinuity Design (RDD) Analysis, from primary data visualisation to discontinuity estimation, sensitivity and placebo testing.

Installing RDDtools

This github website hosts the source code. One of the easiest ways to install the package from github is by using the R package devtools:

if (!require('devtools')) install.packages('devtools')
devtools::install_github( "bquast/RDDtools", build_vignettes = TRUE )

Note however the latest version of RDDtools only works with R 3.0, and that you might need to install Rtools if on Windows.

Documentation

The (preliminary) documentation is available in the help files directly, as well as in the vignettes. The vignettes can be accessed from R.

vignette("RDDtools")

RDDtools: main features

  • Simple visualisation of the data using binned-plot: plot()

  • Bandwidth selection:

  • Estimation:

    • RDD parametric estimation: RDDreg_lm() This includes specifying the polynomial order, including covariates with various specifications as advocated in Imbens and Lemieux 2008.
    • RDD local non-parametric estimation: RDDreg_np(). Can also include covariates, and allows different types of inference (fully non-parametric, or parametric approximation).
    • RDD generalised estimation: allows to use custom estimating functions to get the RDD coefficient. Could allow for example a probit RDD, or quantile regression.
  • Post-Estimation tools:

    • Various tools, to obtain predictions at given covariate values ( RDDpred() ), or to convert to other classes, to lm ( as.lm() ), or to the package np ( as.npreg() ).
    • Function to do inference with clustered data: clusterInf() either using a cluster covariance matrix ( vcovCluster() ) or by a degrees of freedom correction (as in Cameron et al. 2008).
  • Regression sensitivity analysis:

    • Plot the sensitivity of the coefficient with respect to the bandwith: plotSensi()
    • Placebo plot using different cutpoints: plotPlacebo()
  • Design sensitivity analysis:

    • McCrary test of manipulation of the forcing variable: wrapper dens_test() to the function DCdensity() from package rdd.
    • Test of equal means of covariates: covarTest_mean()
    • Test of equal density of covariates: covarTest_dens()
  • Datasets

References

About

R package for Regresssion Design Discontinuity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published