Learn R Programming

spatstat (version 1.20-2)

logLik.ppm: Log Likelihood for Poisson Point Process Model

Description

Extracts the log likelihood of a fitted Poisson point process model.

Usage

## S3 method for class 'ppm':
logLik(object, ..., warn=TRUE)

Arguments

object
Fitted point process model. An object of class "ppm".
...
Ignored.
warn
If TRUE, a warning is given when the pseudolikelihood is returned instead of the likelihood.

Value

  • A numerical value.

Details

The maximised value of the log likelihood for the fitted model (as approximated by quadrature using the Berman-Turner approximation) is extracted.

If object is not a Poisson process, the maximised log pseudolikelihood is returned, with a warning (if warn=TRUE).

See Also

ppm

Examples

Run this code
data(cells)
  fit <- ppm(cells, ~x)
  logLik(fit)
  AIC(fit)

Run the code above in your browser using DataLab