I ran the detection and density function.
Using the hazard-rate model , It would seem that there are 2.1 Chinese water deer per square km.
This please note was at a standard error of NA.
Even calculating the 95% confidence interval gave NA.
It also gave a detection probability of 98%.
The AIC was 507.9647, higher than the half norm.
Reflection;
I was trying too combine all three and compare their AIC’s, i cant get the code to work,
The code
models ← list(
hn… = hn_NullT, # hn… is the model name in our list
unif… = unif_NullT,
haza… = hn_NullH)
fmList ← fitList(fits = models)
Error i get
fmList ← fitList(fits = models)
Error in validityMethod(object) :
Data are not the same among models. Make sure you use the same unmarkedFrame object for all models.
Though all the three models are Formal class unmarked fitds
This error means that your models weren’t all built on the same data, meaning that any comparisons using Information Theory/AIC aren’t valid
Did you run some models on the truncated dataset, and some on the original data?
The maximum distance on your histogram suggests that particular model was run on untruncated data. The flat line plotted for the detection function suggests it’s actually the uniform model. You may need to check through your code, and in particular the object names, to be sure you’re passing in comparable models to fitList()
If I understand the theory correctly, the model that best fits our data is the one with the lowest AIC, and lowest DeltaAIC therefore according to the model selection table that would be our hazard model.
The hazard model results in a density of 0.106 water deer per ha, therefore 10 deer per square kilometre. The 95% confidence interval spans 0.05 to 0.24.
The detectability of water deer is 20.1m and standard deviation is also high 20.4.
After calculating the confidence intervals I am not sure how to extrapolate the following data to calculate the range at which the deer will be observed:
Backtransformed linear combination(s) of Detection estimate(s)
I addition, when trying to do the histogram of the hazard model, it gave me issues: *Error in integrate(gxhaz, 0, Inf, shape = shape, scale = scale) : the integral is probably divergent.
Challenge:
At the moment I don’t really understand how to read the plot from the hazard model. I also used the same code for the exp model, and a similar issue happened with the histogram.
Based on the model selection table above we can see that the best-supported model is the model that uses the hazard-rate detection function, as that model has the lowest AIC and a delta of 0.
The model estimates the density of 0.106 water deer per hectar or 10 water per square km.
The effective half-strip width is 25.2m of our deer transects and our detection probability (EHSW/220) is 11%.
Challenges/queries:
I was unable to get a histogram for hazard-rate
hist(hazard_NullT)
Error in integrate(gxhaz, 0, Inf, shape = shape, scale = scale) :
the integral is probably divergent
and
I wasn’t sure how to interpret the detectability estimate. Does the hazard-rate detection function have the same properties as normal and half-normal?
I adapted the code from the ‘calculate effective strip half width’ slide and changed the distance from 350 to 220 because that was new distance after we truncated the data.
and did the same with the code from the following slide
ESHWHaz$value / 220
I just followed the same code/method as we did with the pre-truncated data. But I did think that the output seemed low at only 11% detection probability, so not 100% sure I did it correctly.
I’d be interested to see how the code works for you.
Model Selection Table with the values for three detection functions for Chinese Water Deer Data:
To interpret the AIC from the three detection functions, Uniform>Half Normal>Hazard rate. Therefore, my understanding is that the hazard rate would be the best detection function for analyzing this data. But I couldn’t get R to plot the hazard rate histogram. I hope to try again.
Here’s the one for uniform:
Figure 2.Lemur sightings data, hazard detection data
Interpretation
The halfnorm detection model has the least AIC. The halfnorm model results in a density of 1.75 lemur per ha, therefore 175 lemur per km2. The 97% confidence interval spans from 1.57 to 1.96. The detectability of water deer is 11.3m.
The effective half-strip width is 14.1m of our lemur transects and our detection probability (EHSW/30) is 47%.
I’ve added some explanation as to why the hazard-rate model is not providing a graph in our course discussion area here: Problems with Hazard-rate histogram
I’ve also added an explanation of the two hazard rate parameters (shape and scale), and an example of using uneven distance bins/histogram breaks to make it easier to fit a detection function to a dataset with low sightings
Given this difficulty, I’m awarding a badge to all of you who attempted this assignment and interpretation of your results