Sam
Thanks for the note; there's quite a lot to unpack. My comments are in no particular order
--
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/2647a631-38d7-4b0f-b0af-59cb5cfb9808n%40googlegroups.com.
-- Eric Rexstad Centre for Ecological and Environmental Modelling University of St Andrews St Andrews is a charity registered in Scotland SC013532
Sam
Thanks for doing the "replicate"
experiment. I'm still not happy with the CI estimates produced
at the survey level. Yes, they will be large, but not 0 to
infinity. I note that the degrees of freedom associated with
each of those survey-specific estimates are weird (0.10, 0.008,
...) that can't be right. Are you willing to send along the
data (privately, not to the group) so we can further
investigate?
To view this discussion on the web visit https://groups.google.com/d/msgid/distance-sampling/40c00482-0ec4-463d-8e95-a32bc594ed6en%40googlegroups.com.
Sam
I've spend some more time working with your data set. The options "replicate" and "effort_sum" don't produce reasonable degrees of freedom for your survey-specific estimates, so for the moment, those options are not to be considered.
If your interest lies in examining density or abundance of your birds over time (and wish to ignore the average estimates across all surveys), then I suggest you use "geographical" as your stratification option (ignoring the Total across all surveys). Furthermore, you note the small number of replicate points and the small number of detections made during some of the time periods, making inference for some of those surveys dubious.
I've analysed the data pooling some of the
surveys to enhance the robustness of the estimates. Not knowing
your study objectives, it is dangerous for me to make decisions
about combining surveys. I combined the Feb19 and Apr19 surveys
into a single "spring19" survey; Jul19 and Sep19 combined into
"summer19"; Nov19 and Jan20 into "winter19" and Jun20 through
Oct20 into "summer20". In addition to including those surveys
as covariates in the detection function, I also included group
size (as your detections were of bird groups).
The model fits well and might provide robust estimates through time, if not at the temporal granularity you desire.
Code below. Note the probability density
function plots (showing the survey effect) will only work if you
download the most recent version of Distance from CRAN.
library(Distance)
sam <- read.csv("C:/Users/erexs/Downloads/sampoints.csv")
sam$object <- NULL
unit_conversion_point <- convert_units("meter", NULL,
"hectare")
season <- sam
season$month <- month(as.Date.character(sam$Survey_Date,
format = "%d/%m/%Y"))
sp19 <- ifelse(season$month==2 | season$month==4, TRUE,
FALSE)
sum19 <- ifelse(season$month==7 | season$month==9, TRUE,
FALSE)
win19 <- ifelse(season$month==11 | season$month==1, TRUE,
FALSE)
sum20 <- ifelse(season$month==6 | season$month==8 |
season$month==10, TRUE, FALSE)
season$Region.Label[sp19] <- "sp19"
season$Region.Label[sum19] <- "sum19"
season$Region.Label[win19] <- "win19"
season$Region.Label[sum20] <- "sum20"
season.only <- ds(season, transect = "point",
key="hn",adjustment = NULL,
formula=~Region.Label, truncation=160,
convert.units = unit_conversion_point)
season.size <- ds(season, transect = "point",
key="hn",adjustment = NULL,
formula=~Region.Label+size, truncation=160,
convert.units = unit_conversion_point)
gof_ds(season.only, plot = FALSE)
gof_ds(season.size, plot = FALSE)
AIC(season.only, season.size)
plot(season.size, pdf=TRUE, showpoints=FALSE, main="Season and
size as covariates")
add_df_covar_line(season.size,
data=data.frame(Region.Label="sp19", size=1),
lwd=2, col="blue", pdf=TRUE)
add_df_covar_line(season.size,
data=data.frame(Region.Label="sum19", size=1),
lwd=2, col="red", pdf=TRUE)
add_df_covar_line(season.size,
data=data.frame(Region.Label="win19", size=1),
lwd=2, col="green", pdf=TRUE)
add_df_covar_line(season.size,
data=data.frame(Region.Label="sum20", size=1),
lwd=2, col="darkgreen", pdf=TRUE)
legend("topright", title="Season",
legend=c("win19","sp19","sum19","sum20"),
col=c("green","blue","red","darkgreen"),
lwd=2)
season.size.dht2 <- dht2(season.size, flatfile=season,
strat_formula = ~Region.Label,
stratification =
"geographical",sample_fraction = 0.5, total_area = 222.5,
ci_width = 0.95, convert_units =
unit_conversion_point)
print(season.size.dht2, report="density")
To view this discussion on the web visit https://groups.google.com/d/msgid/distance-sampling/40c00482-0ec4-463d-8e95-a32bc594ed6en%40googlegroups.com.