Hello fellow unmarked fans,
Myself and others have previously asked questions on this matter but after reading through the posts and vignettes I'd like to get some final clarification on estimating detection probabilities before I go off and publish something that is not done correctly. My questions are these:
1. Is it okay to calculate overall detection probabilities using getP(model_name) when I have detection covariates? My thought is to use this:
mean(rowSums(getP(model_name)))
to calculate the mean value of each point's detection probability (each of which is the sum of detection probabilities for each distance bin)
2. To estimate covariate effects on detection rates, Richard has suggested we use the predict function to get values of sigma and then plot them using code such as this:
plot(function(x) gxhn(x, sigma=19.1), 0, 80, xlab="Distance (m)",
+ ylab="Detection prob", cex.lab=0.7,
+ cex.axis=0.7, las=1)
where 19.1 is a predicted value and 0-80 is my range of distances.
If I am using a hazard key function it will look like this:
plot(function(x) gxhaz(x, shape=19.1, scale=exp(coef(model_name,type="scale"))), 0, 80, xlab="Distance (m)",
+ ylab="Detection prob", cex.lab=0.7,
+ cex.axis=0.7, las=1)
Note that I am exponentiating the scale parameter.
Does that all look correct?
Thanks very much!
Andrew