Average probability of detection values

9 views
Skip to first unread message

Val Harvey

unread,
Oct 24, 2025, 10:03:59 AM (14 days ago) Oct 24
to distance-sampling

Bonjour,

Is it possible to retrieve the values of the average prediction curve for a given model — specifically, the curve shown as a solid line in this figure? Are these values saved within the object and available for later retrieval? I would like to calculate the average detection probability of my model at different distances.

Otherwise, for models that contain only categorical variables, I’ve been able to recreate the curves and obtain the average curve values. However, I don’t fully understand how to reproduce this information for models that include both categorical and continuous variables.

Thank you in advance for your help with this question,


Eric Rexstad

unread,
Oct 24, 2025, 11:17:55 AM (14 days ago) Oct 24
to Val Harvey, distance-sampling
Val

I think we have previously had requests for code to produce what you want. I ask that you read through this thread from the list, going back a couple of years.

focus on the exchanges in the thread in May 2023 and January 2024

I revised the attached R code about 18 months ago to cope with both half normal and hazard rate key functions. I'm making the assumption that you are conversant in R. The code is not brilliantly documented, but in essence it should extract the covariate coefficients from a fitted model object and produce what you want.

From: distance...@googlegroups.com <distance...@googlegroups.com> on behalf of Val Harvey <val_h...@hotmail.com>
Sent: 24 October 2025 14:56
To: distance-sampling <distance...@googlegroups.com>
Subject: [distance-sampling] Average probability of detection values
 
--
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 visit https://groups.google.com/d/msgid/distance-sampling/82457a1a-f811-4fbd-a5c1-b106e8567f90n%40googlegroups.com.
ESW for hazard and halfnormal.R
Reply all
Reply to author
Forward
0 new messages