Learn R Programming

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

spdep (version 1.2-2)

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) . 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-2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Roger Bivand

Last Published

January 28th, 2022

Functions in spdep (1.2-2)

bhicv

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

Drop links in a neighbours list
EBImoran.mc

Permutation test for empirical Bayes index
localmoran

Local Moran's I statistic
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
edit.nb

Interactive editing of neighbours lists
lm.morantest

Moran's I test for residual spatial autocorrelation
joincount.multi

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

BB join count statistic for k-coloured factors
knearneigh

K nearest neighbours for spatial weights
columbus

Columbus OH spatial analysis data set
joincount.mc

Permutation test for same colour join count statistics
localC

Compute Local Geary statistic
nb2lines

Use vector files for import and export of weights
nb2listw

Spatial weights for neighbours lists
plot.nb

Plot a neighbours list
LOSH.mc

Bootstrapping-based test for local spatial heteroscedasticity
localG

G and Gstar local spatial statistics
Graph Components

Depth First Search on Neighbor Lists
plot.skater

Plot the object of skater class
aggregate.nb

Aggregate a spatial neighbours object
card

Cardinalities for neighbours lists
LOSH.cs

Chi-square based test for local spatial heteroscedasticity
nblag

Higher order neighbours lists
localmoran.exact

Exact local Moran's Ii tests
nb2mat

Spatial weights matrices for neighbours lists
nb.set.operations

Set operations on neighborhood objects
nb2listwdist

Distance-based spatial weights for neighbours lists
cell2nb

Generate neighbours list for grid cells
globalG.test

Global G test for spatial autocorrelation
skater

Spatial 'K'luster Analysis by Tree Edge Removal
set.spChkOption

Control checking of spatial object IDs
is.symmetric.nb

Test a neighbours list for symmetry
summary.nb

Print and summary function for neighbours and weights lists
prunecost

Compute cost of prune each edge
prunemst

Prune a Minimun Spanning Tree
listw2sn

Spatial neighbour sparse representation
grid2nb

Construct neighbours for a GridTopology
include.self

Include self in neighbours list
lee.test

Lee's L test for spatial autocorrelation
choynowski

Choynowski probability map values
geary.mc

Permutation test for Geary's C statistic
read.gal

Read a GAL lattice file into a neighbours list
read.gwt2nb

Read and write spatial neighbour files
graphneigh

Graph based spatial weights
tolerance.nb

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

Neighbours list from tri object
geary.test

Geary's C test for spatial autocorrelation
lm.morantest.exact

Exact global Moran's I test
lee

Compute Lee's statistic
lee.mc

Permutation test for Lee's L statistic
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
eire

Eire data sets
knn2nb

Neighbours list from knn object
geary

Compute Geary's C
lag.listw

Spatial lag of a numeric vector
nb2WB

Output spatial weights for WinBUGS
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
p.adjustSP

Adjust local association measures' p-values
moran

Compute Moran's I
nb2blocknb

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

Plot the Minimum Spanning Tree
moran.mc

Permutation test for Moran's I statistic
sp.correlogram

Spatial correlogram
moran.test

Moran's I test for spatial autocorrelation
moran.plot

Moran scatterplot
nbcosts

Compute cost of edges
mat2listw

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

Spatial link distance measures
mstree

Find the minimal spanning tree
spdep-defunct

Defunct Functions in Package spdep
spdep

Return package version number
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
nb2INLA

Output spatial neighbours for INLA
probmap

Probability mapping for rates
poly2nb

Construct neighbours list from polygon list
Rotation

Rotate a set of point by a certain angle
spweights.constants

Provides constants for spatial weights matrices
subset.listw

Subset a spatial weights list
set.mcOption

Options for parallel support
write.nb.gal

Write a neighbours list as a GAL lattice file
ssw

Compute the sum of dissimilarity
subset.nb

Subset a neighbours list
oldcol

Columbus OH spatial analysis data set - old numbering
airdist

Measure distance from plot
autocov_dist

Distance-weighted autocovariate
LOSH

Local spatial heteroscedasticity
EBest

Global Empirical Bayes estimator
dnearneigh

Neighbourhood contiguity by distance
diffnb

Differences between neighbours lists
EBlocal

Local Empirical Bayes estimator