sim.stpp: Generate spatio-temporal point patterns

Description Usage Arguments Value Author(s) See Also

View source: R/sim.stpp.R

Description

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

Usage

1
2
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; rlgcp for the Log-Gaussian Cox process; rinter for the interaction (inhibition or contagious) process and rinfec for the infectious process.

Value

A list containing:

xyt

Matrix (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.region

Parameters passed in argument.

Author(s)

Edith Gabriel <[email protected]>

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.


stpp-GitHub-community/stpp documentation built on April 19, 2018, 12:12 p.m.