srs_geodetector {gdverse} | R Documentation |
spatial rough set-based geographical detector
Description
spatial rough set-based geographical detector
Usage
srs_geodetector(formula, data, wt = NULL, type = "factor", alpha = 0.95)
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 |
type |
(optional) The type of geographical detector, which must be one of
|
alpha |
(optional) Specifies the size of the alpha (confidence level). Default is |
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
Author(s)
Wenbo Lv lyu.geosocial@gmail.com
Examples
data('srs_table')
data('srs_wt')
srs_geodetector(d ~ a1 + a2 + a3, data = srs_table, wt = srs_wt)
srs_geodetector(d ~ a1 + a2 + a3, data = srs_table,
wt = srs_wt, type = 'interaction')
srs_geodetector(d ~ a1 + a2 + a3, data = srs_table,
wt = srs_wt, type = 'ecological')
[Package gdverse version 1.3-3 Index]