Learn R Programming

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

spdep (version 1.2-3)

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 'Assuno/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,220

Version

1.2-3

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Roger Bivand

Last Published

March 29th, 2022

Functions in spdep (1.2-3)

EBImoran.mc

Permutation test for empirical Bayes index
LOSH.mc

Bootstrapping-based test for local spatial heteroscedasticity
LOSH.cs

Chi-square based test for local spatial heteroscedasticity
autocov_dist

Distance-weighted autocovariate
EBest

Global Empirical Bayes estimator
LOSH

Local spatial heteroscedasticity
airdist

Measure distance from plot
aggregate.nb

Aggregate a spatial neighbours object
oldcol

Columbus OH spatial analysis data set - old numbering
columbus

Columbus OH spatial analysis data set
EBlocal

Local Empirical Bayes estimator
cell2nb

Generate neighbours list for grid cells
card

Cardinalities for neighbours lists
edit.nb

Interactive editing of neighbours lists
droplinks

Drop links in a neighbours list
joincount.mc

Permutation test for same colour join count statistics
joincount.multi

BB, BW and Jtot join count statistic for k-coloured factors
geary.mc

Permutation test for Geary's C statistic
joincount.test

BB join count statistic for k-coloured factors
bhicv

Data set with 4 life condition indices of Belo Horizonte region
geary.test

Geary's C test for spatial autocorrelation
knearneigh

K nearest neighbours for spatial weights
diffnb

Differences between neighbours lists
Graph Components

Depth First Search on Neighbor Lists
geary

Compute Geary's C
moran.test

Moran's I test for spatial autocorrelation
eire

Eire data sets
choynowski

Choynowski probability map values
include.self

Include self in neighbours list
grid2nb

Construct neighbours for a GridTopology
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
lm.morantest

Moran's I test for residual spatial autocorrelation
moran.plot

Moran scatterplot
knn2nb

Neighbours list from knn object
plot.nb

Plot a neighbours list
localG

G and Gstar local spatial statistics
lee.test

Lee's L test for spatial autocorrelation
localC

Compute Local Geary statistic
moran

Compute Moran's I
listw2sn

Spatial neighbour sparse representation
nb2mat

Spatial weights matrices for neighbours lists
read.gal

Read a GAL lattice file into a neighbours list
nb2listwdist

Distance-based spatial weights for neighbours lists
subset.listw

Subset a spatial weights list
plot.skater

Plot the object of skater class
nbcosts

Compute cost of edges
subset.nb

Subset a neighbours list
nbdists

Spatial link distance measures
moran.mc

Permutation test for Moran's I statistic
dnearneigh

Neighbourhood contiguity by distance
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
nb2INLA

Output spatial neighbours for INLA
mstree

Find the minimal spanning tree
lm.morantest.exact

Exact global Moran's I test
set.spChkOption

Control checking of spatial object IDs
nblag

Higher order neighbours lists
lag.listw

Spatial lag of a numeric vector
mat2listw

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

Return package version number
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
globalG.test

Global G test for spatial autocorrelation
read.gwt2nb

Read and write spatial neighbour files
tri2nb

Neighbours list from tri object
graphneigh

Graph based spatial weights
lee

Compute Lee's statistic
localmoran

Local Moran's I statistic
poly2nb

Construct neighbours list from polygon list
ssw

Compute the sum of dissimilarity
lee.mc

Permutation test for Lee's L statistic
nb2listw

Spatial weights for neighbours lists
p.adjustSP

Adjust local association measures' p-values
Rotation

Rotate a set of point by a certain angle
nb2lines

Use vector files for import and export of weights
plot.mst

Plot the Minimum Spanning Tree
nb2blocknb

Block up neighbour list for location-less observations
tolerance.nb

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

Output spatial weights for WinBUGS
nb.set.operations

Set operations on neighborhood objects
localmoran.exact

Exact local Moran's Ii tests
probmap

Probability mapping for rates
set.mcOption

Options for parallel support
spdep-defunct

Defunct Functions in Package spdep
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
sp.correlogram

Spatial correlogram
spweights.constants

Provides constants for spatial weights matrices
prunemst

Prune a Minimun Spanning Tree
prunecost

Compute cost of prune each edge
write.nb.gal

Write a neighbours list as a GAL lattice file
summary.nb

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

Test a neighbours list for symmetry
skater

Spatial 'K'luster Analysis by Tree Edge Removal