Hi,
I am using camera trap data and trying to plot estimates of "smoothed" occupancy for coyotes across my study area. I have 9 primary (2016-2024) sampling occasions, 3 secondary (June-August) sampling occasions, and 68 sites. "Sites" are defined as 14 km2 grid cells here. Coyotes, are prevalent across my study area, and consequently had extremely high smoothed occupancy probabilities each year across this relatively broad spatial scale. My goal is to use a line plot to portray mean smoothed occupancy probabilities across all my sites for each year, along with the associated 95% confidence intervals (CI). One method I was originally trying to implement was to use a 1000 iteration non-parametric bootstrap to calculate standard errors (SE) associated with each years' mean smoothed occupancy probability, and then multiply these SE's by 1.96 while adding or subtracting from the occupancy estimates. For example, see the code below:
fm <- colext(~ 1, ~ 1, ~ 1, ~ effort, umf) # Fit model
fm.1 <- nonparboot(fm, B = 1000) # Non-parametric bootstrap
predicted_occ.Coyote <- data.frame(year = c(2016:2024),
smoothed_occ = smoothed(fm.1)[2,],
SE = fm...@smoothed.mean.bsse[2,],
Lower_CI = smoothed(fm.1)[2,] - 1.96*fm...@smoothed.mean.bsse[2,],
Upper_CI = smoothed(fm.1)[2,] + 1.96*fm...@smoothed.mean.bsse[2,])
Below are screenshots of what the above data frame looks like, along with a corresponding line plot of smoothed occupancy & CI's over time:
The issue I am running into using the above method for calculating CI's is that my upper CI's are all > 1.0. In theory, occupancy probabilities cannot be > 1.0. Does anyone have an alternate way of calculating CI's that are bound between 0-1 for smoothed occupancy probabilities, using the non-parametric bootstrap approach?
Thank you!
Sujay