Learn R Programming

gdverse (version 1.3-1)

lesh: locally explained stratified heterogeneity(LESH) model

Description

Function for locally explained stratified heterogeneity model.

Usage

lesh(formula, data, cores = 1, ...)

Value

A list.

interaction

the interaction result of LESH model

spd_lesh

a tibble of the shap power of determinants

Arguments

formula

A formula of LESH model.

data

A data.frame, tibble or sf object of observation data.

cores

(optional) Positive integer (default is 1). When cores are greater than 1, use multi-core parallel computing.

...

(optional) Other arguments passed to rpart_disc().

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

Examples

Run this code
data('ndvi')
g = lesh(NDVIchange ~ ., data = ndvi)
g

Run the code above in your browser using DataLab