plot.RDperm: Plot RDperm

Description Usage Arguments Author(s) References Examples

Description

Plots a histogram and empirical cdf

Usage

1
2
## 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 Gonzalez

Ignacio Sarmiento Barbieri

References

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

Examples

1
2
3
4
5
## Not run: 
permtest<-RDperm(W=c("demshareprev","demwinprev"),z="difdemshare",data=lee2008)
plot(permtest,w="demshareprev")

## End(Not run)

ignaciomsarmiento/RATest documentation built on May 18, 2019, 9:17 p.m.