gwr_geoc {geocomplexity} | R Documentation |
geographical complexity-geographically weighted regression
Description
geographical complexity-geographically weighted regression
Usage
gwr_geoc(
formula,
data,
gcs = NULL,
alpha = seq(0.05, 1, 0.05),
bw = "RMSE",
adaptive = TRUE,
kernel = "gaussian"
)
Arguments
formula |
A formula of |
data |
An |
gcs |
(optional) The geocomplexity matrix corresponding to each variable, which is calculated
by default using |
alpha |
(optional) Balancing the weights of attribute similarity matrix and geographic distance matrix. |
bw |
(optional) The bandwidth used in selecting models. The optimal bandwidth can be selected using one
of three methods: |
adaptive |
(optional) Whether the bandwidth value is adaptive or not. Default is |
kernel |
(optional) Kernel function. Default is |
Value
A list with GCGWR results.
SDF
an sf tibble with coefficients, standard errors and t values
diagnostic
goodness of fit indicators
args
some key parameters
Examples
## The following code takes a long time to run:
econineq = sf::read_sf(system.file('extdata/econineq.gpkg',package = 'geocomplexity'))
g = gwr_geoc(formula = Gini ~ ., data = econineq,
alpha = 0.5, bw = "AIC", adaptive = TRUE)
g