reghelper

The reghelper R package includes a set of functions used to automate commonly used methods in regression analysis. This includes plotting interactions, calculating simple slopes, calculating standardized coefficients, etc.

Version 0.3.5 has been released. The most recent stable release is available on CRAN, and can be installed like so:

install.packages("reghelper")

You can also install the stable release from Github:

install.packages("devtools")
devtools::install_github("jeff-hughes/reghelper")

If you would like to install the latest development version, you can do so with the following code:

install.packages("devtools")
devtools::install_github("jeff-hughes/[email protected]")

Installation Issues

Networked computers can sometimes result in installation issues, as the install_github function sometimes has difficulty with networked directories. If this happens to you, use the .libPaths() function to find the path to your R libraries. That will likely give you a path starting with two backslashes, but you will need to convert that to a path starting with a drive letter (e.g., ‘C:’, ‘D:’). From there, use the following code:

install.packages("devtools")
devtools::install_github("jeff-hughes/reghelper", args=c('--library="N:/path/to/libraries/"'))

Obviously, change the path to the path where your R libraries are stored.

Current progress

So far, most functions that I had originally planned to include have been implemented for lm models. These functions include:

The table below shows the current types of models for which each function has been implemented:

Function lm glm aov lme lmer
beta
build_model
ICC
cell_means
graph_model
sig_regions
simple_slopes