Learn R Programming

lgcp (version 1.8)

spatialAtRisk.lgcpgrid: spatialAtRisk.lgcpgrid function

Description

Creates a spatialAtRisk object from an lgcpgrid object

Usage

# S3 method for lgcpgrid
spatialAtRisk(X, idx = length(X$grid), ...)

Arguments

X

an lgcpgrid object

idx

in the case that X$grid is a list of length > 1, this argument specifies which element of the list to convert. By default, it is the last.

...

additional arguments

Value

object of class spatialAtRisk

  1. Brix A, Diggle PJ (2001). Spatiotemporal Prediction for log-Gaussian Cox processes. Journal of the Royal Statistical Society, Series B, 63(4), 823-841.

  2. Diggle P, Rowlingson B, Su T (2005). Point Process Methodology for On-line Spatio-temporal Disease Surveillance. Environmetrics, 16(5), 423-434.

See Also

lgcpPredict, linklgcpSim, spatialAtRisk.default, spatialAtRisk.fromXYZ, spatialAtRisk.im, spatialAtRisk.function, spatialAtRisk.SpatialGridDataFrame, spatialAtRisk.SpatialPolygonsDataFrame