Learn R Programming

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

spdep (version 0.2-9)

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, and Getis/Ord G, 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

39,055

Version

0.2-9

License

GPL version 2 or newer

Maintainer

Roger Bivand

Last Published

January 20th, 2025

Functions in spdep (0.2-9)

baltimore

House sales prices, Baltimore, MD 1978
errorsarlm

Spatial simultaneous autoregressive error model estimation
geary

Compute Geary's C
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
joincount.mc

Permutation test for same colour join count statistics
droplinks

Drop links in a neighbours list
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
EBImoran.mc

Permutation test for empirical Bayes index
lagsarlm

Spatial simultaneous autoregressive lag model estimation
geary.test

Geary's C test for spatial autocorrelation
anova.sarlm

Comparison of simultaneous autoregressive models
knn2nb

Neighbours list from knn object
read.gal

Read a GAL lattice file into a neighbours list
card

Cardinalities for neighbours lists
listw2sn

Spatial neighbour sparse representation
globalG.test

test for spatial autocorrelation
diffnb

Differences between neighbours lists
spdep

Return package version number
dnearneigh

Neighbourhood contiguity by distance
mat2listw

Convert a square spatial weights matrix to a weights list object
include.self

Include self in neighbours list
moran

Compute Moran's I
EBest

Global Empirical Bayes estimator
nbdists

Spatial link distance measures
moran.mc

Permutation test for Moran's I statistic
nb2listw

Spatial weights for neighbours lists
eigenw

Spatial weights matrix eigenvalues
read.gwt2nb

Read and write GeoDa GWT spatial neighbour files
moran.plot

Moran scatterplot
lm.morantest

Moran's I test for residual spatial autocorrelation
poly2nb

Construct neighbours list from polygon list
geary.mc

Permutation test for Geary's C statistic
sp.correlogram

Spatial correlogram
graphneigh

Graph based spatial weights
set.spChkOption

Control checking of spatial object IDs
lag.listw

Spatial lag of a numeric vector
edit.nb

Interactive editing of neighbours lists
localG

G and Gstar local spatial statistics
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
probmap

Probability mapping for rates
plot.nb

Plot a neighbours list
LR.sarlm

Likelihood ratio test
joincount.test

BB join count statistic for k-coloured factors
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
tri2nb

Neighbours list from tri object
spweights.constants

Provides constants for spatial weights matrices
moran.test

Moran's I test for spatial autocorrelation
airdist

Measure distance from plot
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
nb2mat

Spatial weights matrices for neighbours lists
summary.nb

Print and summary function for neighbours and weights lists
subset.listw

Subset a spatial weights list
is.symmetric.nb

Test a neighbours list for symmetry
summary.sarlm

summary method for class sarlm
localmoran

Local Moran's I statistic
invIrM

Compute SAR generating operator
knearneigh

K nearest neighbours for spatial weights
nb.set.operations

Set operations on neighborhood objects
nblag

Higher order neighbours lists
subset.nb

Subset a neighbours list
cell2nb

Generate neighbours list for grid cells
Graph Components

Depth First Search on Neighbor Lists
EBlocal

Local Empirical Bayes estimator
write.nb.gal

Write a neighbours list as a GAL lattice file
nc.sids

North Carolina SIDS data
eire

Eire data sets
auckland

Marshall's infant mortality in Auckland dataset
boston

Corrected Boston Housing Data
columbus

Columbus OH spatial analysis data set
afcon

Spatial patterns of conflict in Africa 1966-78
getisord

Getis-Ord remote sensing example data
used.cars

US 1960 used car prices
oldcol

Columbus OH spatial analysis data set - old numbering