## S3 method for class 'leverage.ppm':
[(x, i, ...)
"leverage.ppm"
)
computed by leverage.ppm
.[.im
).
Either a spatial window (object of class "owin"
)
or a spatial point pattern (object of class "ppp"
).[.im
,
especially the argument drop
."leverage.ppm"
,
or a vector of numeric values of leverage."leverage.ppm"
contains the values of the
leverage function for a point process model, computed by
leverage.ppm
.This function extracts a designated subset of the leverage values, either as another leverage object, or as a vector of numeric values.
The function [.leverage.ppm
is a method for [
for the
class "leverage.ppm"
. The argument i
should be either
"owin"
)
determining a region where the leverage map is required.
The result will typically be another leverage map
(object of classleverage.ppm
)."ppp"
)
specifying locations at which the leverage values are required.
The result will be a numeric vector.[.im
, is applied to
the leverage map. If this yields a pixel image, then the result of
[.leverage.ppm
is another leverage object. Otherwise,
a vector containing the numeric values of leverage is returned.leverage.ppm
.fit <- ppm(cells, ~x)
lev <- leverage(fit)
b <- owin(c(0.1, 0.3), c(0.2, 0.4))
lev[b]
lev[cells]
Run the code above in your browser using DataLab