## S3 method for class 'kppm':
simulate(object, nsim = 1, seed=NULL, ...,
window=NULL, covariates=NULL)
"kppm"
.NULL
or an integer that will
be used in a call to set.seed
before simulating the p"owin"
) in which the
model should be simulated.nsim
containing simulated point patterns
(objects of class "ppp"
). The return value also carries an attribute "seed"
that
captures the initial state of the random number generator.
See Details.
simulate
for the class "kppm"
of fitted
cluster point process models.
Simulations are performed by rThomas
,
rMatClust
or rLGCP
depending on the model. The return value is a list of point patterns.
It also carries an attribute "seed"
that
captures the initial state of the random number generator.
This follows the convention used in
simulate.lm
(see simulate
).
It can be used to force a sequence of simulations to be
repeated exactly, as shown in the examples for simulate
.
kppm
,
rThomas
,
rMatClust
,
rLGCP
,
simulate.ppm
,
simulate
data(redwood)
fit <- kppm(redwood, ~1, "Thomas")
simulate(fit, 2)
Run the code above in your browser using DataLab