Description Usage Arguments Value References See Also Examples
This package adds a median line to a standard
marginal effects plot (Brambor, Clark, and Golder 2006) created by interplot
(Solt and Hu 2015).
1 | interplot.medline(m, var1, var2, ci = 0.95)
|
m |
A model object with interaction terms |
var1 |
The variable for which you wish to calculate marginal effects |
var2 |
The moderator |
The function returns a ggplot
object.
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).
1 | interplot.medline(m = fit, var1 = "cyl", var2 = "wt")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.