Plot the Effects of Variables in Interaction Terms

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



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

News

interplot 0.1.5

  • Adding an argument to adjust the CIs.

interplot 0.1.4

  • Fixed the error in plotting lmer projects.

interplot 0.1.3

  • 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.

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

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

  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

Adding the function to plot interactions based on factor variables.

Fit ggplot2 2.0.0 Fixed the quadratic error (#16)

interplot 0.1.1.0

Adding the function to plot interactions based on factor variables.

Fit ggplot2 2.0.0

interplot 0.1.0.2

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

interplot 0.1.0.1

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.1.5 by Yue Hu, a year ago


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

Depends on ggplot2, abind, arm

Suggests knitr


See at CRAN