Learn R Programming

stpp (version 1.0-3)

sim.stpp: Generate spatio-temporal point patterns

Description

Generate one (or several) realisation(s) of a spatio-temporal point process in a region S x T.

Usage

sim.stpp(class="poisson", s.region, t.region, npoints=NULL, nsim=1, ...)

Arguments

class
Must be chosen among "poisson", "cluster", "cox", "infectious" and "inhibition".
s.region
two-column matrix specifying polygonal region containing all data locations. If s.region is missing, the unit square is considered.
t.region
vector containing the minimum and maximum values of the time interval. If t.region is missing, the interval [0,1] is considered.
npoints
number of points to simulate.
nsim
number of simulations to generate. Default is 1.
...
additional parameters related to the class parameter. See rpp for the Poisson process; rpcp for the Poisson cluster process;

Value

  • A list containing:
  • xytmatrix (or list of matrices if nsim>1) containing the points (x,y,t) of the simulated point pattern. xyt (or any element of the list if nsim>1) is an object of the class stpp.
  • s.region, t.regionparameters passed in argument.

See Also

rpp, rinfec, rinter, rpcp and rlgcp for the simulation of Poisson, infectious, interaction, Poisson cluster and log-gaussian Cox processes respectively; and plot.stpp, animation and stan for plotting space-time point patterns.