This is the first release of mSHAP on CRAN! It is an implementation of the mSHAP algorithm as described by Matthews and Hartman (2021) (See Paper Here), which allows for the computation of SHAP values on two-part models. This package also includes useful functions for visualizing mSHAP and SHAP values. See the README file on the github page for more examples and use cases.
variable_values
data frame.{ggplot2}
, {ggbeeswarm}
and {tidyr}
to imports, instead of suggests.mshap_plots
that documents different ways to customize and use the plots.colorscale
, legend.position
, font_family
, and title
to the summary_plot()
function, for greater ease of customization.fill_colors
, connect_colors
, expected_color
, predicted_color
, title
, and font_family
to the observation_plot()
function for greater ease of customization.mshap
function more robustobservation_plot()
go away (it was occurring because there was only one tick mark on each axis, so I added an invisible one)R CMD CHECK
mshap()
function where data frames with the same number of columns but different names were not getting flagged to add additional columns even when shap_*_names
was specified.mshap()