Plot the balance - sample size frontier.

Share:

Description

plotFrontier() plots the balance - sample size frontier.

Usage

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

1
2
3
4
5
6
7
8
9
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)