Description Usage Arguments Author(s) See Also Examples
RDplot
adds additional features to plot.RD
(rdd).
1 2 3 |
x |
A model fit with |
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 |
Jonah Gabry <jsg2201@columbia.edu>. See plot.RD
in (rdd)
for the author of the original function.
1 | RDplot()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.