Creates a spatialAtRisk object from an lgcpgrid object
# S3 method for lgcpgrid
spatialAtRisk(X, idx = length(X$grid), ...)
an lgcpgrid object
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
object of class spatialAtRisk
Brix A, Diggle PJ (2001). Spatiotemporal Prediction for log-Gaussian Cox processes. Journal of the Royal Statistical Society, Series B, 63(4), 823-841.
Diggle P, Rowlingson B, Su T (2005). Point Process Methodology for On-line Spatio-temporal Disease Surveillance. Environmetrics, 16(5), 423-434.
lgcpPredict, linklgcpSim, spatialAtRisk.default, spatialAtRisk.fromXYZ, spatialAtRisk.im, spatialAtRisk.function, spatialAtRisk.SpatialGridDataFrame, spatialAtRisk.SpatialPolygonsDataFrame