Learn R Programming

lctools (version 0.3)

Local and Geographically Weighted Spatial Statistics Tools

Description

Provides researchers and educators with easy-to-learn, user friendly tools for calculating key spatial statistics and for applying simple as well as advanced methods of spatial analysis on real data. These include: Local Pearson and Geographically Weighted Pearson Correlation Coefficients; Spatial Inequality Measures (Gini coefficient, Spatial Gini, Location Quotient (LQ) and Focal Location Quotient); Spatial Autocorrelation indices (Global and Local Moran's I); several Geographically Weighted Regression techniques, including the Geographically Weighted Zero-Inflated Poisson Regression; tools for computing variables used in Spatial Interaction Models; and other spatial analysis tools (other geographically weighted statistics). The local correlation tools were originally developed to test for local multicollinearity among the explanatory variables of local regression models and can also be used to examine the local association between pairs of variables. The package also contains functions for measuring the significance of each statistic calculated, mainly based on Monte Carlo simulations, and comes with two example datasets, one of which is a spatial data frame referring to the municipalities of Greece. Methods are described in Kalogirou (2012) , Kalogirou (2016) , and Rey and Smith (2013) .

Copy Link

Version

Install

install.packages('lctools')

Monthly Downloads

322

Version

0.3

License

GPL (>= 2)

Maintainer

Stamatis Kalogirou

Last Published

July 9th, 2026

Functions in lctools (0.3)

gw.zi

Geographically Weighted Zero Inflated Poisson Regression (GWZIPR)
gwr.bw

Optimal bandwidth estimation for Geographically Weighted Regression (GWR)
gwr

Geographically Weighted Regression (GWR)
gw.zi.cv

A specific version of the function gw.zi
gw.zi.bw

Optimal bandwidth estimation for Geographically Weighted Zero Inflated Poisson Regression (GWZIPR)
lat2w

Contiguity-based weights matrix for a regular grid
gw.zi.mc.test

Significance test for the spatial variation of the GWZIPR local parameter estimates
l.moransI

Local Moran's I classic statistic for assessing spatial autocorrelation
gw.zi.light

A light version of the Geographically Weighted Zero Inflated Poisson Regression (GWZIPR)
gwr.cv

A specific version of the function gwr
mc.lcorrel

Monte Carlo simulation for the significance of the local correlation coefficients
moransI.w

Moran's I classic statistic for assessing spatial autocorrelation using a ready made weights matrix.
moransI

Moran's I classic statistic for assessing spatial autocorrelation
mc.spGini

Monte Carlo simulation for the significance of the Spatial Gini coefficient
random.test.data

Radmom data generator
spGini.w

Spatial Gini coefficient with a given weights matrix
spGini

Spatial Gini coefficient
lcorrel

Local Pearson and GW Pearson Correlation
lctools-package

Local and Geographically Weighted Spatial Statistics Tools
moransI.v

Computes a vector of Moran's I statistics.
w.matrix

Weights Matrix based on a number of nearest neighbours or a fixed distance
gw_variable

Spatial Interaction Models: gw / regional variable
gw.glm.bw

Optimal bandwidth estimation for Generalised Geographically Weighted Regression (GGWR)
VotesGR

New Democracy and Total Votes in Greece in 2012
gw.glm.cv

A specific version of the function gw.glm
gw.glm

Generalised Geographically Weighted Regression (GGWR)
acc

Spatial Interaction Models: Destination Accessibility
GR.Municipalities

Municipalities in Greece in 2011
gw.glm.mc.test

Significance test for the spatial variation of the Generalised Geographically Weighted Regression local parameter estimates
gw.glm.light

A light version of the Generalised Geographically Weighted Regression (GGWR)
FLQ

Focal Location Quotient