The mplot
package provides a collection of functions designed for exploratory model selection.
We implement model stability and variable importance plots (Mueller and Welsh (2010); Murray, Heritier and Mueller (2013)) as well as the adaptive fence (Jiang et al. (2008); Jiang et al. (2009)) for linear and generalised linear models. We address many practical implementation issues with sensible defaults and interactive graphics to highlight model selection stability. The speed of implementation comes from the leaps package and multicore support for bootstrapping.
The mplot
currently only supports linear and generalised linear models, however work is progressing to incorporate survival models and mixed models.
You can see an example of the output here.
Check that you're running the most recent versions of your currently installed R packages:
update.packages()
The mplot package has been on CRAN since June 2015. You can install it from CRAN in the usual way:
install.packages("mplot")
library("mplot")
You can use the devtools package to install the development version of mplot from GitHub:
# install.packages("devtools")
devtools::install_github("garthtarr/mplot")
library(mplot)
A reference manual is available at garthtarr.github.io/mplot
If you use this package to inform your model selection choices, please use the following citation:
- Tarr G, Müller S and Welsh AH (2018). "mplot: An R Package for Graphical Model Stability and Variable Selection Procedures." Journal of Statistical Software, 83(9), pp. 1–28. doi: 10.18637/jss.v083.i09.
From R you can use:
citation("mplot")
toBibtex(citation("mplot"))