Plots a histogram and empirical cdf
# S3 method for 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 |
Canay, I and Kamat V, (2017) Approximate Permutation Tests and Induced Order Statistics in the Regression Discontinuity Design. http://faculty.wcas.northwestern.edu/~iac879/wp/RDDPermutations.pdf
# NOT RUN { permtest<-RDperm(W=c("demshareprev","demwinprev"),z="difdemshare",data=lee2008) plot(permtest,w="demshareprev") # }