ctmm-initiative / ctmm

Continuous-Time Movement Modeling. Functions for identifying, fitting, and applying continuous-space, continuous-time stochastic movement models to animal tracking data.
http://biology.umd.edu/movement.html
43 stars 10 forks source link

Use of overlap function with vectors #41

Closed Kasi21 closed 2 years ago

Kasi21 commented 2 years ago

Hello,

I would like to generate confidence intervals for the BA Coefficient for two vectors (that represent activity curves of detection counts - I do not want to model the probability distribution functions).

Is it possible to use the overlap function in ctmm to compute the BA coefficient and the associated confidence intervals for these two vectors ?

Alternatively, do you know of how else to generate a confidence interval for the BA coefficient in my case (I am able to generate the BA coefficient with a custom function).

I know that this use case is not movement related, but I was wondering if ctmm would still be suitable for my need.

Thank you in advance,

Kasim

chfleming commented 2 years ago

The BA calculation in ctmm is coded for either 2D Gaussian distributions or 2D rasterized distributions, so it won't work in other cases, as coded.

Additionally, I don't know the meaning of the Bhattacharyya affinity outside of some kind of distribution. So you could calculate the BA for two activity distributions, if you had the probability of each activity as a function of time. The point estimate for that seems pretty straightforward, and would be overlap as a function of time. But I'm not familiar enough with this kind of data to know what the uncertainty would be to propagate it.

Kasi21 commented 2 years ago

That's useful to know. Thank you for your reply - I will look at some other options.

All the best