mplot: graphical model stability and variable selection procedures

Travis-CI Build Status CRAN_Status_Badge DL_Total

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.

Installation

Check that you're running the most recent versions of your currently installed R packages:

update.packages()

Stable release on CRAN

The mplot package is now on CRAN:

install.packages("mplot")
require("mplot")

Development version on Github

You can use the devtools package to install the development version of mplot from Github:

# install.packages("devtools")
devtools::install_github("garthtarr/mplot")
require(mplot)

Usage

require(mplot)
?af
?vis
?mplot

Citation

If you use this package to inform your model selection choices, please use the following citation:

From R you can use:

citation("mplot")
toBibtex(citation("mplot"))

Uninstall

After you've used the development version you may like to remove it to avoid any potential conflicts in the future:

detach("package:mplot", unload=TRUE)
remove.packages("mplot")

If you do this, then the next time you want to use it, you'll need to install the package again.