A data frame of importance measures with optimal bootstrapped confidence intervals.
Arguments
obj
Model object, must be able to use predict(obj, type="terms").
varname
Character string giving the name of the variable whose importance
will be calculated.
data
A data frame used to estiamte the model.
level
Confidence level used for the confidence interval.
ci_method
Character string giving the method for calculating the
confidence interval - normal or percentile.
...
Other arguments being passed down to `avg_predictions()` from the marginaleffects package.
References
Greenwell, Brandon M., Bradley C. Boehmke and Andrew J. McCarthy. (2018). “A Simple and Effective Model-Based Variable Importance Measure.” arXiv1805.04755 [stat.ML]