Learn R Programming

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

spatstat.model (version 3.3-1)

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

License

GPL (>= 2)

Maintainer

Adrian Baddeley

Last Published

July 15th, 2024

Functions in spatstat.model (3.3-1)

Fiksel

The Fiksel Interaction
Gcom

Model Compensator of Nearest Neighbour Function
Kmodel

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

The Connected Component Process Model
Extract.influence.ppm

Extract Subset of Influence Object
DiggleGratton

Diggle-Gratton model
Poisson

Poisson Point Process Model
Extract.msr

Extract Subset of Signed or Vector Measure
Geyer

Geyer's Saturation Point Process Model
Gres

Residual G Function
Kmodel.dppm

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

The Multitype Strauss Point Process Model
BadGey

Hybrid Geyer Point Process Model
Ops.msr

Arithmetic Operations on Measures
Ord

Generic Ord Interaction model
OrdThresh

Ord's Interaction model
SatPiece

Piecewise Constant Saturated Pairwise Interaction Point Process Model
HierStrauss

The Hierarchical Strauss Point Process Model
PairPiece

The Piecewise Constant Pairwise Interaction Point Process Model
anova.slrm

Analysis of Deviance for Spatial Logistic Regression Models
as.function.leverage.ppm

Convert Leverage Object to Function of Coordinates
MultiStraussHard

The Multitype/Hard Core Strauss Point Process Model
cdf.test.ppm

Spatial Distribution Test for Point Pattern or Point Process Model
Saturated

Saturated Pairwise Interaction model
anova.mppm

ANOVA for Fitted Point Process Models for Replicated Patterns
AreaInter

The Area Interaction Point Process Model
DiggleGatesStibbard

Diggle-Gates-Stibbard Point Process Model
anova.ppm

ANOVA for Fitted Point Process Models
compareFit

Residual Diagnostics for Multiple Fitted Models
HierStraussHard

The Hierarchical Strauss Hard Core Point Process Model
Extract.leverage.ppm

Extract Subset of Leverage Object
closepaircounts

Count Close Pairs of Points
dffit.ppm

Case Deletion Effect Measure of Fitted Model
as.fv.kppm

Convert Fitted Model To Class fv
Kcom

Model Compensator of K Function
cdf.test.mppm

Spatial Distribution Test for Multiple Point Process Model
Smooth.msr

Smooth a Signed or Vector-Valued Measure
Hybrid

Hybrid Interaction Point Process Model
dppPowerExp

Power Exponential Spectral Determinantal Point Process Model
exactMPLEstrauss

Exact Maximum Pseudolikelihood Estimate for Stationary Strauss Process
Hardcore

The Hard Core Point Process Model
LennardJones

The Lennard-Jones Potential
dim.detpointprocfamily

Dimension of Determinantal Point Process Model
dppCauchy

Generalized Cauchy Determinantal Point Process Model
domain.ppm

Extract the Domain of any Spatial Object
Kmodel.kppm

K Function or Pair Correlation Function of Cluster Model or Cox model
as.layered.msr

Convert Measure To Layered Object
cauchy.estK

Fit the Neyman-Scott cluster process with Cauchy kernel
clusterradius.kppm

Compute or Extract Effective Range of Cluster Kernel
cauchy.estpcf

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

Extract Original Data from a Fitted Point Process Model
Kres

Residual K Function
HierHard

The Hierarchical Hard Core Point Process Model
LambertW

Lambert's W Function
dppapproxpcf

Approximate Pair Correlation Function of Determinantal Point Process Model
diagnose.ppm

Diagnostic Plots for Fitted Point Process Model
dppeigen

Internal function calculating eig and index
coef.mppm

Coefficients of Point Process Model Fitted to Multiple Point Patterns
hardcoredist

Extract the Hard Core Distance of a Point Process Model
MultiHard

The Multitype Hard Core Point Process Model
dppspecden

Extract Spectral Density from Determinantal Point Process Model Object
detpointprocfamilyfun

Construct a New Determinantal Point Process Model Family Function
berman.test.ppm

Berman's Tests for Point Process Model
intensity.dppm

Intensity of Determinantal Point Process Model
dfbetas.ppm

Parameter Influence Measure
leverage.slrm

Leverage and Influence Diagnostics for Spatial Logistic Regression
Kmodel.ppm

K Function or Pair Correlation Function of Gibbs Point Process model
envelope.ppm

Simulation Envelopes of Summary Function
Softcore

The Soft Core Point Process Model
measureWeighted

Weighted Version of a Measure
hybrid.family

Hybrid Interaction Family
dppapproxkernel

Approximate Determinantal Point Process Kernel
ic.kppm

Model selection criteria for the intensity function of a point process
as.interact

Extract Interaction Structure
dppBessel

Bessel Type Determinantal Point Process Model
intensity.slrm

Intensity of Fitted Spatial Logistic Regression Model
effectfun

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

Intensity of Fitted Point Process Model
model.images

Compute Images of Constructed Covariates
dppkernel

Extract Kernel from Determinantal Point Process Model Object
emend

Force Model to be Valid
isf.object

Interaction Structure Family Objects
bc.ppm

Bias Correction for Fitted Model
methods.dppm

Methods for Determinantal Point Process Models
dppparbounds

Parameter Bound for a Determinantal Point Process Model
quadrat.test.ppm

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

Prediction from a Fitted Point Process Model
Pairwise

Generic Pairwise Interaction model
kppm

Fit Cluster or Cox Point Process Model
model.matrix.ppm

Extract Design Matrix from Point Process Model
Window.ppm

Extract Window of Spatial Object
coef.ppm

Coefficients of Fitted Point Process Model
logLik.mppm

Log Likelihood and AIC for Multiple Point Process Model
Penttinen

Penttinen Interaction
as.ppm

Extract Fitted Point Process Model
is.ppm

Test Whether An Object Is A Fitted Point Process Model
logLik.dppm

Log Likelihood and AIC for Fitted Determinantal Point Process Model
addvar

Added Variable Plot for Point Process Model
plot.mppm

plot a Fitted Multiple Point Process Model
model.depends

Identify Covariates Involved in each Model Term
Strauss

The Strauss Point Process Model
coef.slrm

Coefficients of Fitted Spatial Logistic Regression Model
matclust.estpcf

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

Basis for Harmonic Functions
Triplets

The Triplet Point Process Model
logLik.kppm

Log Likelihood and AIC for Fitted Cox or Cluster Point Process Model
msr

Signed or Vector-Valued Measure
model.frame.ppm

Extract the Variables in a Point Process Model
StraussHard

The Strauss / Hard Core Point Process Model
fitted.mppm

Fitted Conditional Intensity for Multiple Point Process Model
fixef.mppm

Extract Fixed Effects from Point Process Model
inforder.family

Infinite Order Interaction Family
as.owin.ppm

Convert Data To Class owin
fitted.ppm

Fitted Conditional Intensity for Point Process Model
auc.ppm

Area Under ROC Curve
clusterfield.kppm

Field of clusters
reach

Interaction Distance of a Point Process Model
hierpair.family

Hierarchical Pairwise Interaction Process Family
plot.leverage.ppm

Plot Leverage Function
dppm

Fit Determinantal Point Process Model
predict.kppm

Prediction from a Fitted Cluster Point Process Model
methods.influence.ppm

Methods for Influence Objects
clusterfit

Fit Cluster or Cox Point Process Model via Minimum Contrast
ord.family

Ord Interaction Process Family
emend.ppm

Force Point Process Model to be Valid
palmdiagnose

Diagnostic based on Palm Intensity
methods.leverage.ppm

Methods for Leverage Objects
model.matrix.slrm

Extract Design Matrix from Spatial Logistic Regression Model
formula.ppm

Model Formulae for Gibbs Point Process Models
is.stationary.ppm

Recognise Stationary and Poisson Point Process Models
interactionorder

Determine the Order of Interpoint Interaction in a Model
harmonise.msr

Make Measures Compatible
ppmInfluence

Leverage and Influence Measures for Spatial Point Process Model
clusterkernel.kppm

Extract Cluster Offspring Kernel
integral.msr

Integral of a Measure
plot.rppm

Plot a Recursively Partitioned Point Process Model
varcount

Predicted Variance of the Number of Points
leverage.ppm

Leverage Measure for Spatial Point Process Model
methods.zclustermodel

Methods for Cluster Models
rmh.ppm

Simulate from a Fitted Point Process Model
panel.contour

Panel Plots using Colour Image or Contour Lines
dummify

Convert Data to Numeric Values by Constructing Dummy Variables
logLik.ppm

Log Likelihood and AIC for Point Process Model
fitted.slrm

Fitted Probabilities for Spatial Logistic Regression
npfun

Dummy Function Returns Number of Points
emend.slrm

Force Spatial Logistic Regression Model to be Valid
ppm.ppp

Fit Point Process Model to Point Pattern Data
dppGauss

Gaussian Determinantal Point Process Model
methods.objsurf

Methods for Objective Function Surfaces
fitin.ppm

Extract the Interaction from a Fitted Point Process Model
measureVariation

Positive and Negative Parts, and Variation, of a Measure
matclust.estK

Fit the Matern Cluster Point Process by Minimum Contrast
dppMatern

Whittle-Matern Determinantal Point Process Model
is.multitype.ppm

Test Whether A Point Process Model is Multitype
dppspecdenrange

Range of Spectral Density of a Determinantal Point Process Model
methods.fii

Methods for Fitted Interactions
lgcp.estK

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
is.dppm

Recognise Fitted Determinantal Point Process Models
repul.dppm

Repulsiveness Index of a Determinantal Point Process Model
zclustermodel

Cluster Point Process Model
improve.kppm

Improve Intensity Estimate of Fitted Cluster Point Process Model
plot.profilepl

Plot Profile Likelihood
ippm

Fit Point Process Model Involving Irregular Trend Parameters
influence.ppm

Influence Measure for Spatial Point Process Model
is.marked.ppm

Test Whether A Point Process Model is Marked
panysib

Probability that a Point Has Any Siblings
dummy.ppm

Extract Dummy Points Used to Fit a Point Process Model
model.matrix.mppm

Extract Design Matrix of Point Process Model for Several Point Patterns
spatstat.model-internal

Internal spatstat.model functions
valid.detpointprocfamily

Check Validity of a Determinantal Point Process Model
is.hybrid

Test Whether Object is a Hybrid
lgcp.estpcf

Fit a Log-Gaussian Cox Point Process by Minimum Contrast
predict.rppm

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

Predicted or Fitted Values from Spatial Logistic Regression
slrm

Spatial Logistic Regression
mincontrast

Method of Minimum Contrast
psstA

Pseudoscore Diagnostic For Fitted Model against Area-Interaction Alternative
plot.msr

Plot a Signed or Vector-Valued Measure
eem

Exponential Energy Marks
methods.zgibbsmodel

Methods for Gibbs Models
quadrat.test.mppm

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

Richardson Extrapolation
predict.dppm

Prediction from a Fitted Determinantal Point Process Model
reach.dppm

Range of Interaction for a Determinantal Point Process Model
residualMeasure

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

Interpret Fitted Model for Metropolis-Hastings Simulation.
is.poissonclusterprocess

Recognise Poisson Cluster Process Models
residuals.ppm

Residuals for Fitted Point Process Model
residuals.dppm

Residuals for Fitted Determinantal Point Process Model
lurking.mppm

Lurking Variable Plot for Multiple Point Patterns
parres

Partial Residuals for Point Process Model
quad.ppm

Extract Quadrature Scheme Used to Fit a Point Process Model
valid.slrm

Check Whether Spatial Logistic Regression Model is Valid
plot.dppm

Plot a fitted determinantal point process
response

Extract the Values of the Response from a Fitted Model
residuals.mppm

Residuals for Point Process Model Fitted to Multiple Point Patterns
ppm

Fit Point Process Model to Data
qqplot.ppm

Q-Q Plot of Residuals from Fitted Point Process Model
residuals.rppm

Residuals for Recursively Partitioned Point Process Model
reach.kppm

Range of Interaction for a Cox or Cluster Point Process Model
suffstat

Sufficient Statistic of Point Process Model
summary.ppm

Summarizing a Fitted Point Process Model
logLik.slrm

Loglikelihood of Spatial Logistic Regression
lurking

Lurking Variable Plot
pairsat.family

Saturated Pairwise Interaction Point Process Family
measureContinuous

Discrete and Continuous Components of a Measure
profilepl

Fit Models by Profile Maximum Pseudolikelihood or AIC
parameters

Extract Model Parameters in Understandable Form
rhohat.ppm

Nonparametric Estimate of Intensity as Function of a Covariate
methods.kppm

Methods for Cluster Point Process Models
print.ppm

Print a Fitted Point Process Model
simulate.kppm

Simulate a Fitted Cluster Point Process Model
thomas.estK

Fit the Thomas Point Process by Minimum Contrast
objsurf

Objective Function Surface
methods.slrm

Methods for Spatial Logistic Regression Models
pairwise.family

Pairwise Interaction Process Family
ppm.object

Class of Fitted Point Process Models
methods.traj

Methods for Trajectories of Function Evaluations
simulate.ppm

Simulate a Fitted Gibbs Point Process Model
plot.plotppm

Plot a plotppm Object Created by plot.ppm
prune.rppm

Prune a Recursively Partitioned Point Process Model
simulate.slrm

Simulate a Fitted Spatial Logistic Regression Model
summary.kppm

Summarizing a Fitted Cox or Cluster Point Process Model
mppm

Fit Point Process Model to Several Point Patterns
plot.influence.ppm

Plot Influence Measure
plot.kppm

Plot a fitted cluster point process
roc.ppm

Receiver Operating Characteristic
predict.mppm

Prediction for Fitted Multiple Point Process Model
psstG

Pseudoscore Diagnostic For Fitted Model against Saturation Alternative
update.kppm

Update a Fitted Cluster Point Process Model
update.rppm

Update a Recursively Partitioned Point Process Model
zgibbsmodel

Gibbs Model
relrisk.ppm

Parametric Estimate of Spatially-Varying Relative Risk
ranef.mppm

Extract Random Effects from Point Process Model
rdpp

Simulation of a Determinantal Point Process
subfits

Extract List of Individual Point Process Models
with.msr

Evaluate Expression Involving Components of a Measure
psib

Sibling Probability of Cluster Point Process
update.dppm

Update a Fitted Determinantal Point Process Model
plot.slrm

Plot a Fitted Spatial Logistic Regression
plot.palmdiag

Plot the Palm Intensity Diagnostic
update.detpointprocfamily

Set Parameter Values in a Determinantal Point Process Model
summary.dppm

Summarizing a Fitted Determinantal Point Process Model
thomas.estpcf

Fit the Thomas Point Process by Minimum Contrast
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
polynom

Polynomial in One or Two Variables
plot.ppm

plot a Fitted Point Process Model
psst

Pseudoscore Diagnostic For Fitted Model against General Alternative
update.interact

Update an Interpoint Interaction
residuals.kppm

Residuals for Fitted Cox or Cluster Point Process Model
unstack.msr

Separate a Vector Measure into its Scalar Components
pseudoR2

Calculate Pseudo-R-Squared for Point Process Model
rppm

Recursively Partitioned Point Process Model
vcov.ppm

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

Residuals for Fitted Spatial Logistic Regression Model
spatstat.model-package

The spatstat.model Package
vcov.kppm

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

Name for Unit of Length
traj

Extract trajectory of function evaluations
simulate.dppm

Simulation of Determinantal Point Process Model
vcov.slrm

Variance-Covariance Matrix for a Fitted Spatial Logistic Regression
update.ppm

Update a Fitted Point Process Model
triplet.family

Triplet Interaction Family
split.msr

Divide a Measure into Parts
valid

Check Whether Point Process Model is Valid
valid.ppm

Check Whether Point Process Model is Valid
vcov.mppm

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

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