Learn R Programming

⚠️There's a newer version (1.3.2) of this package.Take me there.

rddapp

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, including:

  • 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")

Copy Link

Version

Install

install.packages('rddapp')

Monthly Downloads

256

Version

1.3.0

License

GPL (>= 2)

Maintainer

Felix Thoemmes

Last Published

February 13th, 2022

Functions in rddapp (1.3.0)

mrd_power

Power Analysis of Multivariate Regression Discontinuity
CARE

Carolina Abecedarian Project and the Carolina Approach to Responsive Education (CARE), 1972-1992
mfrd_est

Multivariate Frontier Regression Discontinuity Estimation
mrd_sens_bw

Bandwidth Sensitivity Simulation for Multivariate Regression Discontinuity
mrd_est

Multivariate Regression Discontinuity Estimation
bw_ik09

Imbens-Kalyanaraman 2009 Optimal Bandwidth Calculation
attr_check

Attrition Checks
bw_ik12

Imbens-Kalyanaraman 2012 Optimal Bandwidth Calculation
dc_test

McCrary Sorting Test
mrd_impute

Multiple Imputation of Multivariate Regression Discontinuity Estimation
plot.rd

Plot the Regression Discontinuity
rddapp-package

Regression Discontinuity Design Application
predict.rd

Predict the Regression Discontinuity
sens_plot

Plot the Simulated Estimates for Sensitivity Analyses
rd_sens_bw

Bandwidth Sensitivity Simulation for Regression Discontinuity
rd_type

Determine Type of Regression Discontinuity Design
rd_power

Power Analysis of Regression Discontinuity
rd_sens_cutoff

Cutoff Sensitivity Simulation for Regression Discontinuity
summary.rdp

Summarize the Power Analysis of Regression Discontinuity
treat_assign

Treatment Assignment for Regression Discontinuity
print.mfrd

Print the Multivariate Frontier Regression Discontinuity
summary.mrd

Summarize the Multivariate Regression Discontinuity
wt_kern_bivariate

Bivariate Kernel Weight Calculation
print.rd

Print the Regression Discontinuity
mrd_sens_cutoff

Cutoff Sensitivity Simulation for Multivariate Regression Discontinuity
rd_impute

Multiple Imputation of Regression Discontinuity Estimation
rd_est

Regression Discontinuity Estimation
shiny_run

Launch the R Shiny App for "rddapp"
summary.mfrd

Summarize the Multivariate Frontier Regression Discontinuity
var_center

Assignment Centering for Multivariate Frontier Regression Discontinuity
wt_kern

Kernel Weight Calculation
summary.mrdp

Summarize the Power Analysis of Regression Discontinuity
summary.mrdi

Summarize the Multiple Imputation of Multivariate Regression Discontinuity
plot.mfrd

Plot the Multivariate Frontier Regression Discontinuity
summary.rd

Summarize the Regression Discontinuity