Learn R Programming

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

spdep (version 0.5-4)

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

69,828

Version

0.5-4

License

GPL (>= 2)

Maintainer

Roger Bivand

Last Published

April 4th, 2010

Functions in spdep (0.5-4)

elect80

1980 Presidential election results
EBlocal

Local Empirical Bayes estimator
localmoran

Local Moran's I statistic
aple.plot

Approximate profile-likelihood estimator (APLE) scatterplot
aggregate.nb

Aggregate a spatial neighbours object
LR.sarlm

Likelihood ratio test
EBest

Global Empirical Bayes estimator
include.self

Include self in neighbours list
moran.mc

Permutation test for Moran's I statistic
lm.morantest.sad

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

Moran's I test for spatial autocorrelation
edit.nb

Interactive editing of neighbours lists
spautolm

Spatial conditional and simultaneous autoregression model estimation
moran.plot

Moran scatterplot
nb2WB

Output spatial weights for WinBUGS
geary.mc

Permutation test for Geary's C statistic
sp.correlogram

Spatial correlogram
bhicv

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

Corrected Boston Housing Data
ssw

Compute the sum of dissimilarity
eigenw

Spatial weights matrix eigenvalues
write.nb.gal

Write a neighbours list as a GAL lattice file
card

Cardinalities for neighbours lists
anova.sarlm

Comparison of simultaneous autoregressive models
auckland

Marshall's infant mortality in Auckland dataset
afcon

Spatial patterns of conflict in Africa 1966-78
diffnb

Differences between neighbours lists
cell2nb

Generate neighbours list for grid cells
localmoran.exact

Exact local Moran's Ii tests
plot.nb

Plot a neighbours list
summary.sarlm

summary method for class sarlm
bptest.sarlm

Breusch-Pagan test for spatial models
baltimore

House sales prices, Baltimore, MD 1978
oldcol

Columbus OH spatial analysis data set - old numbering
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
lagmess

Matrix exponential spatial lag model
plot.mst

Plot the Minimum Spanning Tree
eire

Eire data sets
nb2mat

Spatial weights matrices for neighbours lists
spweights.constants

Provides constants for spatial weights matrices
EBImoran.mc

Permutation test for empirical Bayes index
joincount.test

BB join count statistic for k-coloured factors
NY_data

New York leukemia data
dnearneigh

Neighbourhood contiguity by distance
choynowski

Choynowski probability map values
Graph Components

Depth First Search on Neighbor Lists
hopkins

Hopkins burnt savanna herb remains
subset.nb

Subset a neighbours list
nb2lines

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

G and Gstar local spatial statistics
nblag

Higher order neighbours lists
nb2listw

Spatial weights for neighbours lists
nc.sids

North Carolina SIDS data
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
geary

Compute Geary's C
listw2sn

Spatial neighbour sparse representation
graphneigh

Graph based spatial weights
joincount.multi

BB, BW and Jtot join count statistic for k-coloured factors
aple.mc

Approximate profile-likelihood estimator (APLE) permutation test
getisord

Getis-Ord remote sensing example data
invIrM

Compute SAR generating operator
aple

Approximate profile-likelihood estimator (APLE)
skater

Spatial 'K'luster Analysis by Tree Edge Removal
moran

Compute Moran's I
lag.listw

Spatial lag of a numeric vector
joincount.mc

Permutation test for same colour join count statistics
columbus

Columbus OH spatial analysis data set
autocov_dist

Distance-weighted autocovariate
droplinks

Drop links in a neighbours list
GMerrorsar

Spatial simultaneous autoregressive error model estimation by GMM
impacts

Impacts in spatial lag models
knearneigh

K nearest neighbours for spatial weights
set.spChkOption

Control checking of spatial object IDs
errorsarlm

Spatial simultaneous autoregressive error model estimation
geary.test

Geary's C test for spatial autocorrelation
huddersfield

Prevalence of respiratory symptoms
globalG.test

Global G test for spatial autocorrelation
summary.nb

Print and summary function for neighbours and weights lists
house

Lucas county OH housing
plot.skater

Plot the object of skater class
as_dgRMatrix_listw

Interface between Matrix class objects and weights lists
poly2nb

Construct neighbours list from polygon list
lm.morantest.exact

Exact global Moran's I test
airdist

Measure distance from plot
subset.listw

Subset a spatial weights list
prunemst

Prune a Minimun Spanning Tree
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
read.gal

Read a GAL lattice file into a neighbours list
ME

Moran eigenvector GLM filtering
nbcosts

Compute cost of edges
p.adjustSP

Adjust local association measures' p-values
prunecost

Compute cost of prune each edge
used.cars

US 1960 used car prices
nbdists

Spatial link distance measures
knn2nb

Neighbours list from knn object
stsls

Generalized spatial two stage least squares
lm.morantest

Moran's I test for residual spatial autocorrelation
SpatialFiltering

Semi-parametric spatial filtering
is.symmetric.nb

Test a neighbours list for symmetry
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
mat2listw

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

Spatial simultaneous autoregressive lag model estimation
trW

Spatial weights matrix powers traces
nb2blocknb

Block up neighbour list for location-less observations
nb.set.operations

Set operations on neighborhood objects
sacsarlm

Spatial simultaneous autoregressive SAC model estimation
similar.listw

Create symmetric similar weights lists
tri2nb

Neighbours list from tri object
wheat

Mercer and Hall wheat yield data
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
mstree

Find the minimal spanning tree
probmap

Probability mapping for rates
do_ldet

Spatial regression model Jacobian computations
read.gwt2nb

Read and write spatial neighbour files
spdep

Return package version number
gstsls

Spatial simultaneous autoregressive SAC model estimation by GMM
tolerance.nb

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

Rotate a set of point by a certain angle
nb2INLA

Output spatial neighbours for INLA