The mplot package provides an easy to use implementation of model stability and variable inclusion plots (Müller and Welsh 2010;Murray, Heritier, and Müller 2013) as well as the adaptive fence (Jiang, Rao, Gu, and Nguyen 2008; Jiang, Nguyen, and Rao 2009) for linear and generalized linear models. We provide a number of innovations on the standard procedures and address many practical implementation issues including the addition of redundant variables, interactive visualizations and the approximation of logistic models with linear models. An option is provided that combines our bootstrap approach with glmnet for higher dimensional models. The plots and graphical user interface leverage state of the art web technologies to facilitate interaction with the results. The speed of implementation comes from the leaps package and cross-platform multicore support.Keywords: model selection, variable selection, linear models, mixed models, generalized linear models, fence, R.
Graphical tools for model selectionIn this article we introduce the mplot package (Tarr, Müller, and Welsh 2018) for R (R Core Team 2017), which provides a suite of interactive visualizations and model summary statistics for researchers to use to better inform the variable selection process and is available from the Comprehensive R Archive Network (CRAN) at https://CRAN.R-project.org/ package=mplot. The methods we provide rely heavily on various bootstrap techniques to give an indication of the stability of selecting a given model or variable and even though not done here, could be implemented with resampling methods other than the bootstrap, for example cross-validation. The 'm' in mplot stands for model selection/building and we anticipate that in future more graphs and methods will be added to the package to further aid better and more stable building of regression models. The intention is to encourage researchers to engage more closely with the model selection process, allowing them to pair