spdep
Spatial Dependence: Weighting Schemes, Statistics
A collection of functions to create spatial weights matrix objects from polygon 'contiguities', from point patterns by distance and tessellations, for summarizing these objects, and for permitting their use in spatial data analysis, including regional aggregation by minimum spanning tree; a collection of tests for spatial 'autocorrelation', including global 'Morans I' and 'Gearys C' proposed by 'Cliff' and 'Ord' (1973, ISBN: 0850860369) and (1981, ISBN: 0850860814), 'Hubert/Mantel' general cross product statistic, Empirical Bayes estimates and 'Assunção/Reis' (1999) doi:10.1002/(SICI)1097-0258(19990830)18:16%3C2147::AID-SIM179%3E3.0.CO;2-I Index, 'Getis/Ord' G ('Getis' and 'Ord' 1992) doi:10.1111/j.1538-4632.1992.tb00261.x and multicoloured join count statistics, 'APLE' ('Li 'et al.' ) doi:10.1111/j.1538-4632.2007.00708.x, local 'Moran's I', 'Gearys C' ('Anselin' 1995) doi:10.1111/j.1538-4632.1995.tb00338.x and 'Getis/Ord' G ('Ord' and 'Getis' 1995) doi:10.1111/j.1538-4632.1995.tb00912.x, 'saddlepoint' approximations ('Tiefelsdorf' 2002) doi:10.1111/j.1538-4632.2002.tb01084.x and exact tests for global and local 'Moran's I' ('Bivand et al.' 2009) doi:10.1016/j.csda.2008.07.021 and 'LOSH' local indicators of spatial heteroscedasticity ('Ord' and 'Getis') doi:10.1007/s00168-011-0492-y. The implementation of most of these measures is described in 'Bivand' and 'Wong' (2018) doi:10.1007/s11749-018-0599-x, with further extensions in 'Bivand' (2022) doi:10.1111/gean.12319. 'Lagrange' multiplier tests for spatial dependence in linear models are provided ('Anselin et al'. 1996) doi:10.1016/0166-0462(95)02111-6, as are 'Rao' score tests for hypothesised spatial 'Durbin' models based on linear models ('Koley' and 'Bera' 2023) doi:10.1080/17421772.2023.2256810. A local indicators for categorical data (LICD) implementation based on 'Carrer et al.' (2021) doi:10.1016/j.jas.2020.105306 and 'Bivand et al.' (2017) doi:10.1016/j.spasta.2017.03.003 was added in 1.3-7. From 'spdep' and 'spatialreg' versions >= 1.2-1, the model fitting functions previously present in this package are defunct in 'spdep' and may be found in 'spatialreg'.
- Version1.3-10
- R versionR (≥ 3.3.0)
- LicenseGPL-2
- LicenseGPL-3
- Needs compilation?Yes
- spdep citation info
- Last release01/20/2025
Documentation
- Vignette“The Problem of Spatial Autocorrelation:” forty years on
- VignetteCreating Neighbours
- VignetteCreating Neighbours using sf objects
- VignetteIntroduction to the North Carolina SIDS data set (re-revised)
- VignetteNo-neighbour observation and subgraph handling
- MaterialNEWS
- MaterialChangeLog
- In ViewsSpatial
Team
Roger Bivand
MaintainerShow author detailsDewey Dunnington
Michał Pietrzak
Bjarke Christensen
Show author detailsRolesContributorElias Krainski
Show author detailsRolesContributorVirgilio Gómez-Rubio
Show author detailsRolesContributorPierre Legendre
Show author detailsRolesContributorLuc Anselin
Show author detailsRolesContributorHisaji Ono
Show author detailsRolesContributorWerner Mueller
Show author detailsRolesContributorGianfranco Piras
Show author detailsRolesContributorNicholas Lewin-Koh
Show author detailsRolesContributorLevi Wolf
Show author detailsRolesContributorAngela Li
Show author detailsRolesContributorPedro Peres-Neto
Show author detailsRolesContributorYongwan Chun
Show author detailsRolesContributorGiovanni Millo
Show author detailsRolesContributorJosiah Parry
Danlin Yu
Show author detailsRolesContributorMarkus Reder
Show author detailsRolesContributorRené Westerholt
Show author detailsRolesContributorMarilia Carvalho
Show author detailsRolesContributorJeff Sauer
Show author detailsRolesContributorRenato Assunção
Show author detailsRolesContributorAnil Bera
Show author detailsRolesContributorF. Guillaume Blanchet
Show author detailsRolesContributorJustyna Wilk
Tomasz Kossowski
Stéphane Dray
Carsten Dormann
Show author detailsRolesContributorOlaf Berke
Show author detailsRolesContributorMichael Tiefelsdorf
Show author detailsRolesContributorMalabika Koley
Show author detailsRolesContributorMicah Altman
Show author detailsRolesContributor
Insights
Last 30 days
This package has been downloaded 42,337 times in the last 30 days. That's enough downloads to make it mildly famous in niche technical communities. A badge of honor! The following heatmap shows the distribution of downloads per day. Yesterday, it was downloaded 1,554 times.
The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.
Last 365 days
This package has been downloaded 433,317 times in the last 365 days. Practically an academic rockstar! That's enough downloads to cause murmurs at international conferences. The day with the most downloads was Jul 03, 2024 with 2,670 downloads.
The following line graph shows the downloads per day. You can hover over the graph to see the exact number of downloads per day.
Data provided by CRAN
Binaries
Dependencies
- Depends2 packages
- Imports6 packages
- Suggests16 packages
- Reverse Depends7 packages
- Reverse Imports63 packages
- Reverse Suggests33 packages
- Reverse Enhances2 packages