rdms()
analyzes RD designs with cumulative cutoffs or two running variables.
rdms(
Y,
X,
C,
X2 = NULL,
zvar = NULL,
C2 = NULL,
rangemat = NULL,
xnorm = NULL,
fuzzy = NULL,
derivvec = NULL,
pooled_opt = NULL,
pvec = NULL,
qvec = NULL,
hmat = NULL,
bmat = NULL,
rhovec = NULL,
covs_mat = NULL,
covs_list = NULL,
covs_dropvec = NULL,
kernelvec = NULL,
weightsvec = NULL,
bwselectvec = NULL,
scaleparvec = NULL,
scaleregulvec = NULL,
masspointsvec = NULL,
bwcheckvec = NULL,
bwrestrictvec = NULL,
stdvarsvec = NULL,
vcevec = NULL,
nnmatchvec = NULL,
cluster = NULL,
level = 95,
plot = FALSE,
conventional = FALSE
)
vector of bias-corrected coefficients
variance-covariance matrix of the estimators
vector of conventional coefficients
vector of sample sizes within bandwidth at each cutoff
bias corrected confidence intervals
bandwidth used at each cutoff
vector of robust p-values
outcome variable.
running variable.
vector of cutoffs.
if specified, second running variable.
if X2 is specified, treatment indicator.
if specified, second vector of cutoffs.
matrix of cutoff-specific ranges for the running variable.
normalized running variable to estimate pooled effect.
specifies a fuzzy design. See rdrobust()
for details.
vector of cutoff-specific order of derivatives. See
rdrobust()
for details.
options to be passed to rdrobust()
to calculate
pooled estimand.
vector of cutoff-specific polynomial orders. See
rdrobust()
for details.
vector of cutoff-specific polynomial orders for bias estimation.
See rdrobust()
for details.
matrix of cutoff-specific bandwidths. See rdrobust()
for
details.
matrix of cutoff-specific bandwidths for bias estimation. See
rdrobust()
for details.
vector of cutoff-specific values of rho. See rdrobust()
for details.
matrix of covariates. See rdplot()
for details.
list of of covariates to be used in each cutoff.
vector indicating whether collinear covariates should be
dropped at each cutoff. See rdrobust()
for details.
vector of cutoff-specific kernels. See rdrobust()
for
details.
vector of length equal to the number of cutoffs indicating
the names of the variables to be used as weights in each cutoff. See rdrobust()
for details.
vector of cutoff-specific bandwidth selection methods. See
rdrobust()
for details.
vector of cutoff-specific scale parameters. See
rdrobust()
for details.
vector of cutoff-specific scale regularization
parameters. See rdrobust()
for details.
vector indicating how to handle repeated values at each
cutoff. See rdrobust()
for details.
vector indicating the value of bwcheck at each cutoff. See
rdrobust()
for details.
vector indicating whether computed bandwidths are
restricted to the range or runvar at each cutoff. See rdrobust()
for
details.
vector indicating whether variables are standardized at
each cutoff. See rdrobust()
for details.
vector of cutoff-specific variance-covariance estimation
methods. See rdrobust()
for details.
vector of cutoff-specific nearest neighbors for variance
estimation. See rdrobust()
for details.
cluster ID variable. See rdrobust()
for details.
confidence level for confidence intervals. See rdrobust()
for details.
plots cutoff-specific and pooled estimates.
reports conventional, instead of robust-bias corrected, p-values and confidence intervals.
Matias Cattaneo, Princeton University. cattaneo@princeton.edu
Rocio Titiunik, Princeton University. titiunik@princeton.edu
Gonzalo Vazquez-Bare, UC Santa Barbara. gvazquez@econ.ucsb.edu
Cattaneo, M.D., R. Titiunik and G. Vazquez-Bare. (2020). Analysis of Regression Discontinuity Designs with Multiple Cutoffs or Multiple Scores. Stata Journal, forthcoming.
# Toy dataset: cumulative cutoffs
X <- runif(1000,0,100)
C <- c(33,66)
Y <- (1+X)*(X=C[1]&X=C[2]) + rnorm(1000)
# rmds: basic syntax
tmp <- rdms(Y,X,C)
Run the code above in your browser using DataLab