Plot the Effects of Variables in Interaction Terms

Plots the conditional coefficients ("marginal effects") of variables included in multiplicative interaction terms.


CRAN version


interplot

interplot is a tool for plotting the conditional coefficients ("marginal effects") of variables included in multiplicative interaction terms. The function plots the changes in the coefficient of one variable in a two-way interaction term conditional on the value of the other included variable. The plot also includes simulated 95% confidential intervals of these coefficients.

To install:

  • the latest released version: install.packages("interplot").
  • the latest developing version: devtools::install_github("sammo3182/interplot").

More details are available at:

http://cran.r-project.org/web/packages/interplot/vignettes/interplot-vignette.html

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

News

interplot 0.2.1

Function Updates

  • Showing the confidence intervals between the conditional effects at the minimum and maximum values of the conditioning variable.

Error Fixed

  • Avoiding the warning caused by the class(m) == "polr".

interplot 0.2.0

Adding Argument

  • Adding an argument to adjust CIs to control the false discovery rate.
  • Adding an argument to produce conditional predicted probabilities at given values.

Vignette Updates

  • Adding a brief review of the methodology of interaction.
  • Adding an example to show how to control for the false discovery rate.
  • Adding an example to illustrate plotting conditional predicted propbabilities.

interplot 0.1.5

Adding Argument

  • Adding an argument to adjust the CIs.

interplot 0.1.4

Error Fixed

  • Fixing the error in plotting lmer projects.

interplot 0.1.3

Function Updates

  • Take the steps argument back in case of special design requirement of the plot.
  • Fixed an error in presenting the histogram on categorical conditioning variables.
  • Improving the histogram presentation: all the bars for categorical variables are centered.

Vignette Updates

Updated the vignette including instructions of how to change the aesthetics of the plot and how to use histogram function.

interplot 0.1.2.1

Vignette Updates

Updated the vignette including instructions of how to change the aesthetics of the plot and how to use histogram function.

interplot 0.1.2.0

Additional Function

  1. The aesthetics can be modified through built-in arguments or the ggplot geom_ functions.
  2. A histogram can be superimposed into the plot.

interplot 0.1.1.1

Additional Function

Adding the function to plot interactions based on factor variables.

Bug fix

Fit ggplot2 2.0.0 Fixed the quadratic error (#16)

interplot 0.1.1.0

Additional Function

Adding the function to plot interactions based on factor variables.

Bug fix

Fit ggplot2 2.0.0

interplot 0.1.0.2

Bug fix

Fix the bug for nonlinear multilevel models with multiply imputed data (gmlmmi).

interplot 0.1.0.1

Bug fix

Fix the error to run mlm and mlmmi.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("interplot")

0.2.1 by Yue Hu, 7 months ago


Report a bug at https://github.com/sammo3182/interplot/issues


Browse source code at https://github.com/cran/interplot


Authors: Frederick Solt [aut] , Yue Hu [aut, cre] , Brenton Kenkel [ctb]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports stats, dplyr, purrr, gridExtra, interactionTest

Depends on ggplot2, abind, arm

Suggests knitr, rmarkdown


See at CRAN