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, three methodologies are implemented: An adapted t-test to perform hypothesis testing about the independence between the processes, a suitable nonparametric correlation coefficient, and the codispersion coefficient.

- Tjostheim's Coefficient.
- Tjostheim, D., 1978. A measure of association for spatial variables. Biometrika 65, 109-114.

- A Modified Correlation Coefficient Test.
- Clifford, P., Richardson, S., Hémon, D., 1989. Assessing the significance of the correlation between two spatial processes. Biometrics 45, 123-134.

- The Codispersion Coefficient.
- Matheron, G., 1965. Les Variables Régionalisées et leur Estimation, Masson, Paris.
- Rukhin, A., Vallejos, R., 2008. Codispersion coefficient for spatial and temporal series. Statistics and Probability Letters 78, 1290-1300.

- Computes Tjostheim's coefficient and its asymptotic variance for two spatial sequences defined on the same locations on the plane.
- Performs an hypothesis testing based on a modified version of the correlation coefficient. The test provides a decision rule to elucidate whether the two processes are spatially correlated or not. The spatial sequences need to be defined on the same locations on the plane.
- Computes de codispersion coefficient for a specific direction h on the plane.
- Provides a plot for the codispersion coefficient versus the lag distance h for isopropic processes.

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 .

- SpatialPack_0.2-3.tar.gz - Package sources
- SpatialPack_0.2-3.zip - Windows binaries (R-release)
- SpatialPack_0.2-3.tgz - OS X El Capitan binaries (R-release)
- SpatialPack_0.2-3.tgz - OS X Mavericks binaries (R-oldrel)
- SpatialPack.pdf - Reference Manual

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.

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

- Acosta, J., and Vallejos, R. (2016).
Effective sample size for regression models. Submitted.

Files: R Functions | Datasets - Vallejos, R., Osorio, F., and Mancilla, D. (2015). The codispersion map: A graphical tool to visualize the association between two spatial variables. Statistica Neerlandica 69, 298-314.
- Cuevas, F., Porcu, E., and Vallejos, R. (2013).
Study of spatial relationships between two sets of variables: A nonparametric approach.

Journal of Nonparametric Statistics 25, 695-714. - Ojeda, S., Vallejos, R., and Lamberti, P. (2012).
Measure of similarity between images based on the codispersion coefficient.

Journal of Electronic Imaging 21, 023019.

- Bernadou, A., Espadaler, X., Le Goff, A., Fourcassié, V. (2015). Ant community organization along elevational gradients in a temperate ecosystem. Insectes Sociaux 62, 59-71.
- Koorem, K., Gazol, A., Öpik, M., Moora, M., Saks, Ü., Uibopuu, A., Sõber, V., Zobel, M. (2014). Soil nutrient content influences the abundance of soil microbes but not plant biomass at the small-scale. PLoS ONE 9(3): e91998.
- Zhang, J., Nielsen, S.E., Mao, L., Chen, S., Svenning, J.-C. (2015). Regional and historical factors supplement current climate in shaping global forest canopy height. Journal of Ecology 104, 469-478.

See more papers using/citing SpatialPack...

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

- Webpage: fosorios.mat.utfsm.cl
- Email: felipe.osorios AT usm.cl

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

- Webpage: rvallejos.mat.utfsm.cl
- Email: ronny.vallejos AT usm.cl

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

- HEAVY - Robust estimation using heavy-tailed distributions.
- L1pack - Routines for L1 estimation.
- MVT - Estimation and testing for the multivariate t-distribution.