Learn R Programming

spatstat.local (version 5.1-0)

methods.locppm: Methods for Local Gibbs Models

Description

Methods for various generic functions, for the class "locppm" of locally fitted Gibbs point process models.

Usage

# S3 method for locppm
as.interact(object)

# S3 method for locppm as.ppm(object)

# S3 method for locppm coef(object, ..., which = c("local", "homogeneous"))

# S3 method for locppm confint(object, parm, level = 0.95, ..., which = c("local", "homogeneous"))

# S3 method for locppm is.poisson(x)

# S3 method for locppm print(x, ...)

Value

as.interact returns an interaction structure (object of class

"interact").

as.ppm returns a fitted Gibbs model (object of class

"ppm").

coef and confint

return a numeric vector if which="homogeneous"

and an object of class "ssf" if which="local".

is.poisson returns a logical value.

print returns NULL.

Arguments

object,x

A locally-fitted Gibbs point process model (object of class "locppm").

...

Additional arguments passed to the default method (for confint.locppm) or ignored (by coef.locppm).

which

Character string determining whether to perform calculations for the local Gibbs model (which="local", the default) or the corresponding homogeneous Gibbs model (which="homogeneous").

parm

The parameter or parameters for which a confidence interval is desired. A character string or character vector matching the names of coef(object), or an index or index vector that can be applied to coef(object).

level

Confidence level: a number between 0 and 1.

Author

Adrian Baddeley

Details

Objects of class "locppm" represent locally fitted Gibbs point process models.

The functions documented here provided methods for this class, for the generic functions as.interact, as.ppm, coef, confint, is.poisson and print.

For the coef and confint methods, the calculations can be performed either on the locally fitted model or on its homogeneous equivalent, by changing the argument which.

References

Baddeley, A. (2017) Local composite likelihood

Baddeley, A., Rubak, E. and Turner, R. (2015) Spatial Point Patterns: Methodology and Applications with R. Chapman and Hall/CRC Press.

See Also

locppm

Examples

Run this code
   fit <- locppm(swedishpines, ~1, sigma=9, nd=20,
                 vcalc="full", locations="coarse")
   fit
   is.poisson(fit)
   coef(fit)
   coef(fit, which="homogeneous")
   confint(fit)
   confint(fit, which="homogeneous")
   as.ppm(fit)
   as.interact(fit)

Run the code above in your browser using DataLab