psst(object, fun, r = NULL, breaks = NULL, ...,
trend = ~1, interaction = Poisson(), rbord = reach(interaction),
truecoef=NULL, hi.res=NULL, funargs = list(correction="best"),
verbose=TRUE)
"ppm"
)
or a point pattern (object of class "ppp"
)
or quadrature scheme (object of class "quad"
).r
for advanced use.hi.res
.quadscheme
.
If this argument is present, the model will be
re-fitted at high resolution as specified by these parameters.
The coefficients
of the refun
."fv"
),
essentially a data frame of function values. Columns in this data frame include dat
for the pseudosum,
com
for the compensator and res
for the
pseudoresidual.
There is a plot method for this class. See fv.object
.
According to the Georgii-Nguyen-Zessin formula, $V(r)$ should have mean zero if the model is correct (ignoring the fact that the parameters of the model have been estimated). Hence $V(r)$ can be used as a diagnostic for goodness-of-fit.
This algorithm computes $V(r)$ by direct evaluation of the sum and integral. It is computationally intensive, but it is available for any summary statistic $S(r)$.
The diagnostic $V(r)$ is also called the pseudoresidual of $S$. On the right hand side of the equation for $V(r)$ given above, the sum over points of $x$ is called the pseudosum and the integral is called the pseudocompensator.
psstA
,
psstG
.data(cells)
fit0 <- ppm(cells, ~1) # uniform Poisson
<testonly>fit0 <- ppm(cells, ~1, nd=8)</testonly>
G0 <- psst(fit0, Gest)
G0
if(interactive()) plot(G0)
Run the code above in your browser using DataLab