Learn R Programming

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

spdep (version 0.2-3)

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 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.2-3

License

GPL version 2 or newer

Maintainer

Last Published

September 13th, 2024

Functions in spdep (0.2-3)

anova.sarlm

Comparison of simultaneous autoregressive models
read.gwt2nb

Read and write GeoDa GWT spatial neighbour files
nbdists

Spatial link distance measures
lagsarlm

Spatial simultaneous autoregressive lag model estimation
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
card

Cardinalities for neighbours lists
include.self

Include self in neighbours list
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
geary.test

Geary's C test for spatial autocorrelation
graphneigh

Graph based spatial weights
edit.nb

Interactive editing of neighbours lists
nb2mat

Spatial weights matrices for neighbours lists
moran.mc

Permutation test for Moran's I statistic
poly2nb

Construct neighbours list from polygon list
droplinks

Drop links in a neighbours list
EBImoran.mc

Permutation test for empirical Bayes index
localG

G and Gstar local spatial statistics
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
EBlocal

Local Empirical Bayes estimator
joincount.mc

Permutation test for same colour join count statistics
joincount.test

BB join count statistic for k-coloured factors
nb2listw

Spatial weights for neighbours lists
moran.test

Moran's I test for spatial autocorrelation
localmoran

Local Moran's I statistic
baltimore

House sales prices, Baltimore, MD 1978
nblag

Higher order neighbours lists
summary.nb

Print and summary function for neighbours and weights lists
errorsarlm

Spatial simultaneous autoregressive error model estimation
eigenw

Spatial weights matrix eigenvalues
geary.mc

Permutation test for Geary's C statistic
probmap

Probability mapping for rates
globalG.test

test for spatial autocorrelation
listw2sn

Spatial neighbour sparse representation
joincount

Count joins between same colours
cell2nb

Generate neighbours list for grid cells
is.symmetric.nb

Test a neighbours list for symmetry
EBest

Global Empirical Bayes estimator
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
knn2nb

Neighbours list from knn object
diffnb

Differences between neighbours lists
LR.sarlm

Likelihood ratio test
dnearneigh

Neighbourhood contiguity by distance
geary

Compute Geary's C
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
Graph Components

Depth First Search on Neighbor Lists
moran.plot

Moran scatterplot
spweights.constants

Provides constants for spatial weights matrices
subset.nb

Subset a neighbours list
tri2nb

Neighbours list from tri object
plot.nb

Plot a neighbours list
sp.correlogram

Spatial correlogram
set.spChkOption

Control checking of spatial object IDs
spdep

Return package version number
airdist

Measure distance from plot
read.gal

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

summary method for class sarlm
nb.set.operations

Set operations on neighborhood objects
knearneigh

K nearest neighbours for spatial weights
invIrM

Compute SAR generating operator
lag.listw

Spatial lag of a numeric vector
lm.morantest

Moran's I test for residual spatial autocorrelation
moran

Compute Moran's I
write.nb.gal

Write a neighbours list as a GAL lattice file
columbus

Columbus OH spatial analysis data set
getisord

Getis-Ord remote sensing example data
eire

Eire data sets
afcon

Spatial patterns of conflict in Africa 1966-78
auckland

Marshall's infant mortality in Auckland dataset
oldcol

Columbus OH spatial analysis data set - old numbering
used.cars

US 1960 used car prices
nc.sids

North Carolina SIDS data
boston

Corrected Boston Housing Data