50% off: Unlimited data and AI learning.
The Learning Leader's Guide to AI Literacy

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

spdep (version 1.0-2)

Spatial Dependence: Weighting Schemes, Statistics and Models

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', 'APLE', 'Gearys C', 'Hubert/Mantel' general cross product statistic, Empirical Bayes estimates and 'Assuno/Reis' Index, 'Getis/Ord' G and multicoloured join count statistics, local 'Moran's I' and 'Getis/Ord' G, 'saddlepoint' approximations, exact tests for global and local 'Moran's I' and 'LOSH' local indicators of spatial heteroscedasticity; and functions for estimating spatial simultaneous 'autoregressive' ('SAR') lag, error, general nested spatial and 'SARAR' models using maximum likelihood and 'MCMC', impact measures for lag, spatial 'Durbin', 'SLX', spatial 'Durbin' error, 'SARAR' and 'GNS' models, weighted and 'unweighted' 'SAR' and 'CAR' spatial regression models, semi-parametric and Moran 'eigenvector' spatial filtering, 'GM SAR' error models, and generalized spatial two stage least squares models.

Copy Link

Version

Install

install.packages('spdep')

Monthly Downloads

38,911

Version

1.0-2

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Roger Bivand

Last Published

February 13th, 2019

Functions in spdep (1.0-2)

LR.sarlm

Likelihood ratio test
MCMCsamp

MCMC sample from fitted spatial regression
aple.mc

Approximate profile-likelihood estimator (APLE) permutation test
EBest

Global Empirical Bayes estimator
aple.plot

Approximate profile-likelihood estimator (APLE) scatterplot
card

Cardinalities for neighbours lists
EBlocal

Local Empirical Bayes estimator
dnearneigh

Neighbourhood contiguity by distance
as_dgRMatrix_listw

Interface between Matrix class objects and weights lists
LOSH.cs

Chi-square based test for local spatial heteroscedasticity
cell2nb

Generate neighbours list for grid cells
LOSH.mc

Bootstrapping-based test for local spatial heteroscedasticity
do_ldet

Spatial regression model Jacobian computations
joincount.mc

Permutation test for same colour join count statistics
anova.sarlm

Comparison of simultaneous autoregressive models
aple

Approximate profile-likelihood estimator (APLE)
lextrB

Find extreme eigenvalues of binary symmetric spatial weights
diffnb

Differences between neighbours lists
Graph Components

Depth First Search on Neighbor Lists
listw2sn

Spatial neighbour sparse representation
invIrM

Compute SAR generating operator
geary.mc

Permutation test for Geary's C statistic
lagmess

Matrix exponential spatial lag model
lag.listw

Spatial lag of a numeric vector
geary.test

Geary's C test for spatial autocorrelation
localG

G and Gstar local spatial statistics
mstree

Find the minimal spanning tree
localmoran

Local Moran's I statistic
moran.test

Moran's I test for spatial autocorrelation
moran.mc

Permutation test for Moran's I statistic
GMerrorsar

Spatial simultaneous autoregressive error model estimation by GMM
prunecost

Compute cost of prune each edge
spdep

Return package version number
probmap

Probability mapping for rates
spautolm

Spatial conditional and simultaneous autoregression model estimation
moran.plot

Moran scatterplot
autocov_dist

Distance-weighted autocovariate
nb2blocknb

Block up neighbour list for location-less observations
eigenw

Spatial weights matrix eigenvalues
nb2lines

Use vector files for import and export of weights
nblag

Higher order neighbours lists
oldcol

Columbus OH spatial analysis data set - old numbering
eire

Eire data sets
LOSH

Local spatial heteroscedasticity
choynowski

Choynowski probability map values
EBImoran.mc

Permutation test for empirical Bayes index
impacts

Impacts in spatial lag models
summary.sarlm

summary method for class sarlm
is.symmetric.nb

Test a neighbours list for symmetry
nb.set.operations

Set operations on neighborhood objects
similar.listw

Create symmetric similar weights lists
ME

Moran eigenvector GLM filtering
SpatialFiltering

Semi-parametric spatial filtering
droplinks

Drop links in a neighbours list
include.self

Include self in neighbours list
columbus

Columbus OH spatial analysis data set
aggregate.nb

Aggregate a spatial neighbours object
lagsarlm

Spatial simultaneous autoregressive lag model estimation
edit.nb

Interactive editing of neighbours lists
skater

Spatial 'K'luster Analysis by Tree Edge Removal
knearneigh

K nearest neighbours for spatial weights
errorsarlm

Spatial simultaneous autoregressive error model estimation
lee

Compute Lee's statistic
localmoran.exact

Exact local Moran's Ii tests
subset.nb

Subset a neighbours list
summary.nb

Print and summary function for neighbours and weights lists
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
geary

Compute Geary's C
grid2nb

Construct neighbours for a GridTopology
poly2nb

Construct neighbours list from polygon list
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
knn2nb

Neighbours list from knn object
set.mcOption

Options for parallel support
airdist

Measure distance from plot
gstsls

Spatial simultaneous autoregressive SAC model estimation by GMM
set.spChkOption

Control checking of spatial object IDs
stsls

Generalized spatial two stage least squares
lm.LMtests

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

Moran's I test for residual spatial autocorrelation
bhicv

Data set with 4 life condition indices of Belo Horizonte region
bptest.sarlm

Breusch-Pagan test for spatial models
nbcosts

Compute cost of edges
lee.test

Lee's L test for spatial autocorrelation
lee.mc

Permutation test for Lee's L statistic
nbdists

Spatial link distance measures
mat2listw

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

Compute Moran's I
plot.nb

Plot a neighbours list
subset.listw

Subset a spatial weights list
nb2listw

Spatial weights for neighbours lists
globalG.test

Global G test for spatial autocorrelation
plot.skater

Plot the object of skater class
read.gwt2nb

Read and write spatial neighbour files
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
sp.correlogram

Spatial correlogram
graphneigh

Graph based spatial weights
joincount.multi

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

BB join count statistic for k-coloured factors
nb2mat

Spatial weights matrices for neighbours lists
lm.morantest.exact

Exact global Moran's I test
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
nb2INLA

Output spatial neighbours for INLA
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
nb2WB

Output spatial weights for WinBUGS
p.adjustSP

Adjust local association measures' p-values
plot.mst

Plot the Minimum Spanning Tree
Rotation

Rotate a set of point by a certain angle
sacsarlm

Spatial simultaneous autoregressive SAC model estimation
tolerance.nb

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

Spatial weights matrix powers traces
prunemst

Prune a Minimun Spanning Tree
read.gal

Read a GAL lattice file into a neighbours list
spweights.constants

Provides constants for spatial weights matrices
ssw

Compute the sum of dissimilarity
tri2nb

Neighbours list from tri object
write.nb.gal

Write a neighbours list as a GAL lattice file