Learn R Programming

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

spdep (version 1.2-4)

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

38,896

Version

1.2-4

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

April 18th, 2022

Functions in spdep (1.2-4)

diffnb

Differences between neighbours lists
eire

Eire data sets
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
geary

Compute Geary's C
lm.morantest

Moran's I test for residual spatial autocorrelation
droplinks

Drop links in a neighbours list
lm.morantest.exact

Exact global Moran's I test
edit.nb

Interactive editing of neighbours lists
grid2nb

Construct neighbours for a GridTopology
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
include.self

Include self in neighbours list
dnearneigh

Neighbourhood contiguity by distance
LOSH.cs

Chi-square based test for local spatial heteroscedasticity
nb2mat

Spatial weights matrices for neighbours lists
nb2listwdist

Distance-based spatial weights for neighbours lists
columbus

Columbus OH spatial analysis data set
localC

Compute Local Geary statistic
card

Cardinalities for neighbours lists
localG

G and Gstar local spatial statistics
knn2nb

Neighbours list from knn object
bhicv

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

Spatial link distance measures
nbcosts

Compute cost of edges
geary.test

Geary's C test for spatial autocorrelation
Graph Components

Depth First Search on Neighbor Lists
joincount.mc

Permutation test for same colour join count statistics
geary.mc

Permutation test for Geary's C statistic
mstree

Find the minimal spanning tree
spdep

Return package version number
spdep-defunct

Defunct Functions in Package spdep
nb2INLA

Output spatial neighbours for INLA
prunemst

Prune a Minimun Spanning Tree
prunecost

Compute cost of prune each edge
joincount.multi

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

Lee's L test for spatial autocorrelation
listw2sn

Spatial neighbour sparse representation
lee

Compute Lee's statistic
cell2nb

Generate neighbours list for grid cells
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
lag.listw

Spatial lag of a numeric vector
choynowski

Choynowski probability map values
poly2nb

Construct neighbours list from polygon list
localmoran

Local Moran's I statistic
probmap

Probability mapping for rates
localmoran.exact

Exact local Moran's Ii tests
moran.plot

Moran scatterplot
moran.test

Moran's I test for spatial autocorrelation
p.adjustSP

Adjust local association measures' p-values
plot.mst

Plot the Minimum Spanning Tree
set.spChkOption

Control checking of spatial object IDs
spweights.constants

Provides constants for spatial weights matrices
globalG.test

Global G test for spatial autocorrelation
mat2listw

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

Spatial 'K'luster Analysis by Tree Edge Removal
read.gal

Read a GAL lattice file into a neighbours list
graphneigh

Graph based spatial weights
nb2WB

Output spatial weights for WinBUGS
ssw

Compute the sum of dissimilarity
nb2blocknb

Block up neighbour list for location-less observations
read.gwt2nb

Read and write spatial neighbour files
sp.correlogram

Spatial correlogram
plot.nb

Plot a neighbours list
lee.mc

Permutation test for Lee's L statistic
plot.skater

Plot the object of skater class
write.nb.gal

Write a neighbours list as a GAL lattice file
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
summary.nb

Print and summary function for neighbours and weights lists
is.symmetric.nb

Test a neighbours list for symmetry
joincount.test

BB join count statistic for k-coloured factors
moran.mc

Permutation test for Moran's I statistic
moran

Compute Moran's I
knearneigh

K nearest neighbours for spatial weights
nb2lines

Use vector files for import and export of weights
nb2listw

Spatial weights for neighbours lists
tolerance.nb

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

Higher order neighbours lists
nb.set.operations

Set operations on neighborhood objects
Rotation

Rotate a set of point by a certain angle
tri2nb

Neighbours list from tri object
subset.nb

Subset a neighbours list
set.mcOption

Options for parallel support
subset.listw

Subset a spatial weights list
aggregate.nb

Aggregate a spatial neighbours object
oldcol

Columbus OH spatial analysis data set - old numbering
autocov_dist

Distance-weighted autocovariate
LOSH.mc

Bootstrapping-based test for local spatial heteroscedasticity
EBest

Global Empirical Bayes estimator
airdist

Measure distance from plot
EBImoran.mc

Permutation test for empirical Bayes index
LOSH

Local spatial heteroscedasticity
EBlocal

Local Empirical Bayes estimator