Function for calculate shap power of determinants \(SPD\).
Usage
spd_lesh(formula, data, cores = 1, ...)
Value
A tibble with variable and its corresponding \(SPD\) value.
Arguments
formula
A formula of calculate shap power of determinants.
data
A data.frame or tibble of observation data.
cores
(optional) A positive integer(default is 1). If cores > 1, a 'parallel' package
cluster with that many cores is created and used. You can also supply a cluster object.
...
(optional) Other arguments passed to rpart_disc().
shap power of determinants (SPD) is the contribution of variable \(x_j\) to the power of determinants.
References
Li, Y., Luo, P., Song, Y., Zhang, L., Qu, Y., & Hou, Z. (2023). A locally explained heterogeneity model for
examining wetland disparity. International Journal of Digital Earth, 16(2), 4533–4552.
https://doi.org/10.1080/17538947.2023.2271883