Hello all,
I would like to use the dht2 function in the Distance R package to compute abundance estimates for each of my regions (years of sampling) and their variance. Although I have sucessfully obtained abundance estimates simply using the ds function, I would like to explore and compare the results obtained through the dht2 function, especially the variance.
When I try to use the function for any of my species, I get the following error:
Error in dht2(ddf = list(list(call = ddf(dsmodel = ~mcds(key = "hr", formula = ~log_size), :
Some transects have Effort <=0 or NA
Our sampling design consists of line transects. I have checked that all segments have effort > 0, are not NA and also the class of the column (numeric), but the error still pops up.
Does anyone know what could be the cause of this error? What I could be missing?
Thank you very much in advance, this list has solved and clarified many doubts for me so far! Regards,
Paula.