Learn R Programming

⚠️There's a newer version (1.3-10) of this package.Take me there.

spdep (version 0.2-14)

Spatial dependence: weighting schemes, statistics and models

Description

A collection of functions to create spatial weights matrix objects from polygon contiguities (including the creation of polygon lists from imported shapefiles), from point patterns by distance and tesselations, for summarising these objects, and for permitting their use in spatial data analysis; a collection of tests for spatial autocorrelation, including global Moran's I, Geary's C, Hubert/Mantel general cross product statistic, Empirical Bayes estimates and Assun��o/Reis Index, Getis/Ord G and multicoloured join count statistics, local Moran's I and Getis/Ord G, saddlepoint approximations for global and local Moran's I; and functions for estimating spatial simultaneous autoregressive (SAR) models.

Copy Link

Version

Install

install.packages('spdep')

Monthly Downloads

41,428

Version

0.2-14

License

GPL version 2 or newer

Maintainer

Roger Bivand

Last Published

January 20th, 2025

Functions in spdep (0.2-14)

geary.test

Geary's C test for spatial autocorrelation
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
EBest

Global Empirical Bayes estimator
anova.sarlm

Comparison of simultaneous autoregressive models
dnearneigh

Neighbourhood contiguity by distance
edit.nb

Interactive editing of neighbours lists
baltimore

House sales prices, Baltimore, MD 1978
errorsarlm

Spatial simultaneous autoregressive error model estimation
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
invIrM

Compute SAR generating operator
moran.mc

Permutation test for Moran's I statistic
joincount.test

BB join count statistic for k-coloured factors
lag.listw

Spatial lag of a numeric vector
knearneigh

K nearest neighbours for spatial weights
eigenw

Spatial weights matrix eigenvalues
airdist

Measure distance from plot
nbdists

Spatial link distance measures
nb2listw

Spatial weights for neighbours lists
hopkins

Hopkins burnt savanna herb remains
bptest.sarlm

Breusch-Pagan test for spatial models
geary.mc

Permutation test for Geary's C statistic
mat2listw

Convert a square spatial weights matrix to a weights list object
EBlocal

Local Empirical Bayes estimator
EBImoran.mc

Permutation test for empirical Bayes index
lagsarlm

Spatial simultaneous autoregressive lag model estimation
cell2nb

Generate neighbours list for grid cells
globalG.test

test for spatial autocorrelation
joincount.mc

Permutation test for same colour join count statistics
choynowski

Choynowski probability map values
nb2mat

Spatial weights matrices for neighbours lists
include.self

Include self in neighbours list
knn2nb

Neighbours list from knn object
localmoran

Local Moran's I statistic
moran

Compute Moran's I
diffnb

Differences between neighbours lists
moran.test

Moran's I test for spatial autocorrelation
lm.morantest

Moran's I test for residual spatial autocorrelation
geary

Compute Geary's C
localG

G and Gstar local spatial statistics
read.gwt2nb

Read and write spatial neighbour files
nblag

Higher order neighbours lists
nb.set.operations

Set operations on neighborhood objects
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
subset.listw

Subset a spatial weights list
poly2nb

Construct neighbours list from polygon list
spdep

Return package version number
set.spChkOption

Control checking of spatial object IDs
spweights.constants

Provides constants for spatial weights matrices
is.symmetric.nb

Test a neighbours list for symmetry
subset.nb

Subset a neighbours list
sp.correlogram

Spatial correlogram
listw2sn

Spatial neighbour sparse representation
probmap

Probability mapping for rates
LR.sarlm

Likelihood ratio test
Graph Components

Depth First Search on Neighbor Lists
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
tri2nb

Neighbours list from tri object
moran.plot

Moran scatterplot
plot.nb

Plot a neighbours list
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
graphneigh

Graph based spatial weights
summary.sarlm

summary method for class sarlm
write.nb.gal

Write a neighbours list as a GAL lattice file
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
summary.nb

Print and summary function for neighbours and weights lists
joincount.multi

BB, BW and Jtot join count statistic for k-coloured factors
read.gal

Read a GAL lattice file into a neighbours list
card

Cardinalities for neighbours lists
droplinks

Drop links in a neighbours list
oldcol

Columbus OH spatial analysis data set - old numbering
afcon

Spatial patterns of conflict in Africa 1966-78
eire

Eire data sets
auckland

Marshall's infant mortality in Auckland dataset
columbus

Columbus OH spatial analysis data set
getisord

Getis-Ord remote sensing example data
boston

Corrected Boston Housing Data
used.cars

US 1960 used car prices
nc.sids

North Carolina SIDS data