interplot.medline: A Wrapper for Interplot (Holt and Su) to add Median Lines

Description Usage Arguments Value References See Also Examples

Description

This package adds a median line to a standard marginal effects plot (Brambor, Clark, and Golder 2006) created by interplot (Solt and Hu 2015).

Usage

1
interplot.medline(m, var1, var2, ci = 0.95)

Arguments

m

A model object with interaction terms

var1

The variable for which you wish to calculate marginal effects

var2

The moderator

Value

The function returns a ggplot object.

References

Brambor, Thomas, William Roberts Clark and Matt Golder. 2006. Understanding Interaction Models: Improving Empirical Analyses. Political Analysis 14(1), pp. 63-82.

Solt, Frederick, and Yue Hu. 2015. interplot: Plot the Coefficients of Variables in Interaction Terms. The Comprehensive R Archive Network (CRAN).

See Also

interplot

Examples

1
 interplot.medline(m = fit, var1 = "cyl", var2 = "wt")

tpepinsky/interplot.medline documentation built on May 15, 2019, 5:53 p.m.