RDplot: Plot regression discontinuity

Description Usage Arguments Author(s) See Also Examples

Description

RDplot adds additional features to plot.RD (rdd).

Usage

1
2
3
RDplot(x, gran = 400, bins = 100, which = 1, range, col = c("black",
  "black"), pts = TRUE, xlab = "", ylab = "",
  main = "Plot of Regression Discontinuity", ...)

Arguments

x

A model fit with RDestimate (rdd)

gran

The granularity of the plot. This specifies the number of points to either side of the cutpoint for which the estimate is calculated.

bins

If the dependent variable is binary, include the number of bins within which to average

which

Identifies which of the available plots to display. For a sharp design, the only possibility is 1, the plot of the running variable against the outcome variable. For a fuzzy design, an additional plot, 2, may also be displayed, showing the relationship between the running variable and the treatment variable. Both plots may be displayed with which=c(1,2)

range

The range of values of the running variable for which to plot. This should be a vector of length two of the format c(min,max). To plot from the minimum to the maximum value, simply enter c("min","max"). The default is a window 20 times wider than the first listed bandwidth from the rd object, truncated by the min/max values of the running variable from the data.

col

Colors to distinguish before and after the discontinuity.

pts

Should points be plotted. Defaults to TRUE.

xlab

Label for the horizontal axis

ylab

Label for the vertical axis

main

Title for the plot

Author(s)

Jonah Gabry <jsg2201@columbia.edu>. See plot.RD in (rdd) for the author of the original function.

See Also

plot.RD

Examples

1

jgabry/QMSS_package documentation built on May 19, 2019, 7:18 a.m.