lgcpSimSpatial | R Documentation |
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"
)
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. |
a ppp object containing the data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.