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) Index, 'Getis/Ord' G ('Getis' and 'Ord' 1992) and multicoloured join count statistics, 'APLE' ('Li 'et al.' ) , local 'Moran's I' ('Anselin' 1995) and 'Getis/Ord' G ('Ord' and 'Getis' 1995) , 'saddlepoint' approximations ('Tiefelsdorf' 2002) and exact tests for global and local 'Moran's I' ('Bivand et al.' 2009) and 'LOSH' local indicators of spatial heteroscedasticity ('Ord' and 'Getis') . The implementation of most of the measures is described in 'Bivand' and 'Wong' (2018) . 'spdep' >= 1.1-1 corresponds to 'spatialreg' >= 1.1-1, in which the model fitting functions are deprecated and pass through to 'spatialreg', but will mask those in 'spatialreg'. From versions 1.2-1, the functions will be made defunct in 'spdep'. For now 'spatialreg' only has functions from 'spdep', where they are shown as deprecated. 'spatialreg' only loads the namespace of 'spdep'; if you attach 'spdep', the same functions in the other package will be masked. Some feed through adequately, others do not.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.1-11 by Roger Bivand, 21 days ago

Report a bug at

Browse source code at

Authors: Roger Bivand [cre, aut] , Micah Altman [ctb] , Luc Anselin [ctb] , Renato Assunção [ctb] , Olaf Berke [ctb] , Andrew Bernat [ctb] , Guillaume Blanchet [ctb] , Eric Blankmeyer [ctb] , Marilia Carvalho [ctb] , Bjarke Christensen [ctb] , Yongwan Chun [ctb] , Carsten Dormann [ctb] , Stéphane Dray [ctb] , Virgilio Gómez-Rubio [ctb] , Martin Gubri [ctb] , Rein Halbersma [ctb] , Elias Krainski [ctb] , Pierre Legendre [ctb] , Nicholas Lewin-Koh [ctb] , Angela Li [ctb] , Hongfei Li [ctb] , Jielai Ma [ctb] , Abhirup Mallik [ctb, trl] , Giovanni Millo [ctb] , Werner Mueller [ctb] , Hisaji Ono [ctb] , Pedro Peres-Neto [ctb] , Gianfranco Piras [ctb] , Markus Reder [ctb] , Jeff Sauer [ctb] , Michael Tiefelsdorf [ctb] , René Westerholt [ctb] , Levi Wolf [ctb] , Danlin Yu [ctb]

Documentation:   PDF Manual  

Task views: Analysis of Spatial Data

GPL (>= 2) license

Imports deldir, boot, graphics, grDevices, utils, stats, Matrix, LearnBayes, MASS, coda, expm, gmodels, nlme, units, s2, e1071

Depends on methods, sp, spData, sf

Suggests spatialreg, parallel, dbscan, rgeos, RColorBrewer, lattice, xtable, maptools, foreign, igraph, RSpectra, knitr, rgdal, classInt, tmap, spam, ggplot2, rmarkdown, tinytest

Imported by AGPRIS, AHMbook, CARBayes, CARBayesST, ClustGeo, DNLC, DRHotNet, FlexScan, GWmodel, GeNetIt, HSAR, INLABMA, LabourMarketAreas, OasisR, PReMiuM, SUMMER, SUNGEO, SegEnvIneq, SpatialEpi, SpatialEpiApp, adegenet, adespatial, bfsMaps, edbuildmapr, emdi, expp, geocmeans, geomander, geomerge, gwer, latticeDensity, mclcar, mdsOpt, meteoland, pgirmess, ref.ICAR, saeRobust, saeSim, smartR, spANOVA, spGARCH, spNetwork, spatialEco, spatialreg, spemd, sphet, spmoran, spsur, stampr.

Depended on by AMOEBA, BSPADATA, Compind, DCluster, LS2Wstat, SpatialRegimes, ibeemd, spatialprobit, spfrontier, splm, ssfa.

Suggested by ASGS.foyer, BSBT, BayesX, DatabionicSwarm, FRK, ProjectionBasedClustering, R.SamBada, ade4, adegraphics, bamlss, brms, broom, constrainedKriging, diseasemapping, epiphy, gamlss.spatial, landmap, leastcostpath, loo, mcmcsae, motif, plm, prabclus, rangeMapper, redist, rflexscan, seg, sharpshootR, spData, spflow, spgwr, starma, strm, subniche, surveillance.

Enhanced by Matrix, MuMIn, stargazer.

See at CRAN