plot.RDperm {RATest} | R Documentation |
Plot RDperm
Description
Plots a histogram and empirical cdf
Usage
## S3 method for class 'RDperm'
plot(x, w, plot.class = "both", ...)
Arguments
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 |
Author(s)
Maurcio Olivares
Ignacio Sarmiento Barbieri
References
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
Examples
## Not run:
permtest<-RDperm(W=c("demshareprev","demwinprev"),z="difdemshare",data=lee2008)
plot(permtest,w="demshareprev")
## End(Not run)
[Package RATest version 0.1.10 Index]