Learn R Programming

rdd (version 0.50)

plot.RD: Plot of the Regression Discontinuity

Description

Plot the relationship between the running variable and the outcome

Usage

## 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
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").
...
unused