SpatialPack: Tools for assessment the association between two spatial processes

This is the homepage for the R package SpatialPack developed in the Department of Mathematics at Universidad Técnica Federico Santa María, Chile by Felipe Osorio and Ronny Vallejos, with contributions of Francisco Cuevas, Diego Mancilla and Jonathan Acosta.

It provides tools to assess the association between two spatial processes. Currently, several methodologies are implemented: A modified t-test to perform hypothesis testing about the independence between the processes, a suitable nonparametric correlation coefficient, the codispersion coefficient, and an F test for assessing the multiple correlation between one spatial process and several others. Functions for image processing and computing the spatial association between images are also provided. SpatialPack gives methods to complement methodologies that are available in geoR for one spatial process.

  1. Tjostheim's Coefficient.
  2. A Modified Correlation Coefficient Test.
  3. The Codispersion Coefficient.
  4. Modified F Test for assessing multiple correlation.

A detailed description of each of these techniques is presented in:


Providing Feedback

Please report any bugs/suggestions/improvements to Felipe Osorio, Universidad Técnica Federico Santa María. If you find these routines useful or not then please let me know. Also, acknowledgement of the use of the routines is appreciated.


Latest binaries and sources for SpatialPack are availables from CRAN package repository .

Source code is also available at GitHub:

Installation instructions

To install this package, start R and enter:


Alternatively, you can download the source as a tarball or as a zip file. Unpack the tarball or zipfile (thereby creating a directory named, SpatialPack) and install the package source by executing (at the console prompt)


Next, you can load the package by using the command: library(SpatialPack)


The package is provided under the GPL. SpatialPack is under active development: new features are being added and old features are being improved.

To cite the SpatialPack package in publications use:

Vallejos, R., Osorio, F., Bevilacqua, M. (2020). Spatial Relationships Between Two Georeferenced Variables: with Applications in R..
Springer, Cham. DOI: 10.1007/978-3-030-56681-4

See also:

Osorio, F., Vallejos, R., Cuevas, F. (2016). SpatialPack: Computing the association between two spatial processes. arXiv:1611.05289


Some papers using SpatialPack:

See more papers using/citing SpatialPack...

About the Authors

Felipe Osorio is Assistant Professor at Department of Mathematics of the Universidad Técnica Federico Santa María, Chile.

Ronny Vallejos is Associate Professor at Department of Mathematics of the Universidad Técnica Federico Santa María, Chile.

Felipe and Ronny contribute as developers/maintainers of the following R packages: