plotFrontier: Plot the balance - sample size frontier.

Description Usage Arguments Details References Examples

View source: R/plotFrontier.R

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)

Example output

Loading MatchingFrontier Version 1.0.0

## Citation ##
King, Gary, Christopher Lucas, and Richard Nielsen. "MatchingFrontier:
Automated Matching for Causal Inference." R package version 1.0.0.

## BibTeX ##
@manual{MatchingFrontier,
	title={MatchingFrontier: Automated Matching for Causal Inference},
	author={King, Gary and Lucas, Christopher and Nielsen, Richard},
	year={2014},
	note={R package version 1.0.0}
}

Calculating Mahalanobis distances...
Calculating theoretical frontier...
Calculating information for plotting the frontier...

MatchingFrontier documentation built on May 2, 2019, 4:16 a.m.