Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

gdverse (version 1.3-1)

srs_ecological_detector: spatial rough set-based ecological detector

Description

spatial rough set-based ecological detector

Usage

srs_ecological_detector(y, x1, x2, wt, alpha = 0.95)

Value

A list.

T-statistic

the result of T statistic for spatial rough set-based ecological detector

P-value

the result of P value for spatial rough set-based ecological detector

Ecological

does one spatial feature X1 play a more important role than X2

Arguments

y

Dependent variable, factor, character or discrete numeric.

x1

Covariate X1, factor, character or discrete numeric.

x2

Covariate X2, factor, character or discrete numeric.

wt

Spatial adjacency matrix.

alpha

(optional) Confidence level of the interval,default is 0.95.

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_ecological_detector(srs_table$d,srs_table$a1,srs_table$a2,srs_wt)

Run the code above in your browser using DataLab