Maik
I've not used the `activity` package, nor am I a behaviourist. You report that some monthly estimates are smaller than a lower confidence bound of what?
To perform a parametric bootstrap of the estimated activity, I don't think you would use the confidence interval from which to resample. Instead you assume some distribution for the activity value and resample from that distribution. If the underlying distribution is the von Mises (I'm not sure this is true), there are a couple of R packages that generate random variates from a von Mises distribution given a direction and concentration parameter:
http://finzi.psych.upenn.edu/library/circular/html/vonmises.html
--
You received this message because you are subscribed to the Google Groups "distance-sampling" group.
To unsubscribe from this group and stop receiving emails from it, send an email to distance-sampl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/distance-sampling/1ea9fc55-a8aa-406f-88b2-3e3601dc0f87n%40googlegroups.com.
-- Eric Rexstad Centre for Ecological and Environmental Modelling University of St Andrews St Andrews is a charity registered in Scotland SC013532

Thanks Maik. Yes, I agree that those results don’t make sense. You could get results like that if the number of bootstrap resamples was very small, but I assume that is not the case here. I’m copying this to Marcus Rowcliffe who may be able to help.
Steve Buckland
To view this discussion on the web visit https://groups.google.com/d/msgid/distance-sampling/7d1c0e59-65cc-405b-b73b-ffb3d13f3b03n%40googlegroups.com.
Dear Maik,
Probably you checked that, but when using “fitact” function, you have to define the sampling method for bootstrapping in the argument “sample” of the function.
“model” is recommended for large sample size (> 100-200), and “data” for sample size < 100.
Hope it helps
Pablo
De: distance...@googlegroups.com <distance...@googlegroups.com> En nombre de Maik Henrich
Enviado el: lunes, 15 de febrero de 2021 18:15
Para: distance-sampling <distance...@googlegroups.com>
Asunto: Re: [distance-sampling] Activity estimates
Dear Steve Buckland,
Thanks a lot! I did use 10 000 bootstrap iterations, so too few bootstrap resamples should indeed not be the problem here.
Your support is greatly appreciated!
All the best,
Maik
Stephen Buckland schrieb am Montag, 15. Februar 2021 um 18:03:30 UTC+1:
Thanks Maik. Yes, I agree that those results don’t make sense. You could get results like that if the number of bootstrap resamples was very small, but I assume that is not the case here. I’m copying this to Marcus Rowcliffe who may be able to help.
Steve Buckland
From: distance...@googlegroups.com [mailto:distance...@googlegroups.com] On Behalf Of Maik Henrich
Sent: 15 February 2021 16:43
To: distance-sampling <distance...@googlegroups.com>
Subject: {Suspected Spam} Re: {Suspected Spam} [distance-sampling] Activity estimates
Dear Eric Rexstad, dear Stephen Buckland,
Thank you both for your responses!
Some monthly estimates are smaller than their respective confidence intervals, that is what I wanted to say. The actmod-object that is generated by the activity package contains an estimate, its standard error and the lower and upper bounds of the associated confidence interval. For this reason, the estimate as well as the confidence interval should refer to the mean activity. For the confidence intervals, you can choose between non-parametric and parametric bootstrapping (sampling from the fitted probability density distribution) and the latter is recommended for a sample size of 100 or more.
When I compute the activity estimates for each month in this way for male red deer, I get this:
To view this discussion on the web visit https://groups.google.com/d/msgid/distance-sampling/bf9e7269-9aad-4265-b7ee-8d815b64f7b4n%40googlegroups.com.
Dear Marcus,
Thanks a lot for your quick reply!
I noticed that the problem was most pronounced in summer. During
this time, there were more than 100 observations per month
(e.g.1029 observations in July) and I therefore used
sample="model".
Using July as an example, I tested the use of sample="data"
instead. As a result, the confidence intervals look much nicer
and also fit a normal distribution with SE * 1.96 very well.
sample="model"

sample="data"

For now, I would just use sample="data" regardless of the sample
size and everything should be fine. Of course it is still
interesting why this happens and how to prevent it.
Thanks again for the support and of course also for developping
this very useful R package!
All the best,
Maik
Dear Maik
There seems to be a peculiarity in the way circular kernel functions work with bootstrapping which can occasionally lead to parts of fitted trend lines falling outside bootstrapped confidence intervals, depending on the way you resample. It’s something I’ve noticed but not had time to get to the bottom of (hence only very cursory mention of issues with coverage referred to in the fitact function documentation). That said, I’ve never seen the issue arise at the peak of the activity curve, and since the activity level estimate is derived from the height of this peak, I’m surprised to see that the estimate can fall outside its supposed CI – clearly that shouldn’t happen (assuming adequate replication). The fact that it’s happening fairly consistently across your monthly estimates seems extremely odd to me. I’m intrigued!
Unfortunately actmod objects do not store the raw bootstrapping results. Perhaps this is something to add to the package, although in the meantime I think it shouldn’t be too hard to hack the available functions to create your own distributions. In my experience, bootstrapped activity levels usually look tolerably normally distributed around the estimate, so I’ve generally used a normal approximation based on the SE.
Best regards
Marcus
The Zoological Society of London is incorporated by Royal Charter - Registered Charity in England and Wales no. 208728.
Principal Office England - Company Number RC000749 - Registered address Regent's Park, London, England NW1 4RY
This e-mail has been sent in confidence to the named addressee(s). If you are not the intended recipient, you must not disclose or distribute it in any form, and you are asked to contact the sender immediately.
Views or opinions expressed in this communication may not be those of The Zoological Society of London and, therefore, The Zoological Society of London does not accept legal responsibility for the contents of this message.
The recipient(s) must be aware that e-mail is not a secure communication medium and that the contents of this mail may have been altered by a third party in transit.
If you have any issues regarding this mail please visit:
https://www.zsl.org/about-us/contact-us