Jcross.inhom | R Documentation |
For a multitype point pattern,
estimate the inhomogeneous multitype J
function
summarising the interpoint dependence between
points of type i
and of type j
.
Jcross.inhom(X, i, j,
lambda = NULL, lambdaI = NULL, lambdaJ = NULL,
lambdamin = NULL,
...,
r = NULL, ReferenceMeasureMarkSetI = NULL, ratio = FALSE)
X |
The observed point pattern,
from which an estimate of the multitype |
i |
The type (mark value)
of the points in |
j |
The type (mark value)
of the points in |
lambda |
Optional.
Values of the estimated intensity of the point process.
Either a pixel image (object of class |
lambdaI |
Optional.
Values of the estimated intensity of the sub-process of
points of type |
lambdaJ |
Optional.
Values of the the estimated intensity of the sub-process of
points of type |
lambdamin |
Optional. The minimum possible value of the intensity over the spatial domain. A positive numerical value. |
... |
Extra arguments passed to |
r |
vector of values for the argument |
ReferenceMeasureMarkSetI |
Optional. The total measure of the mark set. A positive number. |
ratio |
Logical value indicating whether to save ratio information. |
This function is the counterpart of Jcross
for inhomogeneous patterns. It is computed as a special case
of Jmulti.inhom
.
Object of class "fv"
containing the estimate of the
inhomogeneous multitype J
function.
Jonatan \Gonzalez and \adrian.
Cronie, O. and Van Lieshout, M.N.M. (2015) Summary statistics for inhomogeneous marked point processes. Annals of the Institute of Statistical Mathematics DOI: 10.1007/s10463-015-0515-z
Jdot.inhom
, Jmulti.inhom
,
Jcross
.
X <- rescale(amacrine)
if(interactive() && require(spatstat.model)) {
## how to do it normally
mod <- ppm(X ~ marks * x)
lam <- fitted(mod, dataonly=TRUE)
lmin <- min(predict(mod)[["off"]]) * 0.9
dd <- NULL
} else {
## for package testing
lam <- intensity(X)[as.integer(marks(X))]
lmin <- intensity(X)[2] * 0.9
dd <- 32
}
JC <- Jcross.inhom(X, "on", "off", lambda=lam, lambdamin=lmin, dimyx=dd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.