Learn R Programming

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

spdep (version 0.8-1)

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 and error models, impact measures for lag 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

36,884

Version

0.8-1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

November 21st, 2018

Functions in spdep (0.8-1)

aple.mc

Approximate profile-likelihood estimator (APLE) permutation test
aple.plot

Approximate profile-likelihood estimator (APLE) scatterplot
ME

Moran eigenvector GLM filtering
SpatialFiltering

Semi-parametric spatial filtering
diffnb

Differences between neighbours lists
joincount.test

BB join count statistic for k-coloured factors
eigenw

Spatial weights matrix eigenvalues
Graph Components

Depth First Search on Neighbor Lists
knearneigh

K nearest neighbours for spatial weights
eire

Eire data sets
as_dgRMatrix_listw

Interface between Matrix class objects and weights lists
autocov_dist

Distance-weighted autocovariate
EBlocal

Local Empirical Bayes estimator
choynowski

Choynowski probability map values
columbus

Columbus OH spatial analysis data set
anova.sarlm

Comparison of simultaneous autoregressive models
lm.morantest.exact

Exact global Moran's I test
moran.test

Moran's I test for spatial autocorrelation
moran.plot

Moran scatterplot
lm.morantest

Moran's I test for residual spatial autocorrelation
aple

Approximate profile-likelihood estimator (APLE)
globalG.test

Global G test for spatial autocorrelation
bhicv

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

Breusch-Pagan test for spatial models
geary.mc

Permutation test for Geary's C statistic
dnearneigh

Neighbourhood contiguity by distance
do_ldet

Spatial regression model Jacobian computations
droplinks

Drop links in a neighbours list
nb2mat

Spatial weights matrices for neighbours lists
edit.nb

Interactive editing of neighbours lists
aggregate.nb

Aggregate a spatial neighbours object
airdist

Measure distance from plot
knn2nb

Neighbours list from knn object
lag.listw

Spatial lag of a numeric vector
geary.test

Geary's C test for spatial autocorrelation
lee.test

Lee's L test for spatial autocorrelation
graphneigh

Graph based spatial weights
gstsls

Spatial simultaneous autoregressive SAC model estimation by GMM
include.self

Include self in neighbours list
impacts

Impacts in spatial lag models
invIrM

Compute SAR generating operator
nbcosts

Compute cost of edges
plot.skater

Plot the object of skater class
set.spChkOption

Control checking of spatial object IDs
poly2nb

Construct neighbours list from polygon list
similar.listw

Create symmetric similar weights lists
lagmess

Matrix exponential spatial lag model
lextrB

Find extreme eigenvalues of binary symmetric spatial weights
lagsarlm

Spatial simultaneous autoregressive lag model estimation
ssw

Compute the sum of dissimilarity
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
localmoran

Local Moran's I statistic
localmoran.exact

Exact local Moran's Ii tests
localG

G and Gstar local spatial statistics
nb2lines

Use arc-type shapefiles for import and export of weights
nb2listw

Spatial weights for neighbours lists
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
stsls

Generalized spatial two stage least squares
probmap

Probability mapping for rates
is.symmetric.nb

Test a neighbours list for symmetry
nb2WB

Output spatial weights for WinBUGS
listw2sn

Spatial neighbour sparse representation
nb2blocknb

Block up neighbour list for location-less observations
cell2nb

Generate neighbours list for grid cells
card

Cardinalities for neighbours lists
errorsarlm

Spatial simultaneous autoregressive error model estimation
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
moran

Compute Moran's I
tolerance.nb

Function to construct edges based on a tolerance angle and a maximum distance
moran.mc

Permutation test for Moran's I statistic
nbdists

Spatial link distance measures
read.gal

Read a GAL lattice file into a neighbours list
nblag

Higher order neighbours lists
geary

Compute Geary's C
nb.set.operations

Set operations on neighborhood objects
prunecost

Compute cost of prune each edge
p.adjustSP

Adjust local association measures' p-values
read.gwt2nb

Read and write spatial neighbour files
skater

Spatial 'K'luster Analysis by Tree Edge Removal
prunemst

Prune a Minimun Spanning Tree
summary.nb

Print and summary function for neighbours and weights lists
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
summary.sarlm

summary method for class sarlm
sp.correlogram

Spatial correlogram
Rotation

Rotate a set of point by a certain angle
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
spautolm

Spatial conditional and simultaneous autoregression model estimation
subset.listw

Subset a spatial weights list
joincount.mc

Permutation test for same colour join count statistics
joincount.multi

BB, BW and Jtot join count statistic for k-coloured factors
write.nb.gal

Write a neighbours list as a GAL lattice file
lee

Compute Lee's statistic
subset.nb

Subset a neighbours list
trW

Spatial weights matrix powers traces
lee.mc

Permutation test for Lee's L statistic
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
mat2listw

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

Neighbours list from tri object
mstree

Find the minimal spanning tree
nb2INLA

Output spatial neighbours for INLA
plot.mst

Plot the Minimum Spanning Tree
plot.nb

Plot a neighbours list
sacsarlm

Spatial simultaneous autoregressive SAC model estimation
set.mcOption

Options for parallel support
spdep

Return package version number
spweights.constants

Provides constants for spatial weights matrices
EBest

Global Empirical Bayes estimator
LR.sarlm

Likelihood ratio test
MCMCsamp

MCMC sample from fitted spatial regression
oldcol

Columbus OH spatial analysis data set - old numbering
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
LOSH

Local spatial heteroscedasticity
GMerrorsar

Spatial simultaneous autoregressive error model estimation by GMM