Learn R Programming

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

spdep (version 0.1-10)

Spatial dependence: weighting schemes, statistics and models

Description

A collection of functions to create spatial weights matrix objects from polygon contiguities, 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 spatial 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

36,884

Version

0.1-10

License

GPL version 2 or newer

Maintainer

Last Published

September 13th, 2024

Functions in spdep (0.1-10)

lm.morantest

Moran's I test for residual spatial autocorrelation
geary.test

Geary's C test for spatial autocorrelation
EBest

Global Empirical Bayes estimator
EBlocal

Local Empirical Bayes estimator
moran

Compute Moran's I
Graph Components

Depth First Search on Neighbor Lists
lag.listw

Spatial lag of a numeric vector
sp.correlogram

Spatial correlogram
include.self

Include self in neighbours list
lagsarlm

Spatial simultaneous autoregressive lag model estimation
knn2nb

Neighbours list from knn object
moran.plot

Moran scatterplot
probmap

Probability mapping for rates
poly2nb

Construct neighbours list from polygon list
nb2mat

Spatial weights matrices for neighbours lists
eigenw

Spatial weights matrix eigenvalues
plot.nb

Plot a neighbours list
dnearneigh

Neighbourhood contiguity by distance
airdist

Measure distance from plot
globalG.test

test for spatial autocorrelation
droplinks

Drop links in a neighbours list
diffnb

Differences between neighbours lists
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
nb2listw

Spatial weights for neighbours lists
joincount.mc

Permutation test for same colour join count statistics
localG

G and Gstar local spatial statistics
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
joincount

Count joins between same colours
joincount.test

BB join count statistic for k-coloured factors
moran.test

Moran's I test for spatial autocorrelation
spweights.constants

Provides constants for spatial weights matrices
set.spChkOption

Control checking of spatial object IDs
geary.mc

Permutation test for Geary's C statistic
knearneigh

K nearest neighbours for spatial weights
listw2sn

Spatial neighbour sparse representation
subset.nb

Subset a neighbours list
read.gal

Read a GAL lattice file into a neighbours list
plotpolys

Plot polygons
LR.sarlm

Likelihood ratio test
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
cell2nb

Generate neighbours list for grid cells
tri2nb

Neighbours list from tri object
write.nb.gal

Write a neighbours list as a GAL lattice file
is.symmetric.nb

Test a neighbours list for symmetry
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
edit.nb

Interactive editing of neighbours lists
moran.mc

Permutation test for Moran's I statistic
invIrM

Compute SAR generating operator
nb.set.operations

Set operations on neighborhood objects
errorsarlm

Spatial simultaneous autoregressive error model estimation
nblag

Higher order neighbours lists
summary.sarlm

summary method for class sarlm
summary.nb

Summary function for neighbours lists
card

Cardinalities for neighbours lists
graphneigh

Graph based spatial weights
nbdists

Spatial link distance measures
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
localmoran

Local Moran's I statistic
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
geary

Compute Geary's C
EBImoran.mc

Permutation test for empirical Bayes index
auckland

Marshall's infant mortality in Auckland dataset
boston

Corrected Boston Housing Data
getisord

Getis-Ord remote sensing example data
eire

Eire data sets
used.cars

US 1960 used car prices
oldcol

Columbus OH spatial analysis data set - old numbering
nc.sids

North Carolina SIDS data
afcon

Spatial patterns of conflict in Africa 1966-78
columbus

Columbus OH spatial analysis data set