Learn R Programming

separationplot (version 1.4)

separationplot-package: tools:::Rd_package_title("separationplot")

Description

tools:::Rd_package_description("separationplot")

Arguments

Author

tools:::Rd_package_author("separationplot")

Maintainer: tools:::Rd_package_maintainer("separationplot")

Details

The DESCRIPTION file: tools:::Rd_package_DESCRIPTION("separationplot") tools:::Rd_package_indices("separationplot") A package to create "separation plots" as described in Greenhill, Ward, and Sacks (2011).

References

Greenhill, Brian, Michael D. Ward, and Audrey Sacks. "The separation plot: A new visual method for evaluating the fit of binary models." American Journal of Political Science 55.4 (2011): 991-1002.

Examples

Run this code
# Very simple example from the introduction to the paper:
separationplot(pred=c(0.774, 0.364, 0.997, 0.728, 0.961, 0.422), 
actual=c(0,0,1,0,1,1), shuffle=FALSE, 
line=FALSE, type="rect", rectborder=1)

Run the code above in your browser using DataLab