Kres(object, ...)
"ppm"
),
a point pattern (object of class "ppp"
),
a quadrature scheme (object of class "quad"
),
or the value returned by a prKcom
."fv"
),
essentially a data frame of function values.
There is a plot method for this class. See fv.object
. In normal use, object
is a fitted point process model
or a point pattern. Then Kres
first calls Kcom
to compute both the nonparametric estimate of the $K$ function
and its model compensator. Then Kres
computes the
difference between them, which is the residual $K$-function.
Alternatively, object
may be a function value table
(object of class "fv"
) that was returned by
a previous call to Kcom
. Then Kres
computes the
residual from this object.