| opgd | R Documentation |
optimal parameters-based geographical detector(OPGD) model
opgd(
formula,
data,
discvar = NULL,
discnum = 3:8,
discmethod = c("sd", "equal", "geometric", "quantile", "natural"),
cores = 1,
type = "factor",
alpha = 0.95,
...
)
formula |
A formula of OPGD model. |
data |
A |
discvar |
Name of continuous variable columns that need to be discretized. Noted that
when |
discnum |
(optional) A vector of number of classes for discretization. Default is |
discmethod |
(optional) A vector of methods for discretization, default is using
|
cores |
(optional) Positive integer (default is 1). When cores are greater than 1, use multi-core parallel computing. |
type |
(optional) The type of geographical detector, which must be |
alpha |
(optional) Specifies the size of confidence level. Default is |
... |
(optional) Other arguments passed to |
A list.
opt_paramoptimal discretization parameter
factorthe result of factor detector
interactionthe result of interaction detector
riskthe result of risk detector
ecologicalthe result of ecological detector
Wenbo Lv lyu.geosocial@gmail.com
Song, Y., Wang, J., Ge, Y. & Xu, C. (2020) An optimal parameters-based geographical detector model enhances geographic characteristics of explanatory variables for spatial heterogeneity analysis: Cases with different types of spatial data, GIScience & Remote Sensing, 57(5), 593-610. doi: 10.1080/15481603.2020.1760434.
data('sim')
opgd(y ~ xa + xb + xc, data = sim,
discvar = paste0('x',letters[1:3]),
discnum = 3:6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.