## S3 method for class 'lpp':
envelope(Y, fun=linearK, nsim=99, nrank=1, \dots,
simulate=NULL, verbose=TRUE,
transform=NULL,global=FALSE,ginterval=NULL,
savefuns=FALSE, savepatterns=FALSE,
nsim2=nsim, VARIANCE=FALSE, nSD=2, Yname=NULL)
## S3 method for class 'lppm':
envelope(Y, fun=linearK, nsim=99, nrank=1, \dots,
simulate=NULL, verbose=TRUE,
transform=NULL,global=FALSE,ginterval=NULL,
savefuns=FALSE, savepatterns=FALSE,
nsim2=nsim, VARIANCE=FALSE, nSD=2, Yname=NULL)
"lpp"
)
or a fitted point process model on a linear network
(object of class "lppm"
).nsim
simulated
values. A rank of 1 means that the minimum and maximum
simulated values will be used.fun
.simulate
is an expression in the R language, then this
expression will be evaluated nsim
times,
to obtain nsim
point patterns which areglobal=FALSE
) or simultaneous (global=TRUE
).global=TRUE
.global=TRUE
and the simulations are not based on CSR.TRUE
, critical envelopes will be calculated
as sample mean plus or minus nSD
times sample standard
deviation.VARIANCE=TRUE
.Y
when printing or plotting the results."fv"
)
with additional information,
as described in envelope
.envelope
applicable to point patterns on a linear network.
The argument Y
can be either a point pattern on a linear
network, or a fitted point process model on a linear network.
The function fun
will be evaluated for the data
and also for nsim
simulated point
patterns on the same linear network.
The upper and lower
envelopes of these evaluated functions will be computed
as described in envelope
.
The type of simulation is determined as follows.
Y
is a point pattern (object of class"lpp"
)
andsimulate
is missing orNULL
,
then random point patterns will be generated according to
a Poisson point process on the linear network on whichY
is defined, with intensity estimated fromY
.Y
is a fitted point process model (object of class"lppm"
) andsimulate
is missing orNULL
,
then random point patterns will be generated by simulating
from the fitted model.simulate
is present, it should be an expression that
can be evaluated to yield random point patterns on the same
linear network asY
.fun
should accept as its first argument
a point pattern on a linear network (object of class "lpp"
)
and should have another argument called r
or a ...
argument.envelope
,
linearK
example(lpp)
# uniform Poisson
envelope(X, nsim=4)
# nonuniform Poisson
fit <- lppm(X, ~x)
envelope(fit, nsim=4)
Run the code above in your browser using DataLab