Approximate simulation from a spatiotemoporal log-Gaussian Cox Process. Returns an stppp object.
lgcpSim(
owin = NULL,
tlim = as.integer(c(0, 10)),
spatial.intensity = NULL,
temporal.intensity = NULL,
cellwidth = 0.05,
model.parameters = lgcppars(sigma = 2, phi = 0.2, theta = 1),
spatial.covmodel = "exponential",
covpars = c(),
returnintensities = FALSE,
progressbar = TRUE,
ext = 2,
plot = FALSE,
ratepow = 0.25,
sleeptime = 0,
inclusion = "touching"
)
polygonal observation window
time interval on which to simulate data
object that can be coerced into a spatialAtRisk object. if NULL then uniform spatial is chosen
the fixed temporal component: either a numeric vector, or a function that can be coerced into an object of class temporalAtRisk
width of cells in same units as observation window
parameters of model, see ?lgcppars.
spatial covariance function, default is exponential, see ?CovarianceFct
vector of additional parameters for spatial covariance function, in order they appear in chosen model in ?CovarianceFct
logigal, whether to return the spatial intensities and true field Y at each time. Default FALSE.
logical, whether to print a progress bar. Default TRUE.
how much to extend the parameter space by. Default is 2.
logical, whether to plot intensities.
power that intensity is raised to for plotting purposes (makes the plot more pleasign to the eye), defaul 0.25
time in seconds to sleep between plots
criterion for cells being included into observation window. Either 'touching' or 'centroid'. The former includes all cells that touch the observation window, the latter includes all cells whose centroids are inside the observation window.
an stppp object containing the data
The following is a mathematical description of a log-Gaussian Cox Process, it is best viewed in the pdf version of the manual.
Let
Benjamin M. Taylor, Tilman M. Davies, Barry S. Rowlingson, Peter J. Diggle (2013). Journal of Statistical Software, 52(4), 1-40. URL http://www.jstatsoft.org/v52/i04/
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.
Wood ATA, Chan G (1994). Simulation of Stationary Gaussian Processes in [0,1]d. Journal of Computational and Graphical Statistics, 3(4), 409-432.
Moller J, Syversveen AR, Waagepetersen RP (1998). Log Gaussian Cox Processes. Scandinavian Journal of Statistics, 25(3), 451-482.
# NOT RUN {
library(spatstat.core); library(spatstat.utils); xyt <- lgcpSim()
# }
Run the code above in your browser using DataLab