rddapp v1.1.0

0

Monthly downloads

0th

Percentile

Regression Discontinuity Design Application

Estimation of both single- and multiple-assignment Regression Discontinuity Designs (RDDs). Provides both parametric (global) and non-parametric (local) estimation choices for both sharp and fuzzy designs, along with power analysis and assumption checks. Introductions to the underlying logic and analysis of RDDs are in Thistlethwaite, D. L., Campbell, D. T. (1960) <doi:10.1037/h0044319> and Lee, D. S., Lemieux, T. (2010) <doi:10.1257/jel.48.2.281>.

Readme

rddapp

Travis-CI Build Status Downloads Cran Build

Overview

rddapp provides a set of functions for the analysis of the regression-discontinuity design (RDD).

The three main parts are:

  • estimation of effects of interest
  • power analysis
  • assumption checks

Estimation

The package estimates treatment effects from RDDs, for the following designs and approaches:

  • parametric RDD with single assignment variables, both sharp and fuzzy designs
  • non-parametric RDD with single assignment variables, both sharp and fuzzy designs
  • parametric RDDs with two assignment variables, both sharp and fuzzy designs, using univariate, centering, and frontier approaches

Power analysis

Given input from the user about desired Type I error rate, and assumptions about the population, the package allows estimation of power for the following designs:

  • single assignment RDDs (both sharp and fuzzy) using both parametric and non-parametric estimation
  • multiple-assignment RDDs (both sharp and fuzzy) using various parametric models

Assumption checks

The package allows the user to perform a variety of assumption and sensitivity checks.

  • McCrary's sorting test on the assignment variable
  • Sensitivity to the chosen bandwidth in non-parametric estimation
  • Placebo tests to examine treatment effects at values away from the cut-off
  • Discontinuities in the treatment probability at cut-off
  • Discontinuities for baseline covariates

Installation

# Install the released version from CRAN
install.packages("rddapp")

# Or the development version from GitHub:
# install.packages("devtools")
devtools::install_github("felixthoemmes/rddapp")

Functions in rddapp

Name Description
rd_sens_cutoff Cutoff Sensitivity Simulation for Regression Discontinuity
rd_impute Multiple Imputation of Regression Discontinuity Estimation
rd_type Determine Type of Regression Discontinuity Design
summary.rd Summarize the Regression Discontinuity
summary.mrd Summarize the Multivariate Regression Discontinuity
shiny_run Launch the Shiny App for Regression Discontinuity
summary.mfrd Summarize the Multivariate Frontier Regression Discontinuity
treat_assign Treatment Assignment for Regression Discontinuity
rddapp-package Regression Discontinuity Design Application
wt_kern Kernel Weight Calculation
var_center Assignment Centering for Multivariate Frontier Regression Discontinuity
sens_plot Plot the Simulated Estimates for Sensitivity Analyses
mrd_power Power Analysis of Multivariate Regression Discontinuity
mrd_est Multivariate Regression Discontinuity Estimation
mrd_sens_cutoff Cutoff Sensitivity Simulation for Multivariate Regression Discontinuity
mrd_impute Multiple Imputation of Multivariate Regression Discontinuity Estimation
CARE Carolina Abecedarian Project and the Carolina Approach to Responsive Education (CARE), 1972-1992
plot.mfrd Plot the Multivariate Frontier Regression Discontinuity
mrd_sens_bw Bandwidth Sensitivity Simulation for Multivariate Regression Discontinuity
dc_test McCrary Sorting Test
mfrd_est Multivariate Frontier Regression Discontinuity Estimation
bw_ik12 Imbens-Kalyanaraman 2012 Optimal Bandwidth Calculation
bw_ik09 Imbens-Kalyanaraman 2009 Optimal Bandwidth Calculation
plot.rd Plot the Regression Discontinuity plot.rd plots the relationship between the running variable and the outcome. It is based on the plot.RD function in the rdd package.
rd_est Regression Discontinuity Estimation
attr_check Attrition Checks
rd_sens_bw Bandwidth Sensitivity Simulation for Regression Discontinuity
rd_power Power Analysis of Regression Discontinuity
predict.rd Prediction the Regression Discontinuity
print.mfrd Print the Multivariate Frontier Regression Discontinuity
print.rd Print the Regression Discontinuity
No Results!

Vignettes of rddapp

Name
rddapp.Rmd
No Results!

Last month downloads

Details

Date 2018-04-25
VignetteBuilder knitr
License GPL (>= 2)
LazyData true
RoxygenNote 6.0.1
Collate 'attr_check.R' 'bw_ik09.R' 'bw_ik12.R' 'data.R' 'wt_kern.R' 'dc_test.R' 'treat_assign.R' 'mfrd_est.R' 'var_center.R' 'rd_est.R' 'mrd_est.R' 'mrd_impute.R' 'mrd_power.R' 'mrd_sens_bw.R' 'mrd_sens_cutoff.R' 'plot.mfrd.R' 'predict.rd.R' 'plot.rd.R' 'print.mfrd.R' 'print.rd.R' 'rd_impute.R' 'rd_power.R' 'rd_sens_bw.R' 'rd_sens_cutoff.R' 'rd_type.R' 'rddapp-package.R' 'sens_plot.R' 'shiny_run.R' 'summary.mfrd.R' 'summary.mrd.R' 'summary.rd.R'
NeedsCompilation no
Packaged 2018-04-25 20:50:42 UTC; wenyuzhang
Repository CRAN
Date/Publication 2018-04-26 03:39:19 UTC

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/rddapp)](http://www.rdocumentation.org/packages/rddapp)