
542 Spatial Point Patterns: Methodology and Applications with R
border edge correction when the mo del was fitted. Proper co mparison of goodness-of-fit should use
this eroded region. The raw residuals sum to z e ro over this eroded region, rather than over the full
window.
The lurking variable plots include pointwise 5% significance band s shown in grey shading.
These are currently based on Monte Carlo sim ulation rather than theoretical standard errors, in the
case of Gibbs processes (th is may change in future versions of spatstat). They are selected by
setting envelope=TRUE. Choosing nsim=39 gives the sign ificance level 1/(39 + 1) = 0.05.
Applying ...