Learn R Programming

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

spdep (version 1.1-13)

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) . 'spdep' >= 1.1-1 corresponds to 'spatialreg' >= 1.1-1, in which the model fitting functions are deprecated and pass through to 'spatialreg', but will mask those in 'spatialreg'. From versions 1.2-1, the functions will be made defunct in 'spdep'. For now 'spatialreg' only has functions from 'spdep', where they are shown as deprecated. 'spatialreg' only loads the namespace of 'spdep'; if you attach 'spdep', the same functions in the other package will be masked. Some feed through adequately, others do not.

Copy Link

Version

Install

install.packages('spdep')

Monthly Downloads

36,884

Version

1.1-13

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

December 14th, 2021

Functions in spdep (1.1-13)

EBest

Global Empirical Bayes estimator
oldcol

Columbus OH spatial analysis data set - old numbering
choynowski

Choynowski probability map values
EBlocal

Local Empirical Bayes estimator
joincount.test

BB join count statistic for k-coloured factors
columbus

Columbus OH spatial analysis data set
geary.test

Geary's C test for spatial autocorrelation
knearneigh

K nearest neighbours for spatial weights
globalG.test

Global G test for spatial autocorrelation
LOSH

Local spatial heteroscedasticity
localC

Compute Local Geary statistic
geary

Compute Geary's C
bhicv

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

Distance-weighted autocovariate
geary.mc

Permutation test for Geary's C statistic
aple.plot

Approximate profile-likelihood estimator (APLE) scatterplot
aple.mc

Approximate profile-likelihood estimator (APLE) permutation test
localG

G and Gstar local spatial statistics
LOSH.cs

Chi-square based test for local spatial heteroscedasticity
nb2WB

Output spatial weights for WinBUGS
grid2nb

Construct neighbours for a GridTopology
graphneigh

Graph based spatial weights
lee.mc

Permutation test for Lee's L statistic
lee

Compute Lee's statistic
nb2blocknb

Block up neighbour list for location-less observations
poly2nb

Construct neighbours list from polygon list
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
lm.morantest.exact

Exact global Moran's I test
cell2nb

Generate neighbours list for grid cells
probmap

Probability mapping for rates
nb2INLA

Output spatial neighbours for INLA
nb2lines

Use vector files for import and export of weights
nb2listw

Spatial weights for neighbours lists
prunecost

Compute cost of prune each edge
mstree

Find the minimal spanning tree
prunemst

Prune a Minimun Spanning Tree
joincount.mc

Permutation test for same colour join count statistics
sp.correlogram

Spatial correlogram
joincount.multi

BB, BW and Jtot join count statistic for k-coloured factors
Graph Components

Depth First Search on Neighbor Lists
diffnb

Differences between neighbours lists
EBImoran.mc

Permutation test for empirical Bayes index
set.spChkOption

Control checking of spatial object IDs
lm.LMtests

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

Moran's I test for residual spatial autocorrelation
skater

Spatial 'K'luster Analysis by Tree Edge Removal
tolerance.nb

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

Neighbourhood contiguity by distance
tri2nb

Neighbours list from tri object
nblag

Higher order neighbours lists
nb.set.operations

Set operations on neighborhood objects
lee.test

Lee's L test for spatial autocorrelation
moran.plot

Moran scatterplot
listw2sn

Spatial neighbour sparse representation
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
moran.test

Moran's I test for spatial autocorrelation
plot.nb

Plot a neighbours list
plot.skater

Plot the object of skater class
nbcosts

Compute cost of edges
Rotation

Rotate a set of point by a certain angle
nbdists

Spatial link distance measures
summary.nb

Print and summary function for neighbours and weights lists
spdep

Return package version number
spdep-deprecated

Deprecated Functions in Package spdep
is.symmetric.nb

Test a neighbours list for symmetry
write.nb.gal

Write a neighbours list as a GAL lattice file
set.mcOption

Options for parallel support
include.self

Include self in neighbours list
invIrM

Compute SAR generating operator
droplinks

Drop links in a neighbours list
moran

Compute Moran's I
nb2listwdist

Distance-based spatial weights for neighbours lists
moran.mc

Permutation test for Moran's I statistic
airdist

Measure distance from plot
nb2mat

Spatial weights matrices for neighbours lists
spweights.constants

Provides constants for spatial weights matrices
edit.nb

Interactive editing of neighbours lists
eire

Eire data sets
aple

Approximate profile-likelihood estimator (APLE)
knn2nb

Neighbours list from knn object
ssw

Compute the sum of dissimilarity
lag.listw

Spatial lag of a numeric vector
localmoran

Local Moran's I statistic
mat2listw

Convert a square spatial weights matrix to a weights list object
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
localmoran.exact

Exact local Moran's Ii tests
subset.listw

Subset a spatial weights list
subset.nb

Subset a neighbours list
p.adjustSP

Adjust local association measures' p-values
plot.mst

Plot the Minimum Spanning Tree
read.gal

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

Read and write spatial neighbour files
LOSH.mc

Bootstrapping-based test for local spatial heteroscedasticity
aggregate.nb

Aggregate a spatial neighbours object
card

Cardinalities for neighbours lists