Learn R Programming

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

spdep (version 0.5-3)

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-3

License

GPL (>= 2)

Maintainer

Roger Bivand

Last Published

March 22nd, 2010

Functions in spdep (0.5-3)

nc.sids

North Carolina SIDS data
write.nb.gal

Write a neighbours list as a GAL lattice file
localG

G and Gstar local spatial statistics
skater

Spatial 'K'luster Analysis by Tree Edge Removal
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
prunecost

Compute cost of prune each edge
mstree

Find the minimal spanning tree
aple.mc

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

Breusch-Pagan test for spatial models
lagsarlm

Spatial simultaneous autoregressive lag model estimation
dnearneigh

Neighbourhood contiguity by distance
plot.mst

Plot the Minimum Spanning Tree
knearneigh

K nearest neighbours for spatial weights
globalG.test

Global G test for spatial autocorrelation
poly2nb

Construct neighbours list from polygon list
geary.mc

Permutation test for Geary's C statistic
NY_data

New York leukemia data
cell2nb

Generate neighbours list for grid cells
errorsarlm

Spatial simultaneous autoregressive error model estimation
lag.listw

Spatial lag of a numeric vector
diffnb

Differences between neighbours lists
moran.test

Moran's I test for spatial autocorrelation
LR.sarlm

Likelihood ratio test
droplinks

Drop links in a neighbours list
baltimore

House sales prices, Baltimore, MD 1978
bhicv

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

Interface between Matrix class objects and weights lists
auckland

Marshall's infant mortality in Auckland dataset
oldcol

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

Prediction for spatial simultaneous autoregressive linear model objects
house

Lucas county OH housing
invIrM

Compute SAR generating operator
moran.mc

Permutation test for Moran's I statistic
EBImoran.mc

Permutation test for empirical Bayes index
afcon

Spatial patterns of conflict in Africa 1966-78
huddersfield

Prevalence of respiratory symptoms
aggregate.nb

Aggregate a spatial neighbours object
SpatialFiltering

Semi-parametric spatial filtering
EBest

Global Empirical Bayes estimator
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
geary.test

Geary's C test for spatial autocorrelation
eigenw

Spatial weights matrix eigenvalues
spweights.constants

Provides constants for spatial weights matrices
aple.plot

Approximate profile-likelihood estimator (APLE) scatterplot
boston

Corrected Boston Housing Data
geary

Compute Geary's C
GMerrorsar

Spatial simultaneous autoregressive error model estimation by GMM
autocov_dist

Distance-weighted autocovariate
nbdists

Spatial link distance measures
nb2WB

Output spatial weights for WinBUGS
joincount.mc

Permutation test for same colour join count statistics
lm.morantest

Moran's I test for residual spatial autocorrelation
getisord

Getis-Ord remote sensing example data
mat2listw

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

Neighbours list from knn object
airdist

Measure distance from plot
graphneigh

Graph based spatial weights
joincount.test

BB join count statistic for k-coloured factors
card

Cardinalities for neighbours lists
anova.sarlm

Comparison of simultaneous autoregressive models
columbus

Columbus OH spatial analysis data set
tri2nb

Neighbours list from tri object
edit.nb

Interactive editing of neighbours lists
Graph Components

Depth First Search on Neighbor Lists
set.spChkOption

Control checking of spatial object IDs
used.cars

US 1960 used car prices
aple

Approximate profile-likelihood estimator (APLE)
joincount.multi

BB, BW and Jtot join count statistic for k-coloured factors
read.gwt2nb

Read and write spatial neighbour files
hopkins

Hopkins burnt savanna herb remains
include.self

Include self in neighbours list
read.gal

Read a GAL lattice file into a neighbours list
nb2blocknb

Block up neighbour list for location-less observations
moran.plot

Moran scatterplot
choynowski

Choynowski probability map values
eire

Eire data sets
EBlocal

Local Empirical Bayes estimator
localmoran

Local Moran's I statistic
ME

Moran eigenvector GLM filtering
plot.nb

Plot a neighbours list
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
nb2mat

Spatial weights matrices for neighbours lists
localmoran.exact

Exact local Moran's Ii tests
nblag

Higher order neighbours lists
elect80

1980 Presidential election results
lagmess

Matrix exponential spatial lag model
spdep

Return package version number
subset.listw

Subset a spatial weights list
prunemst

Prune a Minimun Spanning Tree
summary.nb

Print and summary function for neighbours and weights lists
listw2sn

Spatial neighbour sparse representation
nb2listw

Spatial weights for neighbours lists
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
lm.morantest.exact

Exact global Moran's I test
Rotation

Rotate a set of point by a certain angle
nb2lines

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

Spatial conditional and simultaneous autoregression model estimation
gstsls

Spatial simultaneous autoregressive SAC model estimation by GMM
nbcosts

Compute cost of edges
plot.skater

Plot the object of skater class
impacts

Impacts in spatial lag models
subset.nb

Subset a neighbours list
trW

Spatial weights matrix powers traces
wheat

Mercer and Hall wheat yield data
is.symmetric.nb

Test a neighbours list for symmetry
ssw

Compute the sum of dissimilarity
moran

Compute Moran's I
do_ldet

Spatial regression model Jacobian computations
nb.set.operations

Set operations on neighborhood objects
similar.listw

Create symmetric similar weights lists
p.adjustSP

Adjust local association measures' p-values
summary.sarlm

summary method for class sarlm
stsls

Generalized spatial two stage least squares
sp.correlogram

Spatial correlogram
probmap

Probability mapping for rates
tolerance.nb

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

Output spatial neighbours for INLA
sacsarlm

Spatial simultaneous autoregressive SAC model estimation