Learn R Programming

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

spdep (version 1.2-7)

Spatial Dependence: Weighting Schemes, Statistics

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' and 'Gearys C' proposed by 'Cliff' and 'Ord' (1973, ISBN: 0850860369) and (1981, ISBN: 0850860814), 'Hubert/Mantel' general cross product statistic, Empirical Bayes estimates and 'Assunção/Reis' (1999) Index, 'Getis/Ord' G ('Getis' and 'Ord' 1992) and multicoloured join count statistics, 'APLE' ('Li 'et al.' ) , local 'Moran's I', 'Gearys C' ('Anselin' 1995) and 'Getis/Ord' G ('Ord' and 'Getis' 1995) , 'saddlepoint' approximations ('Tiefelsdorf' 2002) and exact tests for global and local 'Moran's I' ('Bivand et al.' 2009) and 'LOSH' local indicators of spatial heteroscedasticity ('Ord' and 'Getis') . The implementation of most of the measures is described in 'Bivand' and 'Wong' (2018) , with further extensions in 'Bivand' (2022) . From 'spdep' and 'spatialreg' versions >= 1.2-1, the model fitting functions previously present in this package are defunct in 'spdep' and may be found in 'spatialreg'.

Copy Link

Version

Install

install.packages('spdep')

Monthly Downloads

41,428

Version

1.2-7

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Roger Bivand

Last Published

October 1st, 2022

Functions in spdep (1.2-7)

diffnb

Differences between neighbours lists
droplinks

Drop links in a neighbours list
cell2nb

Generate neighbours list for grid cells
bhicv

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

Cardinalities for neighbours lists
dnearneigh

Neighbourhood contiguity by distance
columbus

Columbus OH spatial analysis data set
edit.nb

Interactive editing of neighbours lists
Graph Components

Depth First Search on Neighbor Lists
choynowski

Choynowski probability map values
hotspot

Cluster classifications for local indicators of spatial association
eire

Eire data sets
include.self

Include self in neighbours list
geary.test

Geary's C test for spatial autocorrelation
joincount.mc

Permutation test for same colour join count statistics
geary.mc

Permutation test for Geary's C statistic
grid2nb

Construct neighbours for a GridTopology
geary

Compute Geary's C
graphneigh

Graph based spatial weights
globalG.test

Global G test for spatial autocorrelation
lag.listw

Spatial lag of a numeric vector
lee

Compute Lee's statistic
lee.test

Lee's L test for spatial autocorrelation
lee.mc

Permutation test for Lee's L statistic
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
knn2nb

Neighbours list from knn object
knearneigh

K nearest neighbours for spatial weights
listw2sn

Spatial neighbour sparse representation
joincount.multi

BB, BW and Jtot join count statistic for k-coloured factors
joincount.test

BB join count statistic for k-coloured factors
lm.morantest

Moran's I test for residual spatial autocorrelation
localC

Compute Local Geary statistic
localmoran.exact

Exact local Moran's Ii tests
localG

G and Gstar local spatial statistics
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
localmoran

Local Moran's I statistic
lm.morantest.exact

Exact global Moran's I test
local_joincount_uni

Calculate the local univariate join count
local_joincount_bv

Calculate the local bivariate join count
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
nb2WB

Output spatial weights for WinBUGS
moran.test

Moran's I test for spatial autocorrelation
nb2INLA

Output spatial neighbours for INLA
moran.plot

Moran scatterplot
localmoran_bv

Compute the Local Bivariate Moran's I Statistic
moran.mc

Permutation test for Moran's I statistic
moran

Compute Moran's I
nb2blocknb

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

Set operations on neighborhood objects
mat2listw

Convert a square spatial weights matrix to a weights list object
p.adjustSP

Adjust local association measures' p-values
nb2listw

Spatial weights for neighbours lists
nb2listwdist

Distance-based spatial weights for neighbours lists
moran_bv

Compute the Global Bivariate Moran's I
mstree

Find the minimal spanning tree
probmap

Probability mapping for rates
nb2lines

Use vector files for import and export of weights
nb2mat

Spatial weights matrices for neighbours lists
Rotation

Rotate a set of point by a certain angle
read.gwt2nb

Read and write spatial neighbour files
prunecost

Compute cost of prune each edge
nbcosts

Compute cost of edges
plot.nb

Plot a neighbours list
nbdists

Spatial link distance measures
poly2nb

Construct neighbours list from polygon list
plot.mst

Plot the Minimum Spanning Tree
plot.skater

Plot the object of skater class
skater

Spatial 'K'luster Analysis by Tree Edge Removal
subset.listw

Subset a spatial weights list
set.spChkOption

Control checking of spatial object IDs
spdep-defunct

Defunct Functions in Package spdep
set.mcOption

Options for parallel support
sp.correlogram

Spatial correlogram
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
nblag

Higher order neighbours lists
ssw

Compute the sum of dissimilarity
is.symmetric.nb

Test a neighbours list for symmetry
subset.nb

Subset a neighbours list
write.nb.gal

Write a neighbours list as a GAL lattice file
tri2nb

Neighbours list from tri object
read.gal

Read a GAL lattice file into a neighbours list
tolerance.nb

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

Prune a Minimun Spanning Tree
spweights.constants

Provides constants for spatial weights matrices
spdep

Return package version number
summary.nb

Print and summary function for neighbours and weights lists
EBlocal

Local Empirical Bayes estimator
LOSH.mc

Bootstrapping-based test for local spatial heteroscedasticity
aggregate.nb

Aggregate a spatial neighbours object
EBImoran.mc

Permutation test for empirical Bayes index
oldcol

Columbus OH spatial analysis data set - old numbering
LOSH.cs

Chi-square based test for local spatial heteroscedasticity
LOSH

Local spatial heteroscedasticity
EBest

Global Empirical Bayes estimator
autocov_dist

Distance-weighted autocovariate
airdist

Measure distance from plot