plot.RD: Plot of the Regression Discontinuity

Description Usage Arguments Details Author(s)

View source: R/plot.RD.R

Description

Plot the relationship between the running variable and the outcome

Usage

1
2
## S3 method for class 'RD'
plot(x, gran = 400, bins = 100, which = 1, range, ...)

Arguments

x

rd object, typically the result of RDestimate

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.

...

unused

Details

It is important to note that this function will only plot the discontinuity using the bandwidth which is first in the vector of bandwidths passed to RDestimate

Author(s)

Drew Dimmery <drewd@nyu.edu>


rdd documentation built on May 2, 2019, 10:22 a.m.