RetoSchmucki / rbms

A home for the latest rbms R package
https://retoschmucki.github.io/rbms/
Other
4 stars 4 forks source link

Weird collated index and lower IC #20

Closed SarahVray closed 6 months ago

SarahVray commented 1 year ago

Hi @RetoSchmucki, that's me again ^^" For several species in some years, I obtain a very low collated index and/or a very low CI.

Here is the example of A. agestis: Aricia agestis_collated index Aricia agestis_collated index.csv Here are the counts per year: Aricia agestis_weighted_counts_per_year_month Aricia agestis_flight curve

Here is another example, P. c-album: Polygonia c-album_collated index.csv Polygonia c-album_collated index In 2012, the collated index looks OK but the lower CI is very low. In 2017, the collated index is very low although it is the year with the highest counts: Polygonia c-album_weighted_counts_per_year_month But there is clearly an issue with the computed flight curve for 2017 (see issue #21).

Thank you very much for your help!

RetoSchmucki commented 11 months ago

Hi @SarahVray The CI is computed by resampling your sites. If you have a species that is only present in very few sites, there is a chance that the resampling (with replacement) might not include the site where it is observed, resulting in a collated index of "0". If this happens more than 5% of the time, the "0" will be in your 95%CI. Unfortunately, this is the limit of the bootstrap CI, and it does not perform well with species on rare sites.

SarahVray commented 10 months ago

Hi @RetoSchmucki, I see, it makes sense. Thank you for your explanation!