Learn R Programming

spatstat.model (version 3.3-1)

ppm.object: Class of Fitted Point Process Models

Description

A class ppm to represent a fitted stochastic model for a point process. The output of ppm.

Arguments

Internal format

If you really need to get at the internals, a ppm object contains at least the following entries:

coefthe fitted regular parameters (as returned by glm)
trendthe trend formula or NULL
interactionthe point process interaction family (an object of class "interact") or NULL
Qthe quadrature scheme used
maxlogplthe maximised value of log pseudolikelihood
correctionname of edge correction method used

See ppm for explanation of these concepts. The irregular parameters (e.g. the interaction radius of the Strauss process) are encoded in the interaction entry. However see the Warnings.

Warnings

The internal representation of ppm objects may change slightly between releases of the spatstat package.

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au and Rolf Turner rolfturner@posteo.net.

Details

An object of class ppm represents a stochastic point process model that has been fitted to a point pattern dataset. Typically it is the output of the model fitter, ppm.

The class ppm has methods for the following standard generic functions:

genericmethoddescription
printprint.ppmprint details
plotplot.ppmplot fitted model
predictpredict.ppmfitted intensity and conditional intensity
fittedfitted.ppmfitted intensity
coefcoef.ppmfitted coefficients of model
anovaanova.ppmAnalysis of Deviance
formulaformula.ppmExtract model formula
termsterms.ppmTerms in the model formula
labelslabels.ppmNames of estimable terms in the model formula
residualsresiduals.ppmPoint process residuals
simulatesimulate.ppmSimulate the fitted model
updateupdate.ppmChange or refit the model
vcovvcov.ppmVariance/covariance matrix of parameter estimates
model.framemodel.frame.ppmModel frame
model.matrixmodel.matrix.ppmDesign matrix
logLiklogLik.ppmlog pseudo likelihood
extractAICextractAIC.ppmpseudolikelihood counterpart of AIC
nobsnobs.ppmnumber of observations

Objects of class ppm can also be handled by the following standard functions, without requiring a special method:

namedescription
confintConfidence intervals for parameters
stepStepwise model selection
drop1One-step model improvement
add1One-step model improvement

The class ppm also has methods for the following generic functions defined in the spatstat package:

genericmethoddescription
as.interactas.interact.ppmInterpoint interaction structure
as.owinas.owin.ppmObservation window of data
berman.testberman.test.ppmBerman's test
envelopeenvelope.ppmSimulation envelopes
fitinfitin.ppmFitted interaction
is.markedis.marked.ppmDetermine whether the model is marked
is.multitypeis.multitype.ppmDetermine whether the model is multitype
is.poissonis.poisson.ppmDetermine whether the model is Poisson
is.stationaryis.stationary.ppmDetermine whether the model is stationary
cdf.testcdf.test.ppmSpatial distribution test
quadrat.testquadrat.test.ppmQuadrat counting test
reachreach.ppmInteraction range of model
rmhmodelrmhmodel.ppmModel in a form that can be simulated
rmhrmh.ppmPerform simulation
unitnameunitname.ppmName of unit of length

Information about the data (to which the model was fitted) can be extracted using data.ppm, dummy.ppm and quad.ppm.

See Also

ppm, coef.ppm, fitted.ppm, print.ppm, predict.ppm, plot.ppm.

Examples

Run this code
  fit <- ppm(cells ~ x, Strauss(0.1), correction="periodic")
  fit
  coef(fit)
  # \donttest{
    pred <- predict(fit)
  # }
  pred <- predict(fit, ngrid=20, type="trend")
  if(interactive()) {
  plot(fit)
  }  

Run the code above in your browser using DataLab