Learn R Programming

MatchingFrontier (version 1.0.0)

plotFrontier: Plot the balance - sample size frontier.

Description

plotFrontier() plots the balance - sample size frontier.

Usage

plotFrontier(frontier.object, xlab = "Number of Observations Pruned", ylab = frontier.object$metric, main = "Frontier Plot", ...)

Arguments

frontier.object
An object generated by makeFrontier()
xlab
The label for the x-axis. Defaults to 'Number of Observations Pruned'.
ylab
The label for the y-axis. Defaults to the selected metric.
main
The main label. Defaults to 'Effects Plot'.
...
Additional arguments to be passed to plot.

Details

plotEstimates() wraps plot and uses ... to pass additional arguments to the base plot() function, like color, axis range, etc.

References

King, Gary, Christopher Lucas, and Richard Nielsen. "The Balance-Sample Size Frontier in Matching Methods for Causal Inference." (2015).

Examples

Run this code
data(lalonde)

match.on <- colnames(lalonde)[!(colnames(lalonde) %in% c('re78', 'treat'))]
my.frontier <- makeFrontier(dataset = lalonde,
                            treatment = 'treat',
                            outcome = 're78',
                            match.on = match.on)

plotFrontier(my.frontier)

Run the code above in your browser using DataLab