Last chance! 50% off unlimited learning
Sale ends in
Given a point process model fitted to a point pattern dataset, this function computes the pseudoscore diagnostic of goodness-of-fit for the model, against moderately clustered or moderately inhibited alternatives of saturation type.
psstG(object, r = NULL, breaks = NULL, …,
model=NULL,
trend = ~1, interaction = Poisson(), rbord = reach(interaction),
truecoef = NULL, hi.res = NULL)
Object to be analysed.
Either a fitted point process model (object of class "ppm"
)
or a point pattern (object of class "ppp"
)
or quadrature scheme (object of class "quad"
).
Optional.
Vector of values of the argument
Optional alternative to r
for advanced use.
Ignored.
Optional. A fitted point process model (object of
class "ppm"
) to be re-fitted to the data
using update.ppm
, if object
is a point pattern.
Overrides the arguments trend,interaction,rbord,ppmcorrection
.
Optional. Numeric vector. If present, this will be treated as
if it were the true coefficient vector of the point process model,
in calculating the diagnostic. Incompatible with hi.res
.
Optional. List of parameters passed to quadscheme
.
If this argument is present, the model will be
re-fitted at high resolution as specified by these parameters.
The coefficients
of the resulting fitted model will be taken as the true coefficients.
Then the diagnostic will be computed for the default
quadrature scheme, but using the high resolution coefficients.
A function value table (object of class "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
.
This function computes the pseudoscore test statistic which can be used as a diagnostic for goodness-of-fit of a fitted point process model.
Consider a point process model fitted to Geyer
) with saturation parameter 1.
The family of alternatives includes
models that are more regular than the fitted model,
and others that are more clustered than the fitted model.
For any point pattern
According to the Georgii-Nguyen-Zessin formula,
The diagnostic
Baddeley, A., Rubak, E. and Moller, J. (2011) Score, pseudo-score and residual diagnostics for spatial point process models. Statistical Science 26, 613--646.
# NOT RUN {
X <- rStrauss(200,0.1,0.05)
plot(psstG(X))
plot(psstG(X, interaction=Strauss(0.05)))
# }
Run the code above in your browser using DataLab