R: Effect Displays for Linear, Generalized Linear, and Other...

effects-package {effects} | R Documentation

## Effect Displays for Linear, Generalized Linear, and Other Models

### Description

Graphical and tabular effect displays, e.g., of interactions, for various statistical models with linear predictors.

### Details

Package: | effects
Version: | 4.0-1
Date: | 2018-03-28
Depends: | R (>= 3.2.0), carData
Suggests: | pbkrtest (>= 0.4-4), nlme, MASS, poLCA, heplots, splines, ordinal, car
Imports: | lme4, nnet, lattice, grid, colorspace, graphics, grDevices, stats, utils
LazyLoad: | yes
LazyData: | yes
License: | GPL (>= 2)
URL: | https://www.r-project.org, http://socserv.socsci.mcmaster.ca/jfox/

This package creates effect displays for various kinds of models, as partly explained in the references. Typical usage is `plot(allEffects(model))` or `plot(predictorEffects(model))`, where `model` is an appropriate fitted-model object. Additional arguments to `allEffects`, `predictorEffects` and `plot` can be used to customize the resulting displays. The function `effect` can be employed to produce an effect display for a particular term in the model, or to which terms in the model are marginal. The function `predictorEffect` can be used to construct an effect display for a particularly predictor. The function `Effect` may similarly be used to produce an effect display for any combination of predictors. In any of the cases, use `plot` to graph the resulting effect object. For linear and generalized linear models it is also possible to plot partial residuals to obtain (multidimensional) component+residual plots. See `?effect`, `?Effect`, `?predictorEffect`, and `?plot.eff` for details.

### Author(s)

John Fox <jfox@mcmaster.ca>, Sanford Weisberg, Michael Friendly, and Jangman Hong. We are grateful to Robert Andersen and David Firth for various suggestions.

Maintainer: John Fox <jfox@mcmaster.ca>

### References

Fox, J. (1987) Effect displays for generalized linear models. Sociological Methodology 17, 347–361.

Fox, J. (2003) Effect displays in R for generalised linear models. Journal of Statistical Software 8:15, 1–27, <http://www.jstatsoft.org/v08/i15/>.

Fox, J. and R. Andersen (2006) Effect displays for multinomial and proportional-odds logit models. Sociological Methodology 36, 225–255.

Fox, J. and J. Hong (2009). Effect displays in R for multinomial and proportional-odds logit models: Extensions to the effects package. Journal of Statistical Software 32:1, 1–24, <http://www.jstatsoft.org/v32/i01/>.

Fox, J. and S. Weisberg (forthcoming). Visualizing Fit and Lack of Fit in Comples Regression Models: Effect Plots with Partial Residuals. Journal of Statistical Software.

[Package effects version 4.0-1 Index]