Learn R Programming

gdverse (version 1.3-1)

srsgd: spatial rough set-based geographical detector(SRSGD) model

Description

Function for spatial rough set-based geographical detector model.

Usage

srsgd(formula, data, wt = NULL, type = "factor", alpha = 0.95)

Value

A list.

factor

the result of spatial rough set-based factor detector

interaction

the result of spatial rough set-based interaction detector

ecological

the result of spatial rough set-based ecological detector

Arguments

formula

A formula of spatial rough set-based geographical detector model.

data

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

wt

Spatial adjacency matrix. If data is a sf polygon object, the queen adjacency matrix is used when no wt object is provided. In other cases, you must provide a wt object.

type

(optional) The type of geographical detector, which must be one of factor(default), interaction and ecological.

alpha

(optional) Specifies the size of the alpha (confidence level). 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')
srsgd(d ~ a1 + a2 + a3, data = srs_table, wt = srs_wt,
      type = c('factor','interaction','ecological'))

Run the code above in your browser using DataLab