| Extract.influence.ppm | R Documentation |
Extract a subset of an influence object, or extract the influence values at specified locations.
## S3 method for class 'influence.ppm'
x[i, ...]
x |
A influence object (of class |
i |
Subset index (passed to |
... |
Ignored. |
An object of class "influence.ppm" contains the values of the
likelihood influence for a point process model, computed by
influence.ppm. This is effectively a marked point
pattern obtained by marking each of the original data points
with its likelihood influence.
This function extracts a designated subset of the influence values, either as another influence object, or as a vector of numeric values.
The function [.influence.ppm is a method for [ for the
class "influence.ppm". The argument i should be
an index applicable to a point pattern. It may be either
a spatial window (object of class "owin")
or a sequence index.
The result will be another influence object
(of class influence.ppm).
To extract the influence values as a numeric vector,
use marks(as.ppp(x)).
Another object of class "influence.ppm".
influence.ppm.
fit <- ppm(cells, ~x)
infl <- influence(fit)
b <- owin(c(0.1, 0.3), c(0.2, 0.4))
infl[b]
infl[1:5]
marks(as.ppp(infl))[1:3]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.