Learn R Programming

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

spdep (version 0.5-37)

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, including regional aggregation by minimum spanning tree; a collection of tests for spatial autocorrelation, including global Moran's I, APLE, Geary's C, Hubert/Mantel general cross product statistic, Empirical Bayes estimates and Assun��o/Reis Index, Getis/Ord G and multicoloured join count statistics, local Moran's I and Getis/Ord G, saddlepoint approximations and exact tests for global and local Moran's I; and functions for estimating spatial simultaneous autoregressive (SAR) lag and error models, impact measures for lag models, weighted and unweighted SAR and CAR spatial regression models, semi-parametric and Moran eigenvector spatial filtering, GM SAR error models, and generalized spatial two stage least squares models.

Copy Link

Version

Install

install.packages('spdep')

Monthly Downloads

40,858

Version

0.5-37

License

GPL (>= 2)

Maintainer

Roger Bivand

Last Published

June 29th, 2011

Functions in spdep (0.5-37)

Graph Components

Depth First Search on Neighbor Lists
oldcol

Columbus OH spatial analysis data set - old numbering
EBImoran.mc

Permutation test for empirical Bayes index
geary.mc

Permutation test for Geary's C statistic
EBlocal

Local Empirical Bayes estimator
hopkins

Hopkins burnt savanna herb remains
listw2sn

Spatial neighbour sparse representation
bhicv

Data set with 4 life condition indices of Belo Horizonte region
nblag

Higher order neighbours lists
house

Lucas county OH housing
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
lag.listw

Spatial lag of a numeric vector
baltimore

House sales prices, Baltimore, MD 1978
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
aggregate.nb

Aggregate a spatial neighbours object
plot.skater

Plot the object of skater class
mat2listw

Convert a square spatial weights matrix to a weights list object
wheat

Mercer and Hall wheat yield data
localG

G and Gstar local spatial statistics
localmoran.exact

Exact local Moran's Ii tests
mstree

Find the minimal spanning tree
NY_data

New York leukemia data
aple.plot

Approximate profile-likelihood estimator (APLE) scatterplot
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
localmoran

Local Moran's I statistic
lm.morantest.exact

Exact global Moran's I test
droplinks

Drop links in a neighbours list
EBest

Global Empirical Bayes estimator
GMerrorsar

Spatial simultaneous autoregressive error model estimation by GMM
geary

Compute Geary's C
boston

Corrected Boston Housing Data
autocov_dist

Distance-weighted autocovariate
columbus

Columbus OH spatial analysis data set
invIrM

Compute SAR generating operator
as_dgRMatrix_listw

Interface between Matrix class objects and weights lists
write.nb.gal

Write a neighbours list as a GAL lattice file
nbcosts

Compute cost of edges
moran

Compute Moran's I
gstsls

Spatial simultaneous autoregressive SAC model estimation by GMM
nb2mat

Spatial weights matrices for neighbours lists
subset.listw

Subset a spatial weights list
huddersfield

Prevalence of respiratory symptoms
lm.morantest

Moran's I test for residual spatial autocorrelation
lagsarlm

Spatial simultaneous autoregressive lag model estimation
trW

Spatial weights matrix powers traces
sp.correlogram

Spatial correlogram
include.self

Include self in neighbours list
stsls

Generalized spatial two stage least squares
subset.nb

Subset a neighbours list
errorsarlm

Spatial simultaneous autoregressive error model estimation
read.gwt2nb

Read and write spatial neighbour files
choynowski

Choynowski probability map values
elect80

1980 Presidential election results
plot.nb

Plot a neighbours list
joincount.test

BB join count statistic for k-coloured factors
ME

Moran eigenvector GLM filtering
lagmess

Matrix exponential spatial lag model
eire

Eire data sets
anova.sarlm

Comparison of simultaneous autoregressive models
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
bptest.sarlm

Breusch-Pagan test for spatial models
dnearneigh

Neighbourhood contiguity by distance
airdist

Measure distance from plot
nb2INLA

Output spatial neighbours for INLA
nb2blocknb

Block up neighbour list for location-less observations
nb2listw

Spatial weights for neighbours lists
joincount.mc

Permutation test for same colour join count statistics
eigenw

Spatial weights matrix eigenvalues
moran.test

Moran's I test for spatial autocorrelation
nbdists

Spatial link distance measures
prunecost

Compute cost of prune each edge
is.symmetric.nb

Test a neighbours list for symmetry
getisord

Getis-Ord remote sensing example data
knearneigh

K nearest neighbours for spatial weights
globalG.test

Global G test for spatial autocorrelation
read.gal

Read a GAL lattice file into a neighbours list
nb.set.operations

Set operations on neighborhood objects
spautolm

Spatial conditional and simultaneous autoregression model estimation
afcon

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

US 1960 used car prices
nc.sids

North Carolina SIDS data
similar.listw

Create symmetric similar weights lists
knn2nb

Neighbours list from knn object
plot.mst

Plot the Minimum Spanning Tree
tolerance.nb

Function to construct edges based on a tolerance angle and a maximum distance
SpatialFiltering

Semi-parametric spatial filtering
cell2nb

Generate neighbours list for grid cells
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
moran.mc

Permutation test for Moran's I statistic
probmap

Probability mapping for rates
prunemst

Prune a Minimun Spanning Tree
sacsarlm

Spatial simultaneous autoregressive SAC model estimation
impacts

Impacts in spatial lag models
joincount.multi

BB, BW and Jtot join count statistic for k-coloured factors
LR.sarlm

Likelihood ratio test
geary.test

Geary's C test for spatial autocorrelation
spdep

Return package version number
diffnb

Differences between neighbours lists
p.adjustSP

Adjust local association measures' p-values
summary.nb

Print and summary function for neighbours and weights lists
aple

Approximate profile-likelihood estimator (APLE)
moran.plot

Moran scatterplot
Rotation

Rotate a set of point by a certain angle
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
skater

Spatial 'K'luster Analysis by Tree Edge Removal
card

Cardinalities for neighbours lists
spweights.constants

Provides constants for spatial weights matrices
graphneigh

Graph based spatial weights
set.spChkOption

Control checking of spatial object IDs
tri2nb

Neighbours list from tri object
auckland

Marshall's infant mortality in Auckland dataset
aple.mc

Approximate profile-likelihood estimator (APLE) permutation test
do_ldet

Spatial regression model Jacobian computations
edit.nb

Interactive editing of neighbours lists
nb2WB

Output spatial weights for WinBUGS
nb2lines

Use arc-type shapefiles for import and export of weights
ssw

Compute the sum of dissimilarity
poly2nb

Construct neighbours list from polygon list
summary.sarlm

summary method for class sarlm