Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


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

spdep (version 0.5-82)

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 Moran's I, APLE, Geary's C, Hubert/Mantel general cross product statistic, Empirical Bayes estimates and Assunção/Reis Index, Getis/Ord G and multicoloured join count statistics, local Moran's I and Getis/Ord G, saddlepoint approximations and exact tests for global and local Moran's I; 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

41,428

Version

0.5-82

License

GPL (>= 2)

Maintainer

Last Published

January 7th, 2015

Functions in spdep (0.5-82)

lag.listw

Spatial lag of a numeric vector
listw2sn

Spatial neighbour sparse representation
ME

Moran eigenvector GLM filtering
knearneigh

K nearest neighbours for spatial weights
nb2lines

Use arc-type shapefiles for import and export of weights
write.nb.gal

Write a neighbours list as a GAL lattice file
SpatialFiltering

Semi-parametric spatial filtering
aple.plot

Approximate profile-likelihood estimator (APLE) scatterplot
is.symmetric.nb

Test a neighbours list for symmetry
airdist

Measure distance from plot
dnearneigh

Neighbourhood contiguity by distance
gstsls

Spatial simultaneous autoregressive SAC model estimation by GMM
GMerrorsar

Spatial simultaneous autoregressive error model estimation by GMM
hopkins

Hopkins burnt savanna herb remains
columbus

Columbus OH spatial analysis data set
joincount.mc

Permutation test for same colour join count statistics
errorsarlm

Spatial simultaneous autoregressive error model estimation
Rotation

Rotate a set of point by a certain angle
diffnb

Differences between neighbours lists
geary.test

Geary's C test for spatial autocorrelation
similar.listw

Create symmetric similar weights lists
moran

Compute Moran's I
mstree

Find the minimal spanning tree
aggregate.nb

Aggregate a spatial neighbours object
predict.sarlm

Prediction for spatial simultaneous autoregressive linear model objects
autocov_dist

Distance-weighted autocovariate
set.spChkOption

Control checking of spatial object IDs
summary.sarlm

summary method for class sarlm
nbdists

Spatial link distance measures
set.mcOption

Options for parallel support
getisord

Getis-Ord remote sensing example data
NY_data

New York leukemia data
EBImoran.mc

Permutation test for empirical Bayes index
stsls

Generalized spatial two stage least squares
edit.nb

Interactive editing of neighbours lists
eigenw

Spatial weights matrix eigenvalues
auckland

Marshall's infant mortality in Auckland dataset
spautolm

Spatial conditional and simultaneous autoregression model estimation
eire

Eire data sets
elect80

1980 Presidential election results
baltimore

House sales prices, Baltimore, MD 1978
nc.sids

North Carolina SIDS data
lm.morantest.exact

Exact global Moran's I test
joincount.test

BB join count statistic for k-coloured factors
joincount.multi

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

Spatial patterns of conflict in Africa 1966-78
include.self

Include self in neighbours list
aple.mc

Approximate profile-likelihood estimator (APLE) permutation test
prunecost

Compute cost of prune each edge
oldcol

Columbus OH spatial analysis data set - old numbering
sacsarlm

Spatial simultaneous autoregressive SAC model estimation
lee.test

Lee's L test for spatial autocorrelation
lee.mc

Permutation test for Lee's L statistic
lagmess

Matrix exponential spatial lag model
lm.LMtests

Lagrange Multiplier diagnostics for spatial dependence in linear models
residuals.sarlm

Access functions for spatial simultaneous autoregressive linear model objects
lm.morantest.sad

Saddlepoint approximation of global Moran's I test
moran.test

Moran's I test for spatial autocorrelation
localmoran.exact

Exact local Moran's Ii tests
subset.nb

Subset a neighbours list
nbcosts

Compute cost of edges
bptest.sarlm

Breusch-Pagan test for spatial models
card

Cardinalities for neighbours lists
spdep

Return package version number
subset.listw

Subset a spatial weights list
poly2nb

Construct neighbours list from polygon list
localG

G and Gstar local spatial statistics
EBest

Global Empirical Bayes estimator
impacts

Impacts in spatial lag models
sp.mantel.mc

Mantel-Hubert spatial general cross product statistic
tolerance.nb

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

Higher order neighbours lists
nb.set.operations

Set operations on neighborhood objects
p.adjustSP

Adjust local association measures' p-values
moran.mc

Permutation test for Moran's I statistic
EBlocal

Local Empirical Bayes estimator
bhicv

Data set with 4 life condition indices of Belo Horizonte region
Graph Components

Depth First Search on Neighbor Lists
sp.correlogram

Spatial correlogram
choynowski

Choynowski probability map values
aple

Approximate profile-likelihood estimator (APLE)
tri2nb

Neighbours list from tri object
lagsarlm

Spatial simultaneous autoregressive lag model estimation
plot.skater

Plot the object of skater class
huddersfield

Prevalence of respiratory symptoms
spweights.constants

Provides constants for spatial weights matrices
moran.plot

Moran scatterplot
graphneigh

Graph based spatial weights
read.gal

Read a GAL lattice file into a neighbours list
localmoran

Local Moran's I statistic
plot.mst

Plot the Minimum Spanning Tree
as_dgRMatrix_listw

Interface between Matrix class objects and weights lists
mat2listw

Convert a square spatial weights matrix to a weights list object
read.gwt2nb

Read and write spatial neighbour files
boston

Corrected Boston Housing Data
probmap

Probability mapping for rates
nb2mat

Spatial weights matrices for neighbours lists
skater

Spatial 'K'luster Analysis by Tree Edge Removal
lm.morantest

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

Plot a neighbours list
nb2listw

Spatial weights for neighbours lists
nb2blocknb

Block up neighbour list for location-less observations
wheat

Mercer and Hall wheat yield data
droplinks

Drop links in a neighbours list
nb2INLA

Output spatial neighbours for INLA
ssw

Compute the sum of dissimilarity
trW

Spatial weights matrix powers traces
used.cars

US 1960 used car prices
lee

Compute Lee's statistic
globalG.test

Global G test for spatial autocorrelation
cell2nb

Generate neighbours list for grid cells
anova.sarlm

Comparison of simultaneous autoregressive models
LR.sarlm

Likelihood ratio test
do_ldet

Spatial regression model Jacobian computations
house

Lucas county OH housing
invIrM

Compute SAR generating operator
MCMCsamp

MCMC sample from fitted spatial regression
geary

Compute Geary's C
geary.mc

Permutation test for Geary's C statistic
localmoran.sad

Saddlepoint approximation of local Moran's Ii tests
knn2nb

Neighbours list from knn object
nb2WB

Output spatial weights for WinBUGS
prunemst

Prune a Minimun Spanning Tree
summary.nb

Print and summary function for neighbours and weights lists