shapviz.mid {midr} | R Documentation |
Calculate SHAP of MID Predictions
Description
shapviz.mid()
is a S3 method of shapviz::shapviz()
for the fitted MID models.
Usage
## S3 method for class 'mid'
shapviz(object, data = NULL)
Arguments
object |
a "mid" object. |
data |
a data frame containing observations for which SHAP values are calculated. If not passed, data is extracted from |
Details
The S3 method of shapviz()
for the "mid" objects returns an object of class "shapviz" to be used to create SHAP plots with the functions of the shapviz package such as sv_waterfall()
and sv_importance()
.
Value
shapviz.mid()
returns an object of class "shapviz".
[Package midr version 0.5.0 Index]