spatstat.core: Core Functionality of the 'spatstat' Family

Functionality for data analysis and modelling of spatial data, mainly spatial point patterns, in the 'spatstat' family of packages. (Excludes analysis of spatial data on a linear network, which is covered by the separate package 'spatstat.linnet'.) Exploratory methods include quadrat counts, K-functions and their simulation envelopes, nearest neighbour distance and empty space statistics, Fry plots, pair correlation function, kernel smoothed intensity, relative risk estimation with cross-validated bandwidth selection, mark correlation functions, segregation indices, mark dependence diagnostics, and kernel estimates of covariate effects. Formal hypothesis tests of random pattern (chi-squared, Kolmogorov-Smirnov, Monte Carlo, Diggle-Cressie-Loosmore-Ford, Dao-Genton, two-stage Monte Carlo) and tests for covariate effects (Cox-Berman-Waller-Lawson, Kolmogorov-Smirnov, ANOVA) are also supported. Parametric models can be fitted to point pattern data using the functions ppm(), kppm(), slrm(), dppm() similar to glm(). Types of models include Poisson, Gibbs and Cox point processes, Neyman-Scott cluster processes, and determinantal point processes. Models may involve dependence on covariates, inter-point interaction, cluster formation and dependence on marks. Models are fitted by maximum likelihood, logistic regression, minimum contrast, and composite likelihood methods. A model can be fitted to a list of point patterns (replicated point pattern data) using the function mppm(). The model can include random effects and fixed effects depending on the experimental design, in addition to all the features listed above. Fitted point process models can be simulated, automatically. Formal hypothesis tests of a fitted model are supported (likelihood ratio test, analysis of deviance, Monte Carlo tests) along with basic tools for model selection (stepwise(), AIC()) and variable selection (sdr). Tools for validating the fitted model include simulation envelopes, residuals, residual plots and Q-Q plots, leverage and influence diagnostics, partial residuals, and added variable plots.

Version: 2.1-2
Depends: R (≥ 3.5.0), (≥ 2.1-0), spatstat.geom (≥ 2.0-0), stats, graphics, grDevices, utils, methods, nlme, rpart
Imports: spatstat.utils (≥ 2.1-0), spatstat.sparse (≥ 2.0-0), mgcv, Matrix, abind, tensor, goftest (≥ 1.2-2)
Suggests: sm, maptools (≥ 0.9-9), gsl, locfit, spatial, RandomFields (≥, RandomFieldsUtils (≥, fftwtools (≥ 0.9-8), spatstat.linnet (≥ 2.0-0), spatstat (≥ 2.0-0)
Published: 2021-04-18
Author: Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Kasper Klitgaard Berthelsen [ctb], Achmad Choiruddin [ctb], Jean-Francois Coeurjolly [ctb], Ottmar Cronie [ctb], Tilman Davies [ctb], Julian Gilbey [ctb], Yongtao Guan [ctb], Ute Hahn [ctb], Kassel Hingee [ctb], Abdollah Jalilian [ctb], Marie-Colette van Lieshout [ctb], Greg McSwiggan [ctb], Tuomas Rajala [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Plenge Waagepetersen [ctb], Hangsheng Wang [ctb]
Maintainer: Adrian Baddeley <Adrian.Baddeley at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: yes
Citation: spatstat.core citation info
Materials: NEWS
CRAN checks: spatstat.core results


Reference manual: spatstat.core.pdf
Package source: spatstat.core_2.1-2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release: spatstat.core_2.0-0.tgz, r-oldrel: spatstat.core_2.0-0.tgz
Old sources: spatstat.core archive

Reverse dependencies:

Reverse depends: dbmss, envi, gateR, globalKinhom, lacunaritycovariance, spagmix, sparrpowR, spatstat, spatstat.gui, spatstat.Knet, spatstat.linnet, spatstat.local
Reverse imports: Biolinv, DRHotNet, ecespa, ENMTools, ETAS, GmAMisc, graph4lg, hht, idar, lgcp, MetaLandSim, osmplotr, rcarbon, replicatedpp2w, selectspm, Seurat, shar, smacpod, sparr, SpatEntropy, spatialEco, SpatialVx, spatsurv, spicyR, SpNetPrep, SPUTNIK, stlnpp, stpp, treetop, trip, ttbary
Reverse suggests: GET, inlabru, mobsim, rlfsm, sf,, spatstat.geom, spatstat.utils, stats19, trajectories


Please use the canonical form to link to this page.