Skip to contents

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 parent.env() based on the function call of the "mid" object.

Value

shapviz.mid() returns an object of class "shapviz".

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().