Learn R Programming

⚠️There's a newer version (3.3-5) of this package.Take me there.

spatstat.model (version 3.3-2)

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-2

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

September 19th, 2024

Functions in spatstat.model (3.3-2)

Extract.leverage.ppm

Extract Subset of Leverage Object
Concom

The Connected Component Process Model
DiggleGratton

Diggle-Gratton model
BadGey

Hybrid Geyer Point Process Model
Extract.msr

Extract Subset of Signed or Vector Measure
Extract.influence.ppm

Extract Subset of Influence Object
Gcom

Model Compensator of Nearest Neighbour Function
Fiksel

The Fiksel Interaction
AreaInter

The Area Interaction Point Process Model
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
Kmodel

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

The Hard Core Point Process Model
HierStrauss

The Hierarchical Strauss Point Process Model
Kcom

Model Compensator of K Function
HierStraussHard

The Hierarchical Strauss Hard Core Point Process Model
Geyer

Geyer's Saturation Point Process Model
Hybrid

Hybrid Interaction Point Process Model
Kmodel.dppm

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

Residual G Function
HierHard

The Hierarchical Hard Core Point Process Model
LennardJones

The Lennard-Jones Potential
MultiHard

The Multitype Hard Core Point Process Model
Ops.msr

Arithmetic Operations on Measures
Kres

Residual K Function
Kmodel.kppm

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

Lambert's W Function
MultiStrauss

The Multitype Strauss Point Process Model
Softcore

The Soft Core Point Process Model
OrdThresh

Ord's Interaction model
Ord

Generic Ord Interaction model
Pairwise

Generic Pairwise Interaction model
Penttinen

Penttinen Interaction
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
Kmodel.ppm

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

The Strauss Point Process Model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
anova.mppm

ANOVA for Fitted Point Process Models for Replicated Patterns
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
Poisson

Poisson Point Process Model
StraussHard

The Strauss / Hard Core Point Process Model
as.fv.kppm

Convert Fitted Model To Class fv
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
Saturated

Saturated Pairwise Interaction model
anova.ppm

ANOVA for Fitted Point Process Models
Window.ppm

Extract Window of Spatial Object
as.function.leverage.ppm

Convert Leverage Object to Function of Coordinates
addvar

Added Variable Plot for Point Process Model
as.interact

Extract Interaction Structure
Smooth.msr

Smooth a Signed or Vector-Valued Measure
bc.ppm

Bias Correction for Fitted Model
as.ppm

Extract Fitted Point Process Model
closepaircounts

Count Close Pairs of Points
as.layered.msr

Convert Measure To Layered Object
clusterfield.kppm

Field of clusters
Triplets

The Triplet Point Process Model
berman.test.ppm

Berman's Tests for Point Process Model
clusterradius.kppm

Compute or Extract Effective Range of Cluster Kernel
cdf.test.ppm

Spatial Distribution Test for Point Pattern or Point Process Model
dppBessel

Bessel Type Determinantal Point Process Model
as.owin.ppm

Convert Data To Class owin
compareFit

Residual Diagnostics for Multiple Fitted Models
cdf.test.mppm

Spatial Distribution Test for Multiple Point Process Model
dppCauchy

Generalized Cauchy Determinantal Point Process Model
cauchy.estK

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

Extract Original Data from a Fitted Point Process Model
dffit.ppm

Case Deletion Effect Measure of Fitted Model
clusterfit

Fit Cluster or Cox Point Process Model via Minimum Contrast
dppspecdenrange

Range of Spectral Density of a Determinantal Point Process Model
auc.ppm

Area Under ROC Curve
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
cauchy.estpcf

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

Coefficients of Fitted Point Process Model
coef.mppm

Coefficients of Point Process Model Fitted to Multiple Point Patterns
clusterkernel.kppm

Extract Cluster Offspring Kernel
detpointprocfamilyfun

Construct a New Determinantal Point Process Model Family Function
dfbetas.ppm

Parameter Influence Measure
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
envelope.ppm

Simulation Envelopes of Summary Function
dppPowerExp

Power Exponential Spectral Determinantal Point Process Model
dppkernel

Extract Kernel from Determinantal Point Process Model Object
dppGauss

Gaussian Determinantal Point Process Model
exactMPLEstrauss

Exact Maximum Pseudolikelihood Estimate for Stationary Strauss Process
dppMatern

Whittle-Matern Determinantal Point Process Model
intensity.dppm

Intensity of Determinantal Point Process Model
intensity.ppm

Intensity of Fitted Point Process Model
dppapproxkernel

Approximate Determinantal Point Process Kernel
emend.ppm

Force Point Process Model to be Valid
dppparbounds

Parameter Bound for a Determinantal Point Process Model
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
eem

Exponential Energy Marks
is.ppm

Test Whether An Object Is A Fitted Point Process Model
dim.detpointprocfamily

Dimension of Determinantal Point Process Model
dppspecden

Extract Spectral Density from Determinantal Point Process Model Object
effectfun

Compute Fitted Effect of a Spatial Covariate in a Point Process Model
emend

Force Model to be Valid
is.stationary.ppm

Recognise Stationary and Poisson Point Process Models
harmonise.msr

Make Measures Compatible
fixef.mppm

Extract Fixed Effects from Point Process Model
hierpair.family

Hierarchical Pairwise Interaction Process Family
logLik.dppm

Log Likelihood and AIC for Fitted Determinantal Point Process Model
domain.ppm

Extract the Domain of any Spatial Object
ippm

Fit Point Process Model Involving Irregular Trend Parameters
dppm

Fit Determinantal Point Process Model
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
logLik.kppm

Log Likelihood and AIC for Fitted Cox or Cluster Point Process Model
matclust.estpcf

Fit the Matern Cluster Point Process by Minimum Contrast Using Pair Correlation
dppapproxpcf

Approximate Pair Correlation Function of Determinantal Point Process Model
dppeigen

Internal function calculating eig and index
emend.slrm

Force Spatial Logistic Regression Model to be Valid
hybrid.family

Hybrid Interaction Family
ic.kppm

Model selection criteria for the intensity function of a point process
formula.ppm

Model Formulae for Gibbs Point Process Models
is.dppm

Recognise Fitted Determinantal Point Process Models
fitted.mppm

Fitted Conditional Intensity for Multiple Point Process Model
fitted.ppm

Fitted Conditional Intensity for Point Process Model
improve.kppm

Improve Intensity Estimate of Fitted Cluster Point Process Model
is.hybrid

Test Whether Object is a Hybrid
is.marked.ppm

Test Whether A Point Process Model is Marked
lgcp.estK

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

Extract the Hard Core Distance of a Point Process Model
harmonic

Basis for Harmonic Functions
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
lgcp.estpcf

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
influence.ppm

Influence Measure for Spatial Point Process Model
inforder.family

Infinite Order Interaction Family
integral.msr

Integral of a Measure
leverage.ppm

Leverage Measure for Spatial Point Process Model
is.multitype.ppm

Test Whether A Point Process Model is Multitype
leverage.slrm

Leverage and Influence Diagnostics for Spatial Logistic Regression
isf.object

Interaction Structure Family Objects
methods.leverage.ppm

Methods for Leverage Objects
is.poissonclusterprocess

Recognise Poisson Cluster Process Models
lurking.mppm

Lurking Variable Plot for Multiple Point Patterns
methods.objsurf

Methods for Objective Function Surfaces
logLik.mppm

Log Likelihood and AIC for Multiple Point Process Model
intensity.slrm

Intensity of Fitted Spatial Logistic Regression Model
kppm

Fit Cluster or Cox Point Process Model
mincontrast

Method of Minimum Contrast
interactionorder

Determine the Order of Interpoint Interaction in a Model
model.depends

Identify Covariates Involved in each Model Term
measureContinuous

Discrete and Continuous Components of a Measure
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
methods.slrm

Methods for Spatial Logistic Regression Models
methods.traj

Methods for Trajectories of Function Evaluations
logLik.ppm

Log Likelihood and AIC for Point Process Model
model.frame.ppm

Extract the Variables in a Point Process Model
pairsat.family

Saturated Pairwise Interaction Point Process Family
model.images

Compute Images of Constructed Covariates
logLik.slrm

Loglikelihood of Spatial Logistic Regression
objsurf

Objective Function Surface
methods.dppm

Methods for Determinantal Point Process Models
model.matrix.slrm

Extract Design Matrix from Spatial Logistic Regression Model
methods.influence.ppm

Methods for Influence Objects
pairwise.family

Pairwise Interaction Process Family
plot.profilepl

Plot Profile Likelihood
ord.family

Ord Interaction Process Family
panysib

Probability that a Point Has Any Siblings
lurking

Lurking Variable Plot
methods.kppm

Methods for Cluster Point Process Models
mppm

Fit Point Process Model to Several Point Patterns
methods.fii

Methods for Fitted Interactions
plot.msr

Plot a Signed or Vector-Valued Measure
measureVariation

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

Extract Model Parameters in Understandable Form
plot.slrm

Plot a Fitted Spatial Logistic Regression
measureWeighted

Weighted Version of a Measure
plot.palmdiag

Plot the Palm Intensity Diagnostic
polynom

Polynomial in One or Two Variables
msr

Signed or Vector-Valued Measure
methods.zclustermodel

Methods for Cluster Models
model.matrix.mppm

Extract Design Matrix of Point Process Model for Several Point Patterns
methods.zgibbsmodel

Methods for Gibbs Models
predict.mppm

Prediction for Fitted Multiple Point Process Model
npfun

Dummy Function Returns Number of Points
ppm

Fit Point Process Model to Data
model.matrix.ppm

Extract Design Matrix from Point Process Model
plot.rppm

Plot a Recursively Partitioned Point Process Model
ppm.object

Class of Fitted Point Process Models
predict.ppm

Prediction from a Fitted Point Process Model
plot.leverage.ppm

Plot Leverage Function
plot.mppm

plot a Fitted Multiple Point Process Model
psib

Sibling Probability of Cluster Point Process
prune.rppm

Prune a Recursively Partitioned Point Process Model
palmdiagnose

Diagnostic based on Palm Intensity
residuals.dppm

Residuals for Fitted Determinantal Point Process Model
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
residuals.kppm

Residuals for Fitted Cox or Cluster Point Process Model
pseudoR2

Calculate Pseudo-R-Squared for Point Process Model
rhohat.ppm

Nonparametric Estimate of Intensity as Function of a Covariate
ranef.mppm

Extract Random Effects from Point Process Model
rdpp

Simulation of a Determinantal Point Process
rmh.ppm

Simulate from a Fitted Point Process Model
parres

Partial Residuals for Point Process Model
slrm

Spatial Logistic Regression
panel.contour

Panel Plots using Colour Image or Contour Lines
rppm

Recursively Partitioned Point Process Model
plot.dppm

Plot a fitted determinantal point process
spatstat.model-internal

Internal spatstat.model functions
reach

Interaction Distance of a Point Process Model
simulate.dppm

Simulation of Determinantal Point Process Model
ppm.ppp

Fit Point Process Model to Point Pattern Data
plot.influence.ppm

Plot Influence Measure
simulate.kppm

Simulate a Fitted Cluster Point Process Model
simulate.mppm

Simulate a Point Process Model Fitted to Several Point Patterns
plot.plotppm

Plot a plotppm Object Created by plot.ppm
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
reach.dppm

Range of Interaction for a Determinantal Point Process Model
plot.kppm

Plot a fitted cluster point process
ppmInfluence

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

Make Predictions From a Recursively Partitioned Point Process Model
predict.dppm

Prediction from a Fitted Determinantal Point Process Model
unstack.msr

Separate a Vector Measure into its Scalar Components
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
update.detpointprocfamily

Set Parameter Values in a Determinantal Point Process Model
simulate.slrm

Simulate a Fitted Spatial Logistic Regression Model
summary.dppm

Summarizing a Fitted Determinantal Point Process Model
predict.slrm

Predicted or Fitted Values from Spatial Logistic Regression
plot.ppm

plot a Fitted Point Process Model
quadrat.test.ppm

Dispersion Test for Spatial Point Pattern Based on Quadrat Counts
summary.kppm

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

Update a Fitted Determinantal Point Process Model
traj

Extract trajectory of function evaluations
print.ppm

Print a Fitted Point Process Model
valid.detpointprocfamily

Check Validity of a Determinantal Point Process Model
quadrat.test.mppm

Chi-Squared Test for Multiple Point Process Model Based on Quadrat Counts
predict.kppm

Prediction from a Fitted Cluster Point Process Model
update.kppm

Update a Fitted Cluster Point Process Model
update.interact

Update an Interpoint Interaction
valid.ppm

Check Whether Point Process Model is Valid
repul.dppm

Repulsiveness Index of a Determinantal Point Process Model
residualMeasure

Residual Measure for an Observed Point Pattern and a Fitted Intensity
zgibbsmodel

Gibbs Model
profilepl

Fit Models by Profile Maximum Pseudolikelihood or AIC
response

Extract the Values of the Response from a Fitted Model
qqplot.ppm

Q-Q Plot of Residuals from Fitted Point Process Model
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
rex

Richardson Extrapolation
summary.ppm

Summarizing a Fitted Point Process Model
reach.kppm

Range of Interaction for a Cox or Cluster Point Process Model
relrisk.ppm

Parametric Estimate of Spatially-Varying Relative Risk
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
residuals.mppm

Residuals for Point Process Model Fitted to Multiple Point Patterns
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
update.ppm

Update a Fitted Point Process Model
residuals.ppm

Residuals for Fitted Point Process Model
residuals.rppm

Residuals for Recursively Partitioned Point Process Model
rmhmodel.ppm

Interpret Fitted Model for Metropolis-Hastings Simulation.
vargamma.estK

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
vcov.ppm

Variance-Covariance Matrix for a Fitted Point Process Model
vargamma.estpcf

Fit the Neyman-Scott Cluster Point Process with Variance Gamma kernel
vcov.slrm

Variance-Covariance Matrix for a Fitted Spatial Logistic Regression
residuals.slrm

Residuals for Fitted Spatial Logistic Regression Model
roc.ppm

Receiver Operating Characteristic
subfits

Extract List of Individual Point Process Models
spatstat.model-package

The spatstat.model Package
suffstat

Sufficient Statistic of Point Process Model
split.msr

Divide a Measure into Parts
update.rppm

Update a Recursively Partitioned Point Process Model
triplet.family

Triplet Interaction Family
valid

Check Whether Point Process Model is Valid
unitname

Name for Unit of Length
valid.slrm

Check Whether Spatial Logistic Regression Model is Valid
varcount

Predicted Variance of the Number of Points
with.msr

Evaluate Expression Involving Components of a Measure
vcov.kppm

Variance-Covariance Matrix for a Fitted Cluster Point Process Model
zclustermodel

Cluster Point Process Model
vcov.mppm

Calculate Variance-Covariance Matrix for Fitted Multiple Point Process Model