Learn R Programming

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

spdep (version 0.1-13)

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.1-13

License

GPL version 2 or newer

Maintainer

Last Published

September 13th, 2024

Functions in spdep (0.1-13)

globalG.test

test for spatial autocorrelation
airdist

Measure distance from plot
LR.sarlm

Likelihood ratio test
cell2nb

Generate neighbours list for grid cells
moran.mc

Permutation test for Moran's I statistic
invIrM

Compute SAR generating operator
eigenw

Spatial weights matrix eigenvalues
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
baltimore

House sales prices, Baltimore, MD 1978
joincount.test

BB join count statistic for k-coloured factors
droplinks

Drop links in a neighbours list
nb.set.operations

Set operations on neighborhood objects
edit.nb

Interactive editing of neighbours lists
read.gwt2nb

Read and write GeoDa GWT spatial neighbour files
joincount.mc

Permutation test for same colour join count statistics
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
EBlocal

Local Empirical Bayes estimator
anova.sarlm

Comparison of simultaneous autoregressive models
dnearneigh

Neighbourhood contiguity by distance
Graph Components

Depth First Search on Neighbor Lists
geary.mc

Permutation test for Geary's C statistic
nblag

Higher order neighbours lists
tri2nb

Neighbours list from tri object
geary.test

Geary's C test for spatial autocorrelation
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
EBImoran.mc

Permutation test for empirical Bayes index
nb2mat

Spatial weights matrices for neighbours lists
localG

G and Gstar local spatial statistics
localmoran

Local Moran's I statistic
knearneigh

K nearest neighbours for spatial weights
joincount

Count joins between same colours
poly2nb

Construct neighbours list from polygon list
listw2sn

Spatial neighbour sparse representation
write.nb.gal

Write a neighbours list as a GAL lattice file
set.spChkOption

Control checking of spatial object IDs
card

Cardinalities for neighbours lists
lm.morantest

Moran's I test for residual spatial autocorrelation
moran.plot

Moran scatterplot
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
diffnb

Differences between neighbours lists
nb2listw

Spatial weights for neighbours lists
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
plotpolys

Plot polygons
subset.nb

Subset a neighbours list
lagsarlm

Spatial simultaneous autoregressive lag model estimation
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
is.symmetric.nb

Test a neighbours list for symmetry
spweights.constants

Provides constants for spatial weights matrices
nbdists

Spatial link distance measures
lag.listw

Spatial lag of a numeric vector
read.gal

Read a GAL lattice file into a neighbours list
probmap

Probability mapping for rates
summary.sarlm

summary method for class sarlm
graphneigh

Graph based spatial weights
summary.nb

Print and summary function for neighbours and weights lists
sp.correlogram

Spatial correlogram
knn2nb

Neighbours list from knn object
plot.nb

Plot a neighbours list
errorsarlm

Spatial simultaneous autoregressive error model estimation
moran.test

Moran's I test for spatial autocorrelation
Map2poly

Create polygon lists and bounding boxes from imported shapefiles
EBest

Global Empirical Bayes estimator
geary

Compute Geary's C
moran

Compute Moran's I
include.self

Include self in neighbours list
eire

Eire data sets
boston

Corrected Boston Housing Data
nc.sids

North Carolina SIDS data
getisord

Getis-Ord remote sensing example data
oldcol

Columbus OH spatial analysis data set - old numbering
afcon

Spatial patterns of conflict in Africa 1966-78
used.cars

US 1960 used car prices
columbus

Columbus OH spatial analysis data set
auckland

Marshall's infant mortality in Auckland dataset