Learn R Programming

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

spdep (version 0.5-33)

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

41,428

Version

0.5-33

License

GPL (>= 2)

Maintainer

Roger Bivand

Last Published

May 20th, 2011

Functions in spdep (0.5-33)

autocov_dist

Distance-weighted autocovariate
choynowski

Choynowski probability map values
bhicv

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

New York leukemia data
do_ldet

Spatial regression model Jacobian computations
globalG.test

Global G test for spatial autocorrelation
impacts

Impacts in spatial lag models
moran.plot

Moran scatterplot
aggregate.nb

Aggregate a spatial neighbours object
lm.morantest

Moran's I test for residual spatial autocorrelation
EBest

Global Empirical Bayes estimator
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
elect80

1980 Presidential election results
localmoran

Local Moran's I statistic
columbus

Columbus OH spatial analysis data set
geary.test

Geary's C test for spatial autocorrelation
as_dgRMatrix_listw

Interface between Matrix class objects and weights lists
EBImoran.mc

Permutation test for empirical Bayes index
lagsarlm

Spatial simultaneous autoregressive lag model estimation
plot.nb

Plot a neighbours list
huddersfield

Prevalence of respiratory symptoms
EBlocal

Local Empirical Bayes estimator
SpatialFiltering

Semi-parametric spatial filtering
p.adjustSP

Adjust local association measures' p-values
getisord

Getis-Ord remote sensing example data
nb2INLA

Output spatial neighbours for INLA
joincount.mc

Permutation test for same colour join count statistics
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
include.self

Include self in neighbours list
subset.nb

Subset a neighbours list
poly2nb

Construct neighbours list from polygon list
diffnb

Differences between neighbours lists
localG

G and Gstar local spatial statistics
lm.morantest.exact

Exact global Moran's I test
knearneigh

K nearest neighbours for spatial weights
airdist

Measure distance from plot
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
LR.sarlm

Likelihood ratio test
aple.mc

Approximate profile-likelihood estimator (APLE) permutation test
anova.sarlm

Comparison of simultaneous autoregressive models
nc.sids

North Carolina SIDS data
moran.mc

Permutation test for Moran's I statistic
edit.nb

Interactive editing of neighbours lists
joincount.multi

BB, BW and Jtot join count statistic for k-coloured factors
tolerance.nb

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

Higher order neighbours lists
boston

Corrected Boston Housing Data
ME

Moran eigenvector GLM filtering
lag.listw

Spatial lag of a numeric vector
oldcol

Columbus OH spatial analysis data set - old numbering
mstree

Find the minimal spanning tree
eigenw

Spatial weights matrix eigenvalues
spdep

Return package version number
aple.plot

Approximate profile-likelihood estimator (APLE) scatterplot
nb.set.operations

Set operations on neighborhood objects
probmap

Probability mapping for rates
card

Cardinalities for neighbours lists
nb2lines

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

House sales prices, Baltimore, MD 1978
auckland

Marshall's infant mortality in Auckland dataset
nbcosts

Compute cost of edges
cell2nb

Generate neighbours list for grid cells
subset.listw

Subset a spatial weights list
invIrM

Compute SAR generating operator
set.spChkOption

Control checking of spatial object IDs
knn2nb

Neighbours list from knn object
stsls

Generalized spatial two stage least squares
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
is.symmetric.nb

Test a neighbours list for symmetry
read.gwt2nb

Read and write spatial neighbour files
skater

Spatial 'K'luster Analysis by Tree Edge Removal
nbdists

Spatial link distance measures
errorsarlm

Spatial simultaneous autoregressive error model estimation
sacsarlm

Spatial simultaneous autoregressive SAC model estimation
house

Lucas county OH housing
Graph Components

Depth First Search on Neighbor Lists
geary.mc

Permutation test for Geary's C statistic
moran

Compute Moran's I
droplinks

Drop links in a neighbours list
prunecost

Compute cost of prune each edge
spautolm

Spatial conditional and simultaneous autoregression model estimation
similar.listw

Create symmetric similar weights lists
wheat

Mercer and Hall wheat yield data
nb2WB

Output spatial weights for WinBUGS
GMerrorsar

Spatial simultaneous autoregressive error model estimation by GMM
sp.correlogram

Spatial correlogram
listw2sn

Spatial neighbour sparse representation
plot.mst

Plot the Minimum Spanning Tree
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
dnearneigh

Neighbourhood contiguity by distance
summary.sarlm

summary method for class sarlm
ssw

Compute the sum of dissimilarity
read.gal

Read a GAL lattice file into a neighbours list
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
geary

Compute Geary's C
trW

Spatial weights matrix powers traces
graphneigh

Graph based spatial weights
nb2mat

Spatial weights matrices for neighbours lists
eire

Eire data sets
hopkins

Hopkins burnt savanna herb remains
localmoran.exact

Exact local Moran's Ii tests
plot.skater

Plot the object of skater class
nb2blocknb

Block up neighbour list for location-less observations
prunemst

Prune a Minimun Spanning Tree
write.nb.gal

Write a neighbours list as a GAL lattice file
aple

Approximate profile-likelihood estimator (APLE)
spweights.constants

Provides constants for spatial weights matrices
gstsls

Spatial simultaneous autoregressive SAC model estimation by GMM
joincount.test

BB join count statistic for k-coloured factors
bptest.sarlm

Breusch-Pagan test for spatial models
lagmess

Matrix exponential spatial lag model
moran.test

Moran's I test for spatial autocorrelation
summary.nb

Print and summary function for neighbours and weights lists
afcon

Spatial patterns of conflict in Africa 1966-78
mat2listw

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

Spatial weights for neighbours lists
tri2nb

Neighbours list from tri object
used.cars

US 1960 used car prices
Rotation

Rotate a set of point by a certain angle