Learn R Programming

lgcp (version 1.8)

spatialAtRisk.function: spatialAtRisk.function function

Description

Creates a spatialAtRisk object from a function mapping R^2 onto the non negative reals. Note that for spatialAtRisk objects defined in this manner, the user is responsible for ensurng that the integral of the function is 1 over the observation window of interest.

Usage

# S3 method for `function`
spatialAtRisk(X, warn = TRUE, ...)

Arguments

X

a function with accepts arguments x and y that returns the at risk population at coordinate (x,y), which should be a numeric of length 1

warn

whether to issue a warning or not

...

additional arguments

Value

object of class spatialAtRisk NOTE The function provided is assumed to integrate to 1 over the observation window, the user is responsible for ensuring this is the case.

  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.SpatialGridDataFrame, spatialAtRisk.SpatialPolygonsDataFrame, spatialAtRisk.bivden