plot.RDperm | R Documentation |
Plots a histogram and empirical cdf
## S3 method for class 'RDperm' plot(x, w, plot.class = "both", ...)
x |
Object of class "RDperm" |
w |
Character. Name of variable to be plotted |
plot.class |
Character. Can be: "both" for a histogram and cdf plot, "hist" for a histogram or "cdf" for only the cdf plot |
... |
Additional ggplot2 controls |
Maurcio Olivares
Ignacio Sarmiento Barbieri
Canay, I and Kamat V, (2018) Approximate Permutation Tests and Induced Order Statistics in the Regression Discontinuity Design. The Review of Economic Studies, 85(3): 1577-1608
## Not run: permtest<-RDperm(W=c("demshareprev","demwinprev"),z="difdemshare",data=lee2008) plot(permtest,w="demshareprev") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.