Skip to content
Prev 27988 / 29559 Next

unable to remove spatial autocorrelation from a binomial gam

Hello Olga

Thanks a lot for your response. It is very helpful.

Yes, my data is presence/absence because I'm observing the occurrence of
bear damaging apiaries in a particular region. Since there is a
compensation system that is running for a long time we can assume that
almost all damage is included in the database. So perhaps a few absences
could be presences (a beekeeper not claiming the damage) but I'm
pretty sure that it'd be marginal. I have also read what you say about
environmental data not being always an issue that should be removed from a
model. But in some books and articles, it is written that properly
accounting for autocorrelation is necessary for obtaining reliable
statistical inference (
http://highstat.com/index.php/mixed-effects-models-and-extensions-in-ecology-with-r
 see also here
https://esajournals.onlinelibrary.wiley.com/doi/10.1002/ecy.1674 ). What
should I follow? So far my approach is more conservative and I try to
remove since I imagine reviewers asking me to do so.

I knew about the possibility of subsampling to avoid autocorrelation but
I've read that it's not the best solution. That's why I was trying to use
correlation structures. I have got the advice to use the function gamm that
allow such correlations and check if the model fit is more ore less similar
to the one of a gam model. I am in the middle of that now and waiting for
the gamm to finish as it is computationally costly (it may take a few days).
I didn't know about the package that you recommended so I will take a
look at it. Maybe the weightCases() function will be a good solution to my
problem.

Thank you so much once again for your help.

All the best,
Carlos
On Fri, 10 Apr 2020 at 12:04, Olga Boet <formigareina at gmail.com> wrote: