Learn R Programming

gdverse (version 1.3-3)

srs_factor_detector: spatial rough set-based factor detector

Description

spatial rough set-based factor detector

Usage

srs_factor_detector(y, x, wt)

Value

A list.

PD

the average local explanatory power

SE_PD

the degree of spatial heterogeneity of the local explanatory power

Arguments

y

Variable Y, factor, character or discrete numeric.

x

Covariate X, factor, character or discrete numeric.

wt

Spatial adjacency matrix.

References

Bai, H., Li, D., Ge, Y., Wang, J., & Cao, F. (2022). Spatial rough set-based geographical detectors for nominal target variables. Information Sciences, 586, 525–539. https://doi.org/10.1016/j.ins.2021.12.019

Examples

Run this code
data('srs_table')
data('srs_wt')
srs_factor_detector(srs_table$d,srs_table$a1,srs_wt)

Run the code above in your browser using DataLab