Visualization of Regression Models Using visreg

Regression models allow one to isolate the relationship between the outcome and an explanatory variable while the other variables are held constant. Here, we introduce an R package, visreg, for the convenient visualization of this relationship via short, simple function calls. In addition to estimates of this relationship, the package also provides pointwise condence bands and partial residuals to allow assessment of variability as well as outliers and other deviations from modeling assumptions. The package provides several options for visualizing models with interactions, including lattice plots, contour plots, and both static and interactive perspective plots. The implementation of the package is designed to be fully object-oriented and interface seamlessly with R’s rich collection of model classes, allowing a consistent interface for visualizing not only linear models, but generalized linear models, proportional hazards models, generalized additive models, robust regression models, and many more.

[1]  S. Weisberg,et al.  Residuals and Influence in Regression , 1982 .

[2]  R. J. O'Hara Hines,et al.  Improved Added Variable and Partial Residual Plots for the Detection of Influential Observations in Generalized Linear Models , 1993 .

[3]  S. Wood mgcv:Mixed GAM Computation Vehicle with GCV/AIC/REML smoothness estimation , 2012 .

[4]  D. Pregibon,et al.  Graphical Methods for Assessing Logistic Regression Models , 1984 .

[5]  David A. Belsley,et al.  Regression Analysis and its Application: A Data-Oriented Approach.@@@Applied Linear Regression.@@@Regression Diagnostics: Identifying Influential Data and Sources of Collinearity , 1981 .

[6]  James E. Helmreich Regression Modeling Strategies with Applications to Linear Models, Logistic and Ordinal Regression and Survival Analysis (2nd Edition) , 2016 .

[7]  D. Pregibon Logistic Regression Diagnostics , 1981 .

[8]  R. Tibshirani,et al.  Generalized Additive Models , 1991 .

[9]  William N. Venables,et al.  Modern Applied Statistics with S , 2010 .

[10]  Cedric E. Ginestet ggplot2: Elegant Graphics for Data Analysis , 2011 .

[11]  P. Grambsch,et al.  Proportional hazards tests and diagnostics based on weighted residuals , 1994 .

[12]  R Core Team,et al.  R: A language and environment for statistical computing. , 2014 .

[13]  Saralees Nadarajah,et al.  Improved confidence regions based on Edgeworth expansions , 2012, Comput. Stat. Data Anal..

[14]  Robert Tibshirani,et al.  The Elements of Statistical Learning: Data Mining, Inference, and Prediction, 2nd Edition , 2001, Springer Series in Statistics.

[15]  M. Ezekiel A Method of Handling Curvilinear Correlation for Any Number of Variables , 1924 .

[16]  P. Diggle,et al.  Analysis of Longitudinal Data. , 1997 .

[17]  Deepayan Sarkar,et al.  Lattice: Multivariate Data Visualization with R , 2008 .

[18]  C. Loader Local Likelihood Density Estimation , 1996 .

[19]  F. S. Wood The Use of Individual Effects and Residuals in Fitting Equations to Data , 1973 .

[20]  S. Wood Generalized Additive Models: An Introduction with R , 2006 .

[21]  David W. Hosmer,et al.  Applied Logistic Regression , 1991 .

[22]  J. Fox Effect Displays in R for Generalised Linear Models , 2003 .

[23]  V. Barnett,et al.  Applied Linear Statistical Models , 1975 .

[24]  W. A. Larsen,et al.  The Use of Partial Residual Plots in Regression Analysis , 1972 .

[25]  R. Dennis Cook,et al.  Exploring Partial Residual Plots , 1993 .

[26]  Michael Frueh,et al.  Plots Transformations And Regression An Introduction To Graphical Methods Of Diagnostic Regression Analysis , 2016 .

[27]  B. Efron Better Bootstrap Confidence Intervals , 1987 .

[28]  P. Grambsch,et al.  A Package for Survival Analysis in S , 1994 .

[29]  Anne Lohrli Chapman and Hall , 1985 .

[30]  Adam Loy,et al.  Diagnostic tools for hierarchical linear models , 2013 .

[31]  Colin L. Mallows,et al.  Augmented partial residuals , 1986 .

[32]  Anthony C. Atkinson,et al.  Regression Diagnostics, Transformations and Constructed Variables , 1982 .

[33]  Kurt Hornik,et al.  Misc Functions of the Department of Statistics, ProbabilityTheory Group (Formerly: E1071), TU Wien , 2015 .

[34]  Sanford Weisberg,et al.  An R Companion to Applied Regression , 2010 .