This function calculates and visualizes interactions in the model using bootstrapping.
It provides overall, one-way, and two-way interactions for specified features.
Usage
mrInteractions(yhats, X, Y, num_bootstrap = 1, feature = feature, top.int = 10)
Arguments
- yhats
A list of model predictions.
- X
The predictor data.
- Y
The response data.
- num_bootstrap
The number of bootstrap samples to generate (default: 1).
- feature
The feature for which interactions need to be calculated.
- top.int
The number of top interactions to display (default: 10).
Value
A list containing the visualizations for overall, one-way, and two-way interactions, as well as the interaction dataframes.