spdep v0.6-9


Monthly downloads



by Roger Bivand

Spatial Dependence: Weighting Schemes, Statistics and Models

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.

Functions in spdep

Name Description
autocov_dist Distance-weighted autocovariate
aple.mc Approximate profile-likelihood estimator (APLE) permutation test
aple.plot Approximate profile-likelihood estimator (APLE) scatterplot
aple Approximate profile-likelihood estimator (APLE)
auckland Marshall's infant mortality in Auckland dataset
as_dgRMatrix_listw Interface between Matrix class objects and weights lists
airdist Measure distance from plot
anova.sarlm Comparison of simultaneous autoregressive models
boston Corrected Boston Housing Data
columbus Columbus OH spatial analysis data set
Graph Components Depth First Search on Neighbor Lists
bhicv Data set with 4 life condition indices of Belo Horizonte region
baltimore House sales prices, Baltimore, MD 1978
card Cardinalities for neighbours lists
cell2nb Generate neighbours list for grid cells
oldcol Columbus OH spatial analysis data set - old numbering
choynowski Choynowski probability map values
GMerrorsar Spatial simultaneous autoregressive error model estimation by GMM
globalG.test Global G test for spatial autocorrelation
lag.listw Spatial lag of a numeric vector
lagmess Matrix exponential spatial lag model
geary.test Geary's C test for spatial autocorrelation
dnearneigh Neighbourhood contiguity by distance
diffnb Differences between neighbours lists
joincount.multi BB, BW and Jtot join count statistic for k-coloured factors
getisord Getis-Ord remote sensing example data
joincount.test BB join count statistic for k-coloured factors
lee Compute Lee's statistic
lagsarlm Spatial simultaneous autoregressive lag model estimation
localG G and Gstar local spatial statistics
localmoran.exact Exact local Moran's Ii tests
EBlocal Local Empirical Bayes estimator
moran.test Moran's I test for spatial autocorrelation
edit.nb Interactive editing of neighbours lists
mstree Find the minimal spanning tree
hopkins Hopkins burnt savanna herb remains
lee.test Lee's L test for spatial autocorrelation
house Lucas county OH housing
lee.mc Permutation test for Lee's L statistic
plot.nb Plot a neighbours list
plot.skater Plot the object of skater class
prunecost Compute cost of prune each edge
probmap Probability mapping for rates
skater Spatial 'K'luster Analysis by Tree Edge Removal
similar.listw Create symmetric similar weights lists
localmoran.sad Saddlepoint approximation of local Moran's Ii tests
LR.sarlm Likelihood ratio test
nblag Higher order neighbours lists
nb2mat Spatial weights matrices for neighbours lists
nb2WB Output spatial weights for WinBUGS
aggregate.nb Aggregate a spatial neighbours object
nb.set.operations Set operations on neighborhood objects
afcon Spatial patterns of conflict in Africa 1966-78
droplinks Drop links in a neighbours list
do_ldet Spatial regression model Jacobian computations
errorsarlm Spatial simultaneous autoregressive error model estimation
geary.mc Permutation test for Geary's C statistic
knearneigh K nearest neighbours for spatial weights
lm.morantest Moran's I test for residual spatial autocorrelation
lm.morantest.sad Saddlepoint approximation of global Moran's I test
MCMCsamp MCMC sample from fitted spatial regression
mat2listw Convert a square spatial weights matrix to a weights list object
nb2lines Use arc-type shapefiles for import and export of weights
nb2listw Spatial weights for neighbours lists
nc.sids North Carolina SIDS data
summary.nb Print and summary function for neighbours and weights lists
bptest.sarlm Breusch-Pagan test for spatial models
summary.sarlm summary method for class sarlm
EBest Global Empirical Bayes estimator
EBImoran.mc Permutation test for empirical Bayes index
huddersfield Prevalence of respiratory symptoms
lextrB Find extreme eigenvalues of binary symmetric spatial weights
impacts Impacts in spatial lag models
moran.mc Permutation test for Moran's I statistic
listw2sn Spatial neighbour sparse representation
NY_data New York leukemia data
spweights.constants Provides constants for spatial weights matrices
spdep Return package version number
Rotation Rotate a set of point by a certain angle
sacsarlm Spatial simultaneous autoregressive SAC model estimation
write.nb.gal Write a neighbours list as a GAL lattice file
elect80 1980 Presidential election results
eire Eire data sets
graphneigh Graph based spatial weights
gstsls Spatial simultaneous autoregressive SAC model estimation by GMM
include.self Include self in neighbours list
knn2nb Neighbours list from knn object
joincount.mc Permutation test for same colour join count statistics
lm.LMtests Lagrange Multiplier diagnostics for spatial dependence in linear models
lm.morantest.exact Exact global Moran's I test
ME Moran eigenvector GLM filtering
moran Compute Moran's I
nbcosts Compute cost of edges
poly2nb Construct neighbours list from polygon list
set.mcOption Options for parallel support
nbdists Spatial link distance measures
set.spChkOption Control checking of spatial object IDs
ssw Compute the sum of dissimilarity
stsls Generalized spatial two stage least squares
is.symmetric.nb Test a neighbours list for symmetry
prunemst Prune a Minimun Spanning Tree
read.gal Read a GAL lattice file into a neighbours list
subset.listw Subset a spatial weights list
sp.mantel.mc Mantel-Hubert spatial general cross product statistic
sp.correlogram Spatial correlogram
subset.nb Subset a neighbours list
tolerance.nb Function to construct edges based on a tolerance angle and a maximum distance
tri2nb Neighbours list from tri object
predict.sarlm Prediction for spatial simultaneous autoregressive linear model objects
trW Spatial weights matrix powers traces
moran.plot Moran scatterplot
nb2blocknb Block up neighbour list for location-less observations
nb2INLA Output spatial neighbours for INLA
plot.mst Plot the Minimum Spanning Tree
p.adjustSP Adjust local association measures' p-values
SpatialFiltering Semi-parametric spatial filtering
residuals.sarlm Access functions for spatial simultaneous autoregressive linear model objects
read.gwt2nb Read and write spatial neighbour files
spautolm Spatial conditional and simultaneous autoregression model estimation
used.cars US 1960 used car prices
wheat Mercer and Hall wheat yield data
No Results!

Last month downloads


Include our badge in your README