The function simulates a spatial point pattern in a heterogeneous landscape simulated on a square landscape. The study area ('core') is simulated inside the larger landscape that includes a buffer. The size of the core is defined by the lscape.size minus twice the buffer.
There is one habitat covariate X that affects the intensity of the points. X is spatially structured with negative-exponential spatial autocorrelation; the parameters of the field can be chosen to create large 'islands' of similar values or no 'islands' at all, in which case the field is spatially unstructured.
The intensity of STATIC points (e.g. animal activity centers) may be inhomogeneous and affected by the coefficient beta, which is the log-linear effect of X.
To recreate the data sets used in the book with R 3.6.0 or later, include sample.kind="Rounding"
in the call to set.seed
. This should only be used for reproduction of old results.
Previous versions used RandomFields, but that is not currently available on CRAN. fields is now used, but it cannot deal with large values of lscape.size
and theta.X
. If you have RandomFields installed (perhaps by getting it from the CRAN archive), you can load a version of simPPe
that supports it with source(system.file("RandomFieldsSupport", "simPPe.R", package="AHMbook"))
.