Hi all,
I am using distance sampling for line transects to estimate density of raptors. I used the ds() function to create a pooled detection function (to boost sample size), but want to obtain species-specific density estimates for multiple sites with bootstrapping.
The model looks like this:
rapt_null <- ds(rapt2, truncation=200, key="hr", adjustment=NULL, convert_units=0.001)
To get species specific density estimates stratified by site, I have been using bootdht with the pooled model, a separate flatfile for each species, and resampling by strata:
swhaboot <- bootdht(model = rapt_null,
flatfile = swha,
summary_fun = bootdht_Dhat_summarize,
resample_strata = TRUE,
convert_units = 0.001,
nboot = 100,
cores = 1)
but it will only return blank data frames.
I tried the same method without bootstrapping in dht2, and got errors regarding the length of the Region.Label vectors.
Looking for any advice or ideas!
Thanks,
Erica