2
$\begingroup$

I am a rookie on R and on spatstat package. I would like some help with the Kres function on spatstat. As is always wise to plot the residuals from any kind of analysis, I'm having trouble interpreting the residuals plot. My goal in using this package it is to access the spatial pattern for this data. So, I have some simulate data and I ran the Kest function. As you can see, aggregation in all scales.enter image description here When I plot the residuals from the analysis, the residual line (with isotropic correction) is it far away from the perfect fit. Should I be concerned about those residuals? If yes, what it is the advice to adjust this problem.enter image description here

$\endgroup$
3
$\begingroup$

It is difficult to get an impression of which kind of analysis you are doing. If you have simply fitted a model with complete spatial randomness (CSR), a.k.a. a homogeneous Poisson model your result is not surprising. It simply tells you what the difference between the empirical K-function and its expected value under CSR is. It is basically equivalent to K_obs-K_theo from your first plot. Clearly CSR is a very bad model for this dataset. The idea with Kres is that you fit a better model and then run Kres on that to see whether the expected value of K under that model is close to the empirical K.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.