# Spatial Dependence: Weighting Schemes, Statistics

## Documentation for package ‘spdep’ version 1.4-2

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

A B C D E F G H I J K L M N O P R S T U V W

## -- A --

addlinks1 | Drop and add links in a neighbours list
aggregate.nb | Aggregate a spatial neighbours object
airdist | Measure distance from plot
anova.sarlm | Defunct Functions in Package 'spdep'
aple | Defunct Functions in Package 'spdep'
aple.mc | Defunct Functions in Package 'spdep'
aple.plot | Defunct Functions in Package 'spdep'
as.data.frame.localmoranex | Exact local Moran's Ii tests
as.data.frame.localmoransad | Saddlepoint approximation of local Moran's Ii tests
as.data.frame.sarlm.pred | Defunct Functions in Package 'spdep'
as.matrix.adjusted_spatial_weights | Weighted Multivariate Spatial Autocorrelation Measures
as.spam.listw | Defunct Functions in Package 'spdep'
as_dgRMatrix_listw | Defunct Functions in Package 'spdep'
as_dsCMatrix_I | Defunct Functions in Package 'spdep'
as_dsCMatrix_IrW | Defunct Functions in Package 'spdep'
as_dsTMatrix_listw | Defunct Functions in Package 'spdep'
autocov_dist | Distance-weighted autocovariate

## -- B --

bbs | Columbus OH spatial analysis data set
bhicv | Data set with 4 life condition indices of Belo Horizonte region
bptest.sarlm | Defunct Functions in Package 'spdep'

## -- C --

can.be.simmed | Defunct Functions in Package 'spdep'
card | Cardinalities for neighbours lists
cell2nb | Generate neighbours list for grid cells
cheb_setup | Defunct Functions in Package 'spdep'
chkIDs | Control checking of spatial object IDs
choynowski | Choynowski probability map values
coef.gmsar | Defunct Functions in Package 'spdep'
coef.lagmess | Defunct Functions in Package 'spdep'
coef.sarlm | Defunct Functions in Package 'spdep'
coef.spautolm | Defunct Functions in Package 'spdep'
coef.stsls | Defunct Functions in Package 'spdep'
coerce-method | Defunct Functions in Package 'spdep'
col.gal.nb | Columbus OH spatial analysis data set
COL.nb | Columbus OH spatial analysis data set - old numbering
COL.OLD | Columbus OH spatial analysis data set - old numbering
columbus | Columbus OH spatial analysis data set
complement.nb | Set operations on neighborhood objects
coords | Columbus OH spatial analysis data set
cornish_fisher | Weighted Multivariate Spatial Autocorrelation Measures
cornish_fisher.default | Weighted Multivariate Spatial Autocorrelation Measures
cornish_fisher.spatialdelta | Weighted Multivariate Spatial Autocorrelation Measures
create_WX | Defunct Functions in Package 'spdep'

## -- D --

deviance.gmsar | Defunct Functions in Package 'spdep'
deviance.lagmess | Defunct Functions in Package 'spdep'
deviance.sarlm | Defunct Functions in Package 'spdep'
deviance.spautolm | Defunct Functions in Package 'spdep'
deviance.stsls | Defunct Functions in Package 'spdep'
df2sn | Use vector files for import and export of weights
diffnb | Differences between neighbours lists
dnearneigh | Neighbourhood contiguity by distance
do_ldet | Defunct Functions in Package 'spdep'
droplinks | Drop and add links in a neighbours list

## -- E --

EBest | Global Empirical Bayes estimator
EBImoran | Permutation test for empirical Bayes index
EBImoran.mc | Permutation test for empirical Bayes index
EBlocal | Local Empirical Bayes estimator
edit.nb | Interactive editing of neighbours lists
eigenw | Defunct Functions in Package 'spdep'
eigen_pre_setup | Defunct Functions in Package 'spdep'
eigen_setup | Defunct Functions in Package 'spdep'
eire | Eire data sets
eire.coords.utm | Eire data sets
eire.df | Eire data sets
eire.nb | Eire data sets
eire.polys.utm | Eire data sets
errorsarlm | Defunct Functions in Package 'spdep'

## -- F --

factorial_coordinates | Weighted Multivariate Spatial Autocorrelation Measures
factorial_coordinates.default | Weighted Multivariate Spatial Autocorrelation Measures
factorial_coordinates.spatialdelta | Weighted Multivariate Spatial Autocorrelation Measures
fitted.gmsar | Defunct Functions in Package 'spdep'
fitted.lagmess | Defunct Functions in Package 'spdep'
fitted.ME_res | Defunct Functions in Package 'spdep'
fitted.sarlm | Defunct Functions in Package 'spdep'
fitted.SFResult | Defunct Functions in Package 'spdep'
fitted.spautolm | Defunct Functions in Package 'spdep'

## -- G --

gabrielneigh | Graph based spatial weights
geary | Compute Geary's C
geary.mc | Permutation test for Geary's C statistic
geary.test | Geary's C test for spatial autocorrelation
get.ClusterOption | Options for parallel support
get.coresOption | Options for parallel support
get.listw_is_CsparseMatrix_Option | Control checking of spatial object IDs
get.mcOption | Options for parallel support
get.NoNeighbourOption | Control checking of spatial object IDs
get.spChkOption | Control checking of spatial object IDs
get.SubgraphCeiling | Control checking of spatial object IDs
get.SubgraphOption | Control checking of spatial object IDs
get.VerboseOption | Control checking of spatial object IDs
get.ZeroPolicyOption | Control checking of spatial object IDs
globalG.test | Global G test for spatial autocorrelation
GMargminImage | Defunct Functions in Package 'spdep'
GMerrorsar | Defunct Functions in Package 'spdep'
graph2nb | Graph based spatial weights
graph_distance_weights | Weighted Multivariate Spatial Autocorrelation Measures
grid2nb | Construct neighbours for a GridTopology
griffith_sone | Defunct Functions in Package 'spdep'
gstsls | Defunct Functions in Package 'spdep'

## -- H --

Hausman.test | Defunct Functions in Package 'spdep'
Hausman.test.gmsar | Defunct Functions in Package 'spdep'
Hausman.test.sarlm | Defunct Functions in Package 'spdep'
have_factor_preds_mf | Rao's score and adjusted Rao's score tests of linear hypotheses for spatial Durbin and spatial Durbin error models
hotspot | Cluster Classifications for Local Indicators of Spatial Association and Local Indicators for Categorical Data
hotspot.data.frame.localmoranex | Cluster Classifications for Local Indicators of Spatial Association and Local Indicators for Categorical Data
hotspot.default | Cluster Classifications for Local Indicators of Spatial Association and Local Indicators for Categorical Data
hotspot.licd | Cluster Classifications for Local Indicators of Spatial Association and Local Indicators for Categorical Data
hotspot.localC | Cluster Classifications for Local Indicators of Spatial Association and Local Indicators for Categorical Data
hotspot.localG | Cluster Classifications for Local Indicators of Spatial Association and Local Indicators for Categorical Data
hotspot.localmoran | Cluster Classifications for Local Indicators of Spatial Association and Local Indicators for Categorical Data
hotspot.local_jc_uni | Cluster Classifications for Local Indicators of Spatial Association and Local Indicators for Categorical Data
hotspot.summary.localmoransad | Cluster Classifications for Local Indicators of Spatial Association and Local Indicators for Categorical Data
HPDinterval.lagImpact | Defunct Functions in Package 'spdep'

## -- I --

impacts | Defunct Functions in Package 'spdep'
impacts.gmsar | Defunct Functions in Package 'spdep'
impacts.lagmess | Defunct Functions in Package 'spdep'
impacts.MCMC_sac_g | Defunct Functions in Package 'spdep'
impacts.MCMC_sar_g | Defunct Functions in Package 'spdep'
impacts.MCMC_sem_g | Defunct Functions in Package 'spdep'
impacts.sarlm | Defunct Functions in Package 'spdep'
impacts.SLX | Defunct Functions in Package 'spdep'
impacts.stsls | Defunct Functions in Package 'spdep'
include.self | Include self in neighbours list
intersect.nb | Set operations on neighborhood objects
intImpacts | Defunct Functions in Package 'spdep'
is.symmetric.glist | Test a neighbours list for symmetry
is.symmetric.nb | Test a neighbours list for symmetry
iterative_proportional_fitting_weights | Weighted Multivariate Spatial Autocorrelation Measures

## -- J --

jacobianSetup | Defunct Functions in Package 'spdep'
Jacobian_W | Defunct Functions in Package 'spdep'
joincount.mc | Permutation test for same colour join count statistics
joincount.multi | BB, BW and Jtot join count statistic for k-coloured factors
joincount.test | BB join count statistic for k-coloured factors

## -- K --

knearneigh | K nearest neighbours for spatial weights
knn2nb | Neighbours list from knn object

## -- L --

lag.listw | Spatial lag of a numeric vector
lagmess | Defunct Functions in Package 'spdep'
lagsarlm | Defunct Functions in Package 'spdep'
lee | Compute Lee's statistic
lee.mc | Permutation test for Lee's L statistic
lee.test | Lee's L test for spatial autocorrelation
lextrB | Defunct Functions in Package 'spdep'
lextrS | Defunct Functions in Package 'spdep'
lextrW | Defunct Functions in Package 'spdep'
licd_multi | Local Indicators for Categorical Data
linearised_diffusive_weights | Weighted Multivariate Spatial Autocorrelation Measures
listw2lines | Use vector files for import and export of weights
listw2mat | Spatial weights matrices for neighbours lists
listw2sn | Spatial neighbour sparse representation
listw2star | Saddlepoint approximation of local Moran's Ii tests
listw2U | Spatial weights for neighbours lists
listw2WB | Output spatial weights for WinBUGS
lm.LMtests | Rao's score (a.k.a Lagrange Multiplier) diagnostics for spatial dependence in linear models
lm.morantest | Moran's I test for residual spatial autocorrelation
lm.morantest.exact | Exact global Moran's I test
lm.morantest.sad | Saddlepoint approximation of global Moran's I test
lm.RStests | Rao's score (a.k.a Lagrange Multiplier) diagnostics for spatial dependence in linear models
lmSLX | Defunct Functions in Package 'spdep'
localAple | Defunct Functions in Package 'spdep'
localC | Compute Local Geary statistic
localC.data.frame | Compute Local Geary statistic
localC.default | Compute Local Geary statistic
localC.formula | Compute Local Geary statistic
localC.list | Compute Local Geary statistic
localC.matrix | Compute Local Geary statistic
localC_perm | Compute Local Geary statistic
localC_perm.default | Compute Local Geary statistic
localC_perm.formula | Compute Local Geary statistic
localdelta | Weighted Multivariate Spatial Autocorrelation Measures
localdelta.default | Weighted Multivariate Spatial Autocorrelation Measures
localdelta.spatialdelta | Weighted Multivariate Spatial Autocorrelation Measures
localG | G and Gstar local spatial statistics
localGS | A local hotspot statistic for analysing multiscale datasets
localG_perm | G and Gstar local spatial statistics
localmoran | Local Moran's I statistic
localmoran.exact | Exact local Moran's Ii tests
localmoran.exact.alt | Exact local Moran's Ii tests
localmoran.sad | Saddlepoint approximation of local Moran's Ii tests
localmoran_bv | Compute the Local Bivariate Moran's I Statistic
localmoran_perm | Local Moran's I statistic
local_joincount_bv | Calculate the local bivariate join count
local_joincount_uni | Calculate the local univariate join count
logLik.lagmess | Defunct Functions in Package 'spdep'
logLik.sarlm | Defunct Functions in Package 'spdep'
logLik.spautolm | Defunct Functions in Package 'spdep'
LOSH | Local spatial heteroscedasticity
LOSH.cs | Chi-square based test for local spatial heteroscedasticity
LOSH.mc | Bootstrapping-based test for local spatial heteroscedasticity
LR.sarlm | Defunct Functions in Package 'spdep'
LR1.sarlm | Defunct Functions in Package 'spdep'
LR1.spautolm | Defunct Functions in Package 'spdep'
LU_prepermutate_setup | Defunct Functions in Package 'spdep'
LU_setup | Defunct Functions in Package 'spdep'
l_max | Defunct Functions in Package 'spdep'

## -- M --

make.sym.nb | Test a neighbours list for symmetry
mat2listw | Convert a square spatial weights matrix to a weights list object
Matrix_J_setup | Defunct Functions in Package 'spdep'
Matrix_setup | Defunct Functions in Package 'spdep'
mcdet_setup | Defunct Functions in Package 'spdep'
MCMCsamp | Defunct Functions in Package 'spdep'
MCMCsamp.sarlm | Defunct Functions in Package 'spdep'
MCMCsamp.spautolm | Defunct Functions in Package 'spdep'
ME | Defunct Functions in Package 'spdep'
metropolis_hastings_weights | Weighted Multivariate Spatial Autocorrelation Measures
moments_setup | Defunct Functions in Package 'spdep'
mom_calc | Defunct Functions in Package 'spdep'
mom_calc_int2 | Defunct Functions in Package 'spdep'
moran | Compute Moran's I
moran.mc | Permutation test for Moran's I statistic
moran.plot | Moran scatterplot
moran.test | Moran's I test for spatial autocorrelation
moran_bv | Compute the Global Bivariate Moran's I
mstree | Find the minimal spanning tree

## -- N --

n.comp.nb | Depth First Search on Neighbor Lists
nb2blocknb | Block up neighbour list for location-less observations
nb2INLA | Output spatial neighbours for INLA
nb2lines | Use vector files for import and export of weights
nb2listw | Spatial weights for neighbours lists
nb2listwdist | Distance-based spatial weights for neighbours lists
nb2mat | Spatial weights matrices for neighbours lists
nb2WB | Output spatial weights for WinBUGS
nbcost | Compute cost of edges
nbcosts | Compute cost of edges
nbdists | Spatial link distance measures
nblag | Higher order neighbours lists
nblag_cumul | Higher order neighbours lists

## -- O --

old.make.sym.nb | Test a neighbours list for symmetry
oldcol | Columbus OH spatial analysis data set - old numbering

## -- P --

p.adjustSP | Adjust local association measures' p-values
plot.Gabriel | Graph based spatial weights
plot.lagImpact | Defunct Functions in Package 'spdep'
plot.listw | Plot a neighbours list
plot.mc.sim | Mantel-Hubert spatial general cross product statistic
plot.mst | Plot the Minimum Spanning Tree
plot.nb | Plot a neighbours list
plot.relative | Graph based spatial weights
plot.skater | Plot the object of skater class
plot.spcor | Spatial correlogram
plot_factorialcoords | Weighted Multivariate Spatial Autocorrelation Measures
plot_factorialcoords.default | Weighted Multivariate Spatial Autocorrelation Measures
plot_factorialcoords.spatialdelta | Weighted Multivariate Spatial Autocorrelation Measures
plot_factorialscree | Weighted Multivariate Spatial Autocorrelation Measures
plot_factorialscree.default | Weighted Multivariate Spatial Autocorrelation Measures
plot_factorialscree.spatialdelta | Weighted Multivariate Spatial Autocorrelation Measures
plot_moran | Weighted Multivariate Spatial Autocorrelation Measures
plot_moran.default | Weighted Multivariate Spatial Autocorrelation Measures
plot_moran.spatialdelta | Weighted Multivariate Spatial Autocorrelation Measures
plot_spatialcoords | Weighted Multivariate Spatial Autocorrelation Measures
plot_spatialcoords.default | Weighted Multivariate Spatial Autocorrelation Measures
plot_spatialcoords.spatialdelta | Weighted Multivariate Spatial Autocorrelation Measures
plot_spatialscree | Weighted Multivariate Spatial Autocorrelation Measures
plot_spatialscree.default | Weighted Multivariate Spatial Autocorrelation Measures
plot_spatialscree.spatialdelta | Weighted Multivariate Spatial Autocorrelation Measures
poly2nb | Construct neighbours list from polygon list
polys | Columbus OH spatial analysis data set
powerWeights | Defunct Functions in Package 'spdep'
predict.sarlm | Defunct Functions in Package 'spdep'
predict.SLX | Defunct Functions in Package 'spdep'
print.gmsar | Defunct Functions in Package 'spdep'
print.jclist | BB join count statistic for k-coloured factors
print.jcmulti | BB, BW and Jtot join count statistic for k-coloured factors
print.lagImpact | Defunct Functions in Package 'spdep'
print.lagmess | Defunct Functions in Package 'spdep'
print.listw | Print and summary function for neighbours and weights lists
print.localmoranex | Exact local Moran's Ii tests
print.localmoransad | Saddlepoint approximation of local Moran's Ii tests
print.ME_res | Defunct Functions in Package 'spdep'
print.moranex | Exact global Moran's I test
print.moransad | Saddlepoint approximation of global Moran's I test
print.nb | Print and summary function for neighbours and weights lists
print.RStestlist | Rao's score (a.k.a Lagrange Multiplier) diagnostics for spatial dependence in linear models
print.RStestlist.summary | Rao's score (a.k.a Lagrange Multiplier) diagnostics for spatial dependence in linear models
print.sarlm | Defunct Functions in Package 'spdep'
print.sarlm.pred | Defunct Functions in Package 'spdep'
print.SFResult | Defunct Functions in Package 'spdep'
print.spautolm | Defunct Functions in Package 'spdep'
print.spcor | Spatial correlogram
print.stsls | Defunct Functions in Package 'spdep'
print.summary.gmsar | Defunct Functions in Package 'spdep'
print.summary.lagImpact | Defunct Functions in Package 'spdep'
print.summary.lagmess | Defunct Functions in Package 'spdep'
print.summary.listw | Print and summary function for neighbours and weights lists
print.summary.localmoransad | Saddlepoint approximation of local Moran's Ii tests
print.summary.moransad | Saddlepoint approximation of global Moran's I test
print.summary.nb | Print and summary function for neighbours and weights lists
print.summary.sarlm | Defunct Functions in Package 'spdep'
print.summary.spatialdelta | Weighted Multivariate Spatial Autocorrelation Measures
print.summary.spautolm | Defunct Functions in Package 'spdep'
print.summary.stsls | Defunct Functions in Package 'spdep'
probmap | Probability mapping for rates
prunecost | Compute cost of prune each edge
prunemst | Prune a Minimun Spanning Tree

## -- R --

read.dat2listw | Read and write spatial neighbour files
read.gal | Read a GAL lattice file into a neighbours list
read.geoda | Read a GAL lattice file into a neighbours list
read.gwt2nb | Read and write spatial neighbour files
read.swmdbf2listw | Read and write spatial neighbour files
read_swm_dbf | Read and write spatial neighbour files
relativeneigh | Graph based spatial weights
remove.self | Include self in neighbours list
residuals.gmsar | Defunct Functions in Package 'spdep'
residuals.lagmess | Defunct Functions in Package 'spdep'
residuals.sarlm | Defunct Functions in Package 'spdep'
residuals.spautolm | Defunct Functions in Package 'spdep'
residuals.stsls | Defunct Functions in Package 'spdep'
Rotation | Rotate a set of point by a certain angle

## -- S --

sacsarlm | Defunct Functions in Package 'spdep'
SD.RStests | Rao's score and adjusted Rao's score tests of linear hypotheses for spatial Durbin and spatial Durbin error models
set.ClusterOption | Options for parallel support
set.coresOption | Options for parallel support
set.listw_is_CsparseMatrix_Option | Control checking of spatial object IDs
set.mcOption | Options for parallel support
set.NoNeighbourOption | Control checking of spatial object IDs
set.spChkOption | Control checking of spatial object IDs
set.SubgraphCeiling | Control checking of spatial object IDs
set.SubgraphOption | Control checking of spatial object IDs
set.VerboseOption | Control checking of spatial object IDs
set.ZeroPolicyOption | Control checking of spatial object IDs
setdiff.nb | Set operations on neighborhood objects
SE_classic_setup | Defunct Functions in Package 'spdep'
SE_interp_setup | Defunct Functions in Package 'spdep'
SE_whichMin_setup | Defunct Functions in Package 'spdep'
similar.listw | Defunct Functions in Package 'spdep'
skater | Spatial 'K'luster Analysis by Tree Edge Removal
sn2listw | Spatial neighbour sparse representation
soi.graph | Graph based spatial weights
sp.correlogram | Spatial correlogram
sp.mantel.mc | Mantel-Hubert spatial general cross product statistic
spam_setup | Defunct Functions in Package 'spdep'
spam_update_setup | Defunct Functions in Package 'spdep'
spatialdelta | Weighted Multivariate Spatial Autocorrelation Measures
SpatialFiltering | Defunct Functions in Package 'spdep'
spautolm | Defunct Functions in Package 'spdep'
spBreg_err | Defunct Functions in Package 'spdep'
spBreg_lag | Defunct Functions in Package 'spdep'
spBreg_sac | Defunct Functions in Package 'spdep'
spdep | Return package version number
spdep-defunct | Defunct Functions in Package 'spdep'
spNamedVec | Control checking of spatial object IDs
spweights.constants | Provides constants for spatial weights matrices
ssw | Compute the sum of dissimilarity
stsls | Defunct Functions in Package 'spdep'
subgraph_eigenw | Defunct Functions in Package 'spdep'
subset.listw | Subset a spatial weights list
subset.nb | Subset a neighbours list
summary.gmsar | Defunct Functions in Package 'spdep'
summary.lagImpact | Defunct Functions in Package 'spdep'
summary.lagmess | Defunct Functions in Package 'spdep'
summary.listw | Print and summary function for neighbours and weights lists
summary.localmoransad | Saddlepoint approximation of local Moran's Ii tests
summary.moransad | Saddlepoint approximation of global Moran's I test
summary.nb | Print and summary function for neighbours and weights lists
summary.RStestlist | Rao's score (a.k.a Lagrange Multiplier) diagnostics for spatial dependence in linear models
summary.sarlm | Defunct Functions in Package 'spdep'
summary.spatialdelta | Weighted Multivariate Spatial Autocorrelation Measures
summary.spautolm | Defunct Functions in Package 'spdep'
summary.stsls | Defunct Functions in Package 'spdep'
sym.attr.nb | Test a neighbours list for symmetry
Szero | Provides constants for spatial weights matrices

## -- T --

tolerance.nb | Function to construct edges based on a tolerance angle and a maximum distance
tri2nb | Neighbours list from tri object
trW | Defunct Functions in Package 'spdep'

## -- U --

union.nb | Set operations on neighborhood objects

## -- V --

vcov.sarlm | Defunct Functions in Package 'spdep'
vi2mrc | Generate neighbours list for grid cells

## -- W --

Wald1.sarlm | Defunct Functions in Package 'spdep'
warn_factor_preds | Rao's score and adjusted Rao's score tests of linear hypotheses for spatial Durbin and spatial Durbin error models
write.nb.gal | Write a neighbours list as a GAL lattice file
write.sn2dat | Read and write spatial neighbour files
write.sn2DBF | Read and write spatial neighbour files
write.sn2gwt | Read and write spatial neighbour files
write.swmdbf | Read and write spatial neighbour files
write_swm_dbf | Read and write spatial neighbour files