Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

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

spdep (version 0.2-8)

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

41,220

Version

0.2-8

License

GPL version 2 or newer

Maintainer

Last Published

January 20th, 2025

Functions in spdep (0.2-8)

lagsarlm

Spatial simultaneous autoregressive lag model estimation
mat2listw

Convert a square spatial weights matrix to a weights list object
geary.test

Geary's C test for spatial autocorrelation
anova.sarlm

Comparison of simultaneous autoregressive models
joincount.mc

Permutation test for same colour join count statistics
geary.mc

Permutation test for Geary's C statistic
cell2nb

Generate neighbours list for grid cells
edit.nb

Interactive editing of neighbours lists
LR.sarlm

Likelihood ratio test
poly2nb

Construct neighbours list from polygon list
joincount.test

BB join count statistic for k-coloured factors
diffnb

Differences between neighbours lists
EBImoran.mc

Permutation test for empirical Bayes index
graphneigh

Graph based spatial weights
plot.nb

Plot a neighbours list
dnearneigh

Neighbourhood contiguity by distance
droplinks

Drop links in a neighbours list
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
eigenw

Spatial weights matrix eigenvalues
errorsarlm

Spatial simultaneous autoregressive error model estimation
invIrM

Compute SAR generating operator
card

Cardinalities for neighbours lists
moran.plot

Moran scatterplot
nb2listw

Spatial weights for neighbours lists
baltimore

House sales prices, Baltimore, MD 1978
EBest

Global Empirical Bayes estimator
read.gal

Read a GAL lattice file into a neighbours list
summary.nb

Print and summary function for neighbours and weights lists
globalG.test

test for spatial autocorrelation
localG

G and Gstar local spatial statistics
lm.morantest

Moran's I test for residual spatial autocorrelation
airdist

Measure distance from plot
is.symmetric.nb

Test a neighbours list for symmetry
nbdists

Spatial link distance measures
spweights.constants

Provides constants for spatial weights matrices
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
geary

Compute Geary's C
knn2nb

Neighbours list from knn object
moran.test

Moran's I test for spatial autocorrelation
listw2sn

Spatial neighbour sparse representation
Graph Components

Depth First Search on Neighbor Lists
read.gwt2nb

Read and write GeoDa GWT spatial neighbour files
moran.mc

Permutation test for Moran's I statistic
moran

Compute Moran's I
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
spdep

Return package version number
write.nb.gal

Write a neighbours list as a GAL lattice file
include.self

Include self in neighbours list
set.spChkOption

Control checking of spatial object IDs
nb.set.operations

Set operations on neighborhood objects
probmap

Probability mapping for rates
sp.correlogram

Spatial correlogram
knearneigh

K nearest neighbours for spatial weights
subset.nb

Subset a neighbours list
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
EBlocal

Local Empirical Bayes estimator
nblag

Higher order neighbours lists
tri2nb

Neighbours list from tri object
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
localmoran

Local Moran's I statistic
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
nb2mat

Spatial weights matrices for neighbours lists
lag.listw

Spatial lag of a numeric vector
summary.sarlm

summary method for class sarlm
boston

Corrected Boston Housing Data
oldcol

Columbus OH spatial analysis data set - old numbering
eire

Eire data sets
used.cars

US 1960 used car prices
auckland

Marshall's infant mortality in Auckland dataset
columbus

Columbus OH spatial analysis data set
nc.sids

North Carolina SIDS data
getisord

Getis-Ord remote sensing example data
afcon

Spatial patterns of conflict in Africa 1966-78