Learn R Programming

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

spdep (version 0.7-7)

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 tessellations, for summarizing 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 'Morans I', 'APLE', 'Gearys C', 'Hubert/Mantel' general cross product statistic, Empirical Bayes estimates and 'Assuno/Reis' Index, 'Getis/Ord' G and multicoloured join count statistics, local 'Moran's I' and 'Getis/Ord' G, 'saddlepoint' approximations, exact tests for global and local 'Moran's I' and 'LOSH' local indicators of spatial heteroscedasticity; 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.7-7

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Roger Bivand

Last Published

April 3rd, 2018

Functions in spdep (0.7-7)

LR.sarlm

Likelihood ratio test
EBest

Global Empirical Bayes estimator
EBlocal

Local Empirical Bayes estimator
aple.mc

Approximate profile-likelihood estimator (APLE) permutation test
droplinks

Drop links in a neighbours list
edit.nb

Interactive editing of neighbours lists
aple.plot

Approximate profile-likelihood estimator (APLE) scatterplot
card

Cardinalities for neighbours lists
cell2nb

Generate neighbours list for grid cells
globalG.test

Global G test for spatial autocorrelation
joincount.test

BB join count statistic for k-coloured factors
graphneigh

Graph based spatial weights
include.self

Include self in neighbours list
invIrM

Compute SAR generating operator
lagmess

Matrix exponential spatial lag model
knearneigh

K nearest neighbours for spatial weights
lagsarlm

Spatial simultaneous autoregressive lag model estimation
lee.test

Lee's L test for spatial autocorrelation
oldcol

Columbus OH spatial analysis data set - old numbering
lextrB

Find extreme eigenvalues of binary symmetric spatial weights
localmoran.exact

Exact local Moran's Ii tests
localmoran

Local Moran's I statistic
nb2WB

Output spatial weights for WinBUGS
EBImoran.mc

Permutation test for empirical Bayes index
ME

Moran eigenvector GLM filtering
SpatialFiltering

Semi-parametric spatial filtering
LOSH.cs

Chi-square based test for local spatial heteroscedasticity
nb2blocknb

Block up neighbour list for location-less observations
bhicv

Data set with 4 life condition indices of Belo Horizonte region
moran.plot

Moran scatterplot
prunecost

Compute cost of prune each edge
prunemst

Prune a Minimun Spanning Tree
LOSH.mc

Bootstrapping-based test for local spatial heteroscedasticity
aggregate.nb

Aggregate a spatial neighbours object
airdist

Measure distance from plot
moran.test

Moran's I test for spatial autocorrelation
nb2mat

Spatial weights matrices for neighbours lists
nbcosts

Compute cost of edges
bptest.sarlm

Breusch-Pagan test for spatial models
choynowski

Choynowski probability map values
eigenw

Spatial weights matrix eigenvalues
eire

Eire data sets
gstsls

Spatial simultaneous autoregressive SAC model estimation by GMM
lee.mc

Permutation test for Lee's L statistic
columbus

Columbus OH spatial analysis data set
lee

Compute Lee's statistic
impacts

Impacts in spatial lag models
geary.mc

Permutation test for Geary's C statistic
geary.test

Geary's C test for spatial autocorrelation
knn2nb

Neighbours list from knn object
plot.skater

Plot the object of skater class
lm.morantest.sad

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

Access functions for spatial simultaneous autoregressive linear model objects
poly2nb

Construct neighbours list from polygon list
Rotation

Rotate a set of point by a certain angle
localG

G and Gstar local spatial statistics
LOSH

Local spatial heteroscedasticity
GMerrorsar

Spatial simultaneous autoregressive error model estimation by GMM
as_dgRMatrix_listw

Interface between Matrix class objects and weights lists
nb2lines

Use arc-type shapefiles for import and export of weights
Graph Components

Depth First Search on Neighbor Lists
autocov_dist

Distance-weighted autocovariate
diffnb

Differences between neighbours lists
errorsarlm

Spatial simultaneous autoregressive error model estimation
lag.listw

Spatial lag of a numeric vector
geary

Compute Geary's C
nb2listw

Spatial weights for neighbours lists
joincount.mc

Permutation test for same colour join count statistics
read.gal

Read a GAL lattice file into a neighbours list
lm.morantest

Moran's I test for residual spatial autocorrelation
summary.nb

Print and summary function for neighbours and weights lists
joincount.multi

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

Read and write spatial neighbour files
summary.sarlm

summary method for class sarlm
lm.morantest.exact

Exact global Moran's I test
listw2sn

Spatial neighbour sparse representation
plot.mst

Plot the Minimum Spanning Tree
plot.nb

Plot a neighbours list
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
moran

Compute Moran's I
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
mat2listw

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

Find the minimal spanning tree
subset.listw

Subset a spatial weights list
moran.mc

Permutation test for Moran's I statistic
subset.nb

Subset a neighbours list
nbdists

Spatial link distance measures
nb2INLA

Output spatial neighbours for INLA
trW

Spatial weights matrix powers traces
tri2nb

Neighbours list from tri object
skater

Spatial 'K'luster Analysis by Tree Edge Removal
sp.correlogram

Spatial correlogram
nblag

Higher order neighbours lists
probmap

Probability mapping for rates
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
nb.set.operations

Set operations on neighborhood objects
p.adjustSP

Adjust local association measures' p-values
spdep

Return package version number
spweights.constants

Provides constants for spatial weights matrices
write.nb.gal

Write a neighbours list as a GAL lattice file
sacsarlm

Spatial simultaneous autoregressive SAC model estimation
set.mcOption

Options for parallel support
set.spChkOption

Control checking of spatial object IDs
similar.listw

Create symmetric similar weights lists
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
spautolm

Spatial conditional and simultaneous autoregression model estimation
ssw

Compute the sum of dissimilarity
stsls

Generalized spatial two stage least squares
is.symmetric.nb

Test a neighbours list for symmetry
tolerance.nb

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

MCMC sample from fitted spatial regression
anova.sarlm

Comparison of simultaneous autoregressive models
aple

Approximate profile-likelihood estimator (APLE)
dnearneigh

Neighbourhood contiguity by distance
do_ldet

Spatial regression model Jacobian computations