Learn R Programming

spatstat.model (version 3.3-5)

Parametric Statistical Modelling and Inference for the 'spatstat' Family

Description

Functionality for parametric statistical modelling and inference for 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'.) Supports parametric modelling, formal statistical inference, and model validation. Parametric models include Poisson point processes, Cox point processes, Neyman-Scott cluster processes, Gibbs point processes and determinantal point processes. Models can be fitted to data using maximum likelihood, maximum pseudolikelihood, maximum composite likelihood and the method of minimum contrast. Fitted models can be simulated and predicted. Formal inference includes hypothesis tests (quadrat counting tests, Cressie-Read tests, Clark-Evans test, Berman test, Diggle-Cressie-Loosmore-Ford test, scan test, studentised permutation test, segregation test, ANOVA tests of fitted models, adjusted composite likelihood ratio test, envelope tests, Dao-Genton test, balanced independent two-stage test), confidence intervals for parameters, and prediction intervals for point counts. Model validation techniques include leverage, influence, partial residuals, added variable plots, diagnostic plots, pseudoscore residual plots, model compensators and Q-Q plots.

Copy Link

Version

Install

install.packages('spatstat.model')

Monthly Downloads

16,761

Version

3.3-5

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

March 22nd, 2025

Functions in spatstat.model (3.3-5)

BadGey

Hybrid Geyer Point Process Model
DiggleGratton

Diggle-Gratton model
Extract.influence.ppm

Extract Subset of Influence Object
Extract.leverage.ppm

Extract Subset of Leverage Object
Concom

The Connected Component Process Model
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
Gcom

Model Compensator of Nearest Neighbour Function
Extract.msr

Extract Subset of Signed or Vector Measure
Fiksel

The Fiksel Interaction
AreaInter

The Area Interaction Point Process Model
Kmodel.dppm

K-function or Pair Correlation Function of a Determinantal Point Process Model
Hybrid

Hybrid Interaction Point Process Model
HierStraussHard

The Hierarchical Strauss Hard Core Point Process Model
HierStrauss

The Hierarchical Strauss Point Process Model
Hardcore

The Hard Core Point Process Model
Geyer

Geyer's Saturation Point Process Model
Gres

Residual G Function
Kcom

Model Compensator of K Function
Kmodel

K Function or Pair Correlation Function of a Point Process Model
HierHard

The Hierarchical Hard Core Point Process Model
Kmodel.kppm

K Function or Pair Correlation Function of Cluster Model or Cox model
LennardJones

The Lennard-Jones Potential
MultiStrauss

The Multitype Strauss Point Process Model
LambertW

Lambert's W Function
Kmodel.ppm

K Function or Pair Correlation Function of Gibbs Point Process model
Kres

Residual K Function
Ops.msr

Arithmetic Operations on Measures
MultiHard

The Multitype Hard Core Point Process Model
Ord

Generic Ord Interaction model
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
Softcore

The Soft Core Point Process Model
Poisson

Poisson Point Process Model
Pairwise

Generic Pairwise Interaction model
Penttinen

Penttinen Interaction
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
OrdThresh

Ord's Interaction model
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
Saturated

Saturated Pairwise Interaction model
as.function.leverage.ppm

Convert Leverage Object to Function of Coordinates
anova.mppm

ANOVA for Fitted Point Process Models for Replicated Patterns
Strauss

The Strauss Point Process Model
anova.ppm

ANOVA for Fitted Point Process Models
StraussHard

The Strauss / Hard Core Point Process Model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
cauchy.estK

Fit the Neyman-Scott cluster process with Cauchy kernel
cdf.test.ppm

Spatial Distribution Test for Point Pattern or Point Process Model
cauchy.estpcf

Fit the Neyman-Scott cluster process with Cauchy kernel
Triplets

The Triplet Point Process Model
Smooth.msr

Smooth a Signed or Vector-Valued Measure
as.ppm

Extract Fitted Point Process Model
cdf.test.mppm

Spatial Distribution Test for Multiple Point Process Model
Window.ppm

Extract Window of Spatial Object
auc.ppm

Area Under ROC Curve
clusterradius.kppm

Compute or Extract Effective Range of Cluster Kernel
as.layered.msr

Convert Measure To Layered Object
as.fv.kppm

Convert Fitted Model To Class fv
clusterfit

Fit Cluster or Cox Point Process Model via Minimum Contrast
closepaircounts

Count Close Pairs of Points
clusterkernel.kppm

Extract Cluster Offspring Kernel
coef.mppm

Coefficients of Point Process Model Fitted to Multiple Point Patterns
as.owin.ppm

Convert Data To Class owin
as.interact

Extract Interaction Structure
clusterfield.kppm

Field of clusters
coef.ppm

Coefficients of Fitted Point Process Model
dppBessel

Bessel Type Determinantal Point Process Model
dppPowerExp

Power Exponential Spectral Determinantal Point Process Model
dppCauchy

Generalized Cauchy Determinantal Point Process Model
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
dppapproxkernel

Approximate Determinantal Point Process Kernel
compareFit

Residual Diagnostics for Multiple Fitted Models
dim.detpointprocfamily

Dimension of Determinantal Point Process Model
dppapproxpcf

Approximate Pair Correlation Function of Determinantal Point Process Model
fixef.mppm

Extract Fixed Effects from Point Process Model
domain.ppm

Extract the Domain of any Spatial Object
data.ppm

Extract Original Data from a Fitted Point Process Model
addvar

Added Variable Plot for Point Process Model
dppGauss

Gaussian Determinantal Point Process Model
dppeigen

Internal function calculating eig and index
dppMatern

Whittle-Matern Determinantal Point Process Model
dppspecdenrange

Range of Spectral Density of a Determinantal Point Process Model
detpointprocfamilyfun

Construct a New Determinantal Point Process Model Family Function
dppparbounds

Parameter Bound for a Determinantal Point Process Model
dfbetas.ppm

Parameter Influence Measure
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
dppspecden

Extract Spectral Density from Determinantal Point Process Model Object
emend.ppm

Force Point Process Model to be Valid
effectfun

Compute Fitted Effect of a Spatial Covariate in a Point Process Model
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
emend.slrm

Force Spatial Logistic Regression Model to be Valid
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
fitted.mppm

Fitted Conditional Intensity for Multiple Point Process Model
harmonise.msr

Make Measures Compatible
hierpair.family

Hierarchical Pairwise Interaction Process Family
eem

Exponential Energy Marks
bc.ppm

Bias Correction for Fitted Model
hardcoredist

Extract the Hard Core Distance of a Point Process Model
berman.test.ppm

Berman's Tests for Point Process Model
dffit.ppm

Case Deletion Effect Measure of Fitted Model
harmonic

Basis for Harmonic Functions
inforder.family

Infinite Order Interaction Family
fitted.ppm

Fitted Conditional Intensity for Point Process Model
formula.ppm

Model Formulae for Gibbs Point Process Models
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
isf.object

Interaction Structure Family Objects
integral.msr

Integral of a Measure
kppm

Fit Cluster or Cox Point Process Model
lgcp.estK

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
lgcp.estpcf

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
emend

Force Model to be Valid
matclust.estpcf

Fit the Matern Cluster Point Process by Minimum Contrast Using Pair Correlation
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
lurking.mppm

Lurking Variable Plot for Multiple Point Patterns
dppkernel

Extract Kernel from Determinantal Point Process Model Object
improve.kppm

Improve Intensity Estimate of Fitted Cluster Point Process Model
intensity.dppm

Intensity of Determinantal Point Process Model
intensity.slrm

Intensity of Fitted Spatial Logistic Regression Model
intensity.ppm

Intensity of Fitted Point Process Model
interactionorder

Determine the Order of Interpoint Interaction in a Model
measureContinuous

Discrete and Continuous Components of a Measure
influence.ppm

Influence Measure for Spatial Point Process Model
is.hybrid

Test Whether Object is a Hybrid
is.ppm

Test Whether An Object Is A Fitted Point Process Model
model.matrix.mppm

Extract Design Matrix of Point Process Model for Several Point Patterns
is.stationary.ppm

Recognise Stationary and Poisson Point Process Models
logLik.mppm

Log Likelihood and AIC for Multiple Point Process Model
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
methods.influence.ppm

Methods for Influence Objects
dppm

Fit Determinantal Point Process Model
logLik.ppm

Log Likelihood and AIC for Point Process Model
methods.kppm

Methods for Cluster Point Process Models
envelope.ppm

Simulation Envelopes of Summary Function
exactMPLEstrauss

Exact Maximum Pseudolikelihood Estimate for Stationary Strauss Process
methods.slrm

Methods for Spatial Logistic Regression Models
mincontrast

Method of Minimum Contrast
model.matrix.ppm

Extract Design Matrix from Point Process Model
methods.traj

Methods for Trajectories of Function Evaluations
is.marked.ppm

Test Whether A Point Process Model is Marked
leverage.ppm

Leverage Measure for Spatial Point Process Model
logLik.dppm

Log Likelihood and AIC for Fitted Determinantal Point Process Model
pairsat.family

Saturated Pairwise Interaction Point Process Family
hybrid.family

Hybrid Interaction Family
model.matrix.slrm

Extract Design Matrix from Spatial Logistic Regression Model
leverage.slrm

Leverage and Influence Diagnostics for Spatial Logistic Regression
model.depends

Identify Covariates Involved in each Model Term
measureVariation

Positive and Negative Parts, and Variation, of a Measure
mppm

Fit Point Process Model to Several Point Patterns
pairwise.family

Pairwise Interaction Process Family
logLik.kppm

Log Likelihood and AIC for Fitted Cox or Cluster Point Process Model
ic.kppm

Model selection criteria for the intensity function of a point process
parres

Partial Residuals for Point Process Model
panysib

Probability that a Point Has Any Siblings
measureWeighted

Weighted Version of a Measure
palmdiagnose

Diagnostic based on Palm Intensity
methods.zclustermodel

Methods for Cluster Models
panel.contour

Panel Plots using Colour Image or Contour Lines
plot.dppm

Plot a fitted determinantal point process
plot.profilepl

Plot Profile Likelihood
ippm

Fit Point Process Model Involving Irregular Trend Parameters
methods.zgibbsmodel

Methods for Gibbs Models
methods.dppm

Methods for Determinantal Point Process Models
is.dppm

Recognise Fitted Determinantal Point Process Models
plot.rppm

Plot a Recursively Partitioned Point Process Model
quadrat.test.ppm

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
is.multitype.ppm

Test Whether A Point Process Model is Multitype
quadrat.test.mppm

Chi-Squared Test for Multiple Point Process Model Based on Quadrat Counts
parameters

Extract Model Parameters in Understandable Form
methods.fii

Methods for Fitted Interactions
is.poissonclusterprocess

Recognise Poisson Cluster Process Models
reach

Interaction Distance of a Point Process Model
logLik.slrm

Loglikelihood of Spatial Logistic Regression
msr

Signed or Vector-Valued Measure
objsurf

Objective Function Surface
npfun

Dummy Function Returns Number of Points
ord.family

Ord Interaction Process Family
plot.plotppm

Plot a plotppm Object Created by plot.ppm
predict.mppm

Prediction for Fitted Multiple Point Process Model
plot.influence.ppm

Plot Influence Measure
lurking

Lurking Variable Plot
plot.ppm

plot a Fitted Point Process Model
methods.leverage.ppm

Methods for Leverage Objects
methods.objsurf

Methods for Objective Function Surfaces
print.ppm

Print a Fitted Point Process Model
plot.leverage.ppm

Plot Leverage Function
model.frame.ppm

Extract the Variables in a Point Process Model
reach.dppm

Range of Interaction for a Determinantal Point Process Model
model.images

Compute Images of Constructed Covariates
predict.ppm

Prediction from a Fitted Point Process Model
plot.msr

Plot a Signed or Vector-Valued Measure
plot.kppm

Plot a fitted cluster point process
profilepl

Fit Models by Profile Maximum Pseudolikelihood or AIC
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
plot.palmdiag

Plot the Palm Intensity Diagnostic
plot.mppm

plot a Fitted Multiple Point Process Model
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
ppm

Fit Point Process Model to Data
ppm.ppp

Fit Point Process Model to Point Pattern Data
repul.dppm

Repulsiveness Index of a Determinantal Point Process Model
residualMeasure

Residual Measure for an Observed Point Pattern and a Fitted Intensity
ppm.object

Class of Fitted Point Process Models
roc.ppm

Receiver Operating Characteristic
prune.rppm

Prune a Recursively Partitioned Point Process Model
ppmInfluence

Leverage and Influence Measures for Spatial Point Process Model
predict.rppm

Make Predictions From a Recursively Partitioned Point Process Model
plot.slrm

Plot a Fitted Spatial Logistic Regression
qqplot.ppm

Q-Q Plot of Residuals from Fitted Point Process Model
spatstat.model-package

The spatstat.model Package
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
subfits

Extract List of Individual Point Process Models
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
suffstat

Sufficient Statistic of Point Process Model
pseudoR2

Calculate Pseudo-R-Squared for Point Process Model
residuals.rppm

Residuals for Recursively Partitioned Point Process Model
residuals.dppm

Residuals for Fitted Determinantal Point Process Model
residuals.slrm

Residuals for Fitted Spatial Logistic Regression Model
polynom

Polynomial in One or Two Variables
psib

Sibling Probability of Cluster Point Process
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
split.msr

Divide a Measure into Parts
summary.ppm

Summarizing a Fitted Point Process Model
residuals.kppm

Residuals for Fitted Cox or Cluster Point Process Model
summary.dppm

Summarizing a Fitted Determinantal Point Process Model
predict.dppm

Prediction from a Fitted Determinantal Point Process Model
rppm

Recursively Partitioned Point Process Model
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
zgibbsmodel

Gibbs Model
summary.kppm

Summarizing a Fitted Cox or Cluster Point Process Model
update.kppm

Update a Fitted Cluster Point Process Model
reach.kppm

Range of Interaction for a Cox or Cluster Point Process Model
unstack.msr

Separate a Vector Measure into its Scalar Components
relrisk.ppm

Parametric Estimate of Spatially-Varying Relative Risk
predict.kppm

Prediction from a Fitted Cluster Point Process Model
update.ppm

Update a Fitted Point Process Model
rhohat.ppm

Nonparametric Estimate of Intensity as Function of a Covariate
update.detpointprocfamily

Set Parameter Values in a Determinantal Point Process Model
ranef.mppm

Extract Random Effects from Point Process Model
rmh.ppm

Simulate from a Fitted Point Process Model
update.dppm

Update a Fitted Determinantal Point Process Model
with.msr

Evaluate Expression Involving Components of a Measure
update.interact

Update an Interpoint Interaction
slrm

Spatial Logistic Regression
simulate.dppm

Simulation of Determinantal Point Process Model
zclustermodel

Cluster Point Process Model
spatstat.model-internal

Internal spatstat.model functions
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
traj

Extract trajectory of function evaluations
rdpp

Simulation of a Determinantal Point Process
simulate.slrm

Simulate a Fitted Spatial Logistic Regression Model
update.rppm

Update a Recursively Partitioned Point Process Model
residuals.mppm

Residuals for Point Process Model Fitted to Multiple Point Patterns
valid

Check Whether Point Process Model is Valid
residuals.ppm

Residuals for Fitted Point Process Model
valid.detpointprocfamily

Check Validity of a Determinantal Point Process Model
response

Extract the Values of the Response from a Fitted Model
rex

Richardson Extrapolation
vcov.kppm

Variance-Covariance Matrix for a Fitted Cluster Point Process Model
valid.ppm

Check Whether Point Process Model is Valid
vcov.mppm

Calculate Variance-Covariance Matrix for Fitted Multiple Point Process Model
simulate.kppm

Simulate a Fitted Cluster Point Process Model
simulate.mppm

Simulate a Point Process Model Fitted to Several Point Patterns
vargamma.estK

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
vargamma.estpcf

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
triplet.family

Triplet Interaction Family
unitname

Name for Unit of Length
valid.slrm

Check Whether Spatial Logistic Regression Model is Valid
varcount

Predicted Variance of the Number of Points
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
vcov.slrm

Variance-Covariance Matrix for a Fitted Spatial Logistic Regression