Package: lctools 0.3

Stamatis Kalogirou

lctools: Local and Geographically Weighted Spatial Statistics Tools

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) <doi:10.1007/s10037-011-0061-y>, Kalogirou (2016) <doi:10.1111/gean.12092>, and Rey and Smith (2013) <doi:10.1007/s12076-012-0086-z>.

Authors:Stamatis Kalogirou [aut, cre]

lctools_0.3.tar.gz
lctools_0.3.tar.gz(r-4.7-any)lctools_0.3.tar.gz(r-4.6-any)
lctools_0.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
lctools/json (API)

# Install 'lctools' in R:
install.packages('lctools', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.13 score 1 stars 67 scripts 68 downloads 28 exports 110 dependencies

Last updated from:7f053cf34b. Checks:4 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK204
source / vignettesOK230
linux-release-x86_64OK212
wasm-releaseOK146

Exports:accFLQgw_variablegw.glmgw.glm.bwgw.glm.cvgw.glm.lightgw.glm.mc.testgw.zigw.zi.bwgw.zi.cvgw.zi.lightgw.zi.mc.testgwrgwr.bwgwr.cvl.moransIlat2wlcorrelmc.lcorrelmc.spGinimoransImoransI.vmoransI.wrandom.test.dataspGinispGini.ww.matrix

Dependencies:backportsbase64encbitbit64bootbroombslibcachemcheckmateclicliprclustercodetoolscolorspacecpp11crayondata.tabledigestdplyrevaluatefarverfastmapfontawesomeforcatsforeachforeignFormulafsgdatagenericsggplot2glmnetgluegridExtragtablegtoolshavenhighrHmischmshtmlTablehtmltoolshtmlwidgetsisobanditeratorsjomojquerylibjsonliteknitrlabelinglatticelifecyclelme4magrittrMASSMatrixmemoisemicemimeminqamitmlnlmenloptrnnetnumDerivordinalpanpillarpkgconfigplyrprettyunitsprogresspsclpurrrR6rappdirsrbibutilsRColorBrewerRcppRcppEigenRdpackreadrreformulasreshaperlangrmarkdownrpartrstudioapiS7sassscalesshapespstringistringrsurvivaltibbletidyrtidyselecttinytextzdbucminfutf8vctrsviridisLitevroomweightswithrxfunyaml

Spatial Autocorrelation
Introduction | Exploratory Spatial Data Analysis (ESDA) & Spatial autocorrelation | Moran's I | Exploring the data | Calculate the global Moran's I | Case 1: function moransI | Case 2: functions w.matrix and moransI.w | Local Moran's I | References

Last update: 2026-07-09
Started: 2015-04-05

Spatial Inequalities with R
Introduction | Analysis | References

Last update: 2026-07-09
Started: 2015-04-05

Readme and manuals

Help Manual

Help pageTopics
Local and Geographically Weighted Spatial Statistics Toolslctools-package lctools
Spatial Interaction Models: Destination Accessibilityacc
Focal Location QuotientFLQ
Municipalities in Greece in 2011GR.Municipalities
Spatial Interaction Models: gw / regional variablegw_variable
Generalised Geographically Weighted Regression (GGWR)gw.glm
Optimal bandwidth estimation for Generalised Geographically Weighted Regression (GGWR)gw.glm.bw
A specific version of the function gw.glmgw.glm.cv
A light version of the Generalised Geographically Weighted Regression (GGWR)gw.glm.light
Significance test for the spatial variation of the Generalised Geographically Weighted Regression local parameter estimatesgw.glm.mc.test
Geographically Weighted Zero Inflated Poisson Regression (GWZIPR)gw.zi
Optimal bandwidth estimation for Geographically Weighted Zero Inflated Poisson Regression (GWZIPR)gw.zi.bw
A specific version of the function gw.zigw.zi.cv
A light version of the Geographically Weighted Zero Inflated Poisson Regression (GWZIPR)gw.zi.light
Significance test for the spatial variation of the GWZIPR local parameter estimatesgw.zi.mc.test
Geographically Weighted Regression (GWR)gwr
Optimal bandwidth estimation for Geographically Weighted Regression (GWR)gwr.bw
A specific version of the function gwrgwr.cv
Local Moran's I classic statistic for assessing spatial autocorrelationl.moransI
Contiguity-based weights matrix for a regular gridlat2w
Local Pearson and GW Pearson Correlationlcorrel
Monte Carlo simulation for the significance of the local correlation coefficientsmc.lcorrel
Monte Carlo simulation for the significance of the Spatial Gini coefficientmc.spGini
Moran's I classic statistic for assessing spatial autocorrelationmoransI
Computes a vector of Moran's I statistics.moransI.v
Moran's I classic statistic for assessing spatial autocorrelation using a ready made weights matrix.moransI.w
Radmom data generatorrandom.test.data
Spatial Gini coefficientspGini
Spatial Gini coefficient with a given weights matrixspGini.w
New Democracy and Total Votes in Greece in 2012VotesGR
Weights Matrix based on a number of nearest neighbours or a fixed distancew.matrix