A function to simulate from a log gaussian process
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"
)
observation window
an object that can be coerced to one of class spatialAtRisk
the expected number of cases
width of cells in same units as observation window
parameters of model, see ?lgcppars. Only set sigma and phi for spatial model.
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
how much to extend the parameter space by. Default is 2.
logical, whether to plot the latent field.
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.
a ppp object containing the data