Learn R Programming

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

spdep (version 0.4-46)

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.4-46

License

GPL (>= 2)

Maintainer

Roger Bivand

Last Published

October 7th, 2009

Functions in spdep (0.4-46)

geary.test

Geary's C test for spatial autocorrelation
aple

Approximate profile-likelihood estimator (APLE)
NY_data

New York leukemia data
aple.plot

Approximate profile-likelihood estimator (APLE) scatterplot
anova.sarlm

Comparison of simultaneous autoregressive models
eire

Eire data sets
afcon

Spatial patterns of conflict in Africa 1966-78
EBlocal

Local Empirical Bayes estimator
diffnb

Differences between neighbours lists
aggregate.nb

Aggregate a spatial neighbours object
prunecost

Compute cost of prune each edge
lagsarlm

Spatial simultaneous autoregressive lag model estimation
globalG.test

test for spatial autocorrelation
nbdists

Spatial link distance measures
p.adjustSP

Adjust local association measures' p-values
errorsarlm

Spatial simultaneous autoregressive error model estimation
subset.nb

Subset a neighbours list
read.gwt2nb

Read and write spatial neighbour files
GMerrorsar

Spatial simultaneous autoregressive error model estimation by GMM
edit.nb

Interactive editing of neighbours lists
EBest

Global Empirical Bayes estimator
joincount.mc

Permutation test for same colour join count statistics
similar.listw

Create symmetric similar weights lists
used.cars

US 1960 used car prices
eigenw

Spatial weights matrix eigenvalues
nb2lines

Use arc-type shapefiles for import and export of weights
impacts.sarlm

Impacts in spatial lag models
columbus

Columbus OH spatial analysis data set
probmap

Probability mapping for rates
airdist

Measure distance from plot
moran

Compute Moran's I
oldcol

Columbus OH spatial analysis data set - old numbering
plot.mst

Plot the Minimum Spanning Tree
Graph Components

Depth First Search on Neighbor Lists
bptest.sarlm

Breusch-Pagan test for spatial models
baltimore

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

Exact global Moran's I test
subset.listw

Subset a spatial weights list
dnearneigh

Neighbourhood contiguity by distance
card

Cardinalities for neighbours lists
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
is.symmetric.nb

Test a neighbours list for symmetry
localmoran.exact

Exact local Moran's Ii tests
nb.set.operations

Set operations on neighborhood objects
nc.sids

North Carolina SIDS data
getisord

Getis-Ord remote sensing example data
joincount.test

BB join count statistic for k-coloured factors
huddersfield

Prevalence of respiratory symptoms
include.self

Include self in neighbours list
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
LR.sarlm

Likelihood ratio test
nb2blocknb

Block up neighbour list for location-less observations
graphneigh

Graph based spatial weights
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
bhicv

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

Compute cost of edges
lm.morantest.sad

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

Moran scatterplot
spweights.constants

Provides constants for spatial weights matrices
nb2mat

Spatial weights matrices for neighbours lists
geary.mc

Permutation test for Geary's C statistic
ssw

Compute the sum of dissimilarity
moran.mc

Permutation test for Moran's I statistic
poly2nb

Construct neighbours list from polygon list
set.spChkOption

Control checking of spatial object IDs
knearneigh

K nearest neighbours for spatial weights
nblag

Higher order neighbours lists
write.nb.gal

Write a neighbours list as a GAL lattice file
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
SpatialFiltering

Semi-parametric spatial filtering
moran.test

Moran's I test for spatial autocorrelation
summary.sarlm

summary method for class sarlm
house

Lucas county OH housing
invIrM

Compute SAR generating operator
joincount.multi

BB, BW and Jtot join count statistic for k-coloured factors
mat2listw

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

Local Moran's I statistic
EBImoran.mc

Permutation test for empirical Bayes index
aple.mc

Approximate profile-likelihood estimator (APLE) permutation test
wheat

Mercer and Hall wheat yield data
boston

Corrected Boston Housing Data
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
spdep

Return package version number
stsls

Generalized spatial two stage least squares
choynowski

Choynowski probability map values
droplinks

Drop links in a neighbours list
knn2nb

Neighbours list from knn object
localG

G and Gstar local spatial statistics
ME

Moran eigenvector GLM filtering
prunemst

Prune a Minimun Spanning Tree
summary.nb

Print and summary function for neighbours and weights lists
as_dgRMatrix_listw

Interface between Matrix class objects and weights lists
auckland

Marshall's infant mortality in Auckland dataset
tri2nb

Neighbours list from tri object
autocov_dist

Distance-weighted autocovariate
trW

Spatial weights matrix powers traces
lag.listw

Spatial lag of a numeric vector
cell2nb

Generate neighbours list for grid cells
nb2listw

Spatial weights for neighbours lists
geary

Compute Geary's C
hopkins

Hopkins burnt savanna herb remains
read.gal

Read a GAL lattice file into a neighbours list
listw2sn

Spatial neighbour sparse representation
skater

Spatial 'K'luster Analysis by Tree Edge Removal
lm.morantest

Moran's I test for residual spatial autocorrelation
sp.correlogram

Spatial correlogram
spautolm

Spatial conditional and simultaneous autoregression model estimation
mstree

Find the minimal spanning tree
nb2WB

Output spatial weights for WinBUGS
plot.skater

Plot the object of skater class
plot.nb

Plot a neighbours list