Good afternoon,
I'm having a persistent issue when using dht2().
My data is stratified geographically and I want to estimate the abundance across strata and overall. Data was stratified by preserves, and since two of them were smaller, they received 5 cameras instead of the 10 designated to the largest preserve.
Here is my relevant code:
--- BEGIN ---
coytsects <- cbind.data.frame(unique(coyobs.df$Sample.Label),
c(34067,587,40875,3373,10579,15217,7289,2852))
colnames(coytsects) <- c("Sample.Label", "Effort")
geoarea <- cbind.data.frame(c("LeonLevy", "Brownell", "Marx"),
c(14624094, 5284054, 214336))
colnames(geoarea) <- c("Region.Label", "Area")
dht2(Coy.hn$ddf, observations = coyobs.dht, transects = coytsects,
geo_strat = geoarea, convert_units = conversion.factor, er_est = 4.407E-04,
stratification = "geographical", strat_formula = ~Region.Label,
total_area = 20122484)
--- END CODE ---
Every time I run the dhts() command, I get the following error:
Error in dht2(Coy.hn$ddf, observations = coyobs.dht, transects = coytsects, :
Some transects have Effort <=0 or NA
I have checked over and over and over again, and there are no <=0 or NA values in my Effort column whatsoever. I've restarted the RStudio program in case it was a software problem, I've rounded up my effort numbers from decimals in case that was tripping up the command, and I'm still getting the same error.
I looked up a similar question from 2024 and the answer didn't help, as my data is stratified geographically and each stratum was treated slightly differently, again due to the number of cameras.
I know the ds() command will give me abundance and density estimates, but I would really like to figure out what the issue is here instead of just ignoring it, as I will need to use this in the ongoing project.
Thanks,
Sunny M.