"simulate"(object, nsim = 1, seed=NULL, ..., window=NULL, covariates=NULL, verbose=TRUE, drop=FALSE)
"slrm"
.
NULL
or an integer that will
be used in a call to set.seed
before simulating the point patterns.
"owin"
) in which the
model should be simulated.
nsim > 1
).
nsim=1
and drop=TRUE
, the
result will be a point pattern, rather than a list
containing a point pattern.
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 "slrm"
of fitted
spatial logistic regression models.
Simulations are performed by rpoispp
after the intensity has been computed by predict.slrm
. 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
.
slrm
,
rpoispp
,
simulate.ppm
,
simulate.kppm
,
simulate
X <- copper$SouthPoints
fit <- slrm(X ~ 1)
simulate(fit, 2)
fitxy <- slrm(X ~ x+y)
simulate(fitxy, 2, window=square(2))
Run the code above in your browser using DataLab