Learn R Programming

spatstat.explore (version 3.5-2)

roc.rhohat: Receiver Operating Characteristic

Description

Computes the Receiver Operating Characteristic curve for a point pattern from a given intensity function.

Usage

# S3 method for rhohat
roc(X, ..., high = TRUE)

Value

Function value table (object of class "fv" and "roc") which can be plotted to show the ROC curve.

Arguments

X

Estimate of rho function (object of class "rhohat").

...

Ignored.

high

Logical value indicating whether the threshold operation should favour high or low values of the covariate.

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Ege Rubak rubak@math.aau.dk and Suman Rakshit Suman.Rakshit@curtin.edu.au.

Details

This command computes Receiver Operating Characteristic curve from an estimate of rhohat.

See roc for general information about ROC curves.

It is assumed that the rhohat function X describes the true functional dependency of the point process intensity on the given covariate (included in the rhohat-object). The ROC curve is estimated by integrating this function as described in Baddeley et al (2025).

References

Baddeley, A., Rubak, E., Rakshit, S. and Nair, G. (2025) ROC curves for spatial point patterns and presence-absence data. tools:::Rd_expr_doi("10.48550/arXiv.2506.03414").

See Also

roc, auc

Examples

Run this code
  rh <- rhohat(swedishpines, "x")
  plot(roc(rh))

Run the code above in your browser using DataLab