Learn R Programming

rdmulti (version 0.2)

rdmc: Analysis of RD designs with multiple cutoffs

Description

rdmc() analyzes RD designs with multiple cutoffs.

Usage

rdmc(Y, X, C, pooled.opt = NULL, hvec = NULL, bvec = NULL, pvec = NULL,
  kernelvec = NULL, fuzzy = NULL, plot = FALSE, verbose = FALSE)

Arguments

Y

outcome variable.

X

running variable.

C

cutoff variable.

pooled.opt

options to be passed to rdrobust() to calculate pooled estimand.

hvec

bandwidths to be passed to rdrobust() to calculate cutoff-specific estimates. Should be a vector of length equal to the number of different cutoffs.

bvec

bandwidths for the bias to be passed to rdrobust() to calculate cutoff-specific estimates. Should be a vector of length equal to the number of different cutoffs.

pvec

order of the polynomials to be passed to rdrobust() to calculate cutoff-specific estimates. Should be a vector of length equal to the number of different cutoffs.

kernelvec

kernels to be passed to rdrobust() to calculate cutoff-specific estimates.Should be a vector of length equal to the number of different cutoffs.

fuzzy

specifies a fuzzy design.

plot

plots cutoff-specific estimates and weights.

verbose

displays the output from rdrobust for estimating the pooled estimand.

Value

tau

pooled estimate

se.rb

robust bias corrected standard error for pooled estimate

pv.rb

robust bias corrected p-value for pooled estimate

ci.rb.l

left limit of robust bias corrected CI for pooled estimate

ci.rb.r

right limit of robust bias corrected CI for pooled estimate

hl

bandwidth to the left of the cutoff for pooled estimate

hr

bandwidth to the right of the cutoff for pooled estimate

Nhl

sample size within bandwidth to the left of the cutoff for pooled estimate

Nhr

sample size within bandwidth to the right of the cutoff for pooled estimate

B

vector of bias-corrected coefficients

V

variance-covariance matrix of the estimators

Coefs

vector of conventional coefficients

W

vector of weights for each cutoff-specific estimate

Nh

vector of sample sizes within bandwidth at each cutoff

CI

bias corrected confidence intervals

H

bandwidth used at each cutoff

rdrobust.results

results from rdrobust for pooled estimate

References

M.D. Cattaneo, R. Titiunik and G. Vazquez-Bare. (2018). Analysis of Regression Discontinuity Designs with Multiple Cutoffs or Multiple Scores. Working paper, University of Michigan.

Examples

Run this code
# NOT RUN {
# Toy dataset
X <- runif(1000,0,100)
C <- c(rep(33,500),rep(66,500))
Y <- (1 + X + (X>=C))*(C==33)+(.5 + .5*X + .8*(X>=C))*(C==66) + rnorm(1000)
# rdmc with standard syntax
tmp <- rdmc(Y,X,C)
# rdmc with cutoff-specific bandwidths
tmp <- rdmc(Y,X,C,hvec=c(9,13))


# }

Run the code above in your browser using DataLab