Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

boxplot.mnps

Boxplot for 'mnps' objects


Description

This function produces a collection of diagnostic plots for mnps objects.

Usage

## S3 method for class 'mnps'
boxplot(
  x,
  stop.method = NULL,
  color = TRUE,
  figureRows = NULL,
  singlePlot = NULL,
  multiPage = FALSE,
  time = NULL,
  print = TRUE,
  ...
)

Arguments

x

A 'ps' object

stop.method

Only 1 'stop.method' can be presented at a time for 'mnps' objects. Use a numeric indicator of which 'stop.method' (among those specified when fitting the 'mnps' object) should be used.

color

If 'FALSE', a grayscale figure will be returned.

figureRows

The number of rows in the figure. Defaults to the number of panels.

singlePlot

If multiple sets of boxplots are produced, 'singlePlot' can be used to select only one. For example, 'singlePlot = 2' would return only the second set of boxplots.

multiPage

When multiple frames of a figure are produced, 'multiPage = TRUE' will print each frame on a different page. This is intended for situations where the graphical output is being saved to a file.

time

For use with iptw fits.

print

If 'FALSE', the figure is returned but not printed.

...

Additional arguments that are passed to boxplot function, which may bepassed to the underlying 'lattice' package plotting functions.

Details

This function produces lattice-style graphics of diagnostic plots.

References

Dan McCaffrey, G. Ridgeway, Andrew Morral (2004). "Propensity Score Estimation with Boosted Regression for Evaluating Adolescent Substance Abuse Treatment", *Psychological Methods* 9(4):403-425.

See Also

[mnps]


twang

Toolkit for Weighting and Analysis of Nonequivalent Groups

v2.0
GPL-3 | file LICENSE
Authors
Matthew Cefalu <Matthew_Cefalu@rand.org>, Greg Ridgeway, Dan McCaffrey, Andrew Morral, Beth Ann Griffin, and Lane Burgette
Initial release
2021-03-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.