Learn R Programming

lgcp (version 1.3-8)

stapp.SpatialPolygonsDataFrame: stapp.SpatialPolygonsDataFrame function

Description

Construct a space-time aggregated point-process (stapp) object from a SpatialPolygonsDataFrame (along with some other info)

Usage

## S3 method for class 'SpatialPolygonsDataFrame':
stapp(obj, counts, t, tlim, window, ...)

Arguments

obj
an SpatialPolygonsDataFrame object
counts
a (length(t) by N) matrix containing aggregated case counts for each of the geographical regions defined by the SpatialPolygonsDataFrame, where N is the number of regions
t
vector of times, for each element of t there should correspond a column in the matrix 'counts'
tlim
vector giving the upper and lower bounds of the temporal observation window
window
the observation window, of class owin, see ?owin
...
additional arguments

Value

  • an object of class stapp