lgcpSimSpatial: lgcpSimSpatial function

View source: R/spatialOnly.R

lgcpSimSpatialR Documentation

lgcpSimSpatial function

Description

A function to simulate from a log gaussian process

Usage

lgcpSimSpatial(
  owin = NULL,
  spatial.intensity = NULL,
  expectednumcases = 100,
  cellwidth = 0.05,
  model.parameters = lgcppars(sigma = 2, phi = 0.2),
  spatial.covmodel = "exponential",
  covpars = c(),
  ext = 2,
  plot = FALSE,
  inclusion = "touching"
)

Arguments

owin

observation window

spatial.intensity

an object that can be coerced to one of class spatialAtRisk

expectednumcases

the expected number of cases

cellwidth

width of cells in same units as observation window

model.parameters

parameters of model, see ?lgcppars. Only set sigma and phi for spatial model.

spatial.covmodel

spatial covariance function, default is exponential, see ?CovarianceFct

covpars

vector of additional parameters for spatial covariance function, in order they appear in chosen model in ?CovarianceFct

ext

how much to extend the parameter space by. Default is 2.

plot

logical, whether to plot the latent field.

inclusion

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.

Value

a ppp object containing the data


lgcp documentation built on Oct. 3, 2023, 5:08 p.m.