| rgd | R Documentation |
robust geographical detector(RGD) model
rgd(
formula,
data,
discvar = NULL,
discnum = 3:8,
minsize = 1,
strategy = 2L,
increase_rate = 0.05,
cores = 1
)
formula |
A formula of RGD model. |
data |
A |
discvar |
Name of continuous variable columns that need to be discretized. Noted that
when |
discnum |
A numeric vector of discretized classes of columns that need to be discretized.
Default all |
minsize |
(optional) The min size of each discretization group. Default all use |
strategy |
(optional) Optimal discretization strategy. When |
increase_rate |
(optional) The critical increase rate of the number of discretization. Default is |
cores |
(optional) Positive integer (default is 1). When cores are greater than 1, use multi-core parallel computing. |
A list.
factorrobust power of determinant
opt_discoptimal robust discrete results
allfactorfactor detection results corresponding to different number of robust discreteizations
alldiscall robust discrete results
Please set up python dependence and configure GDVERSE_PYTHON environment variable if you want to run rgd().
See vignette('rgdrid',package = 'gdverse') for more details.
Wenbo Lv lyu.geosocial@gmail.com
Zhang, Z., Song, Y.*, & Wu, P., 2022. Robust geographical detector. International Journal of Applied Earth Observation and Geoinformation. 109, 102782. DOI: 10.1016/j.jag.2022.102782.
## Not run:
## The following code needs to configure the Python environment to run:
data('sim')
g = rgd(y ~ .,
data = dplyr::select(sim,-dplyr::any_of(c('lo','la'))),
discnum = 3:6, cores = 1)
g
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.