Hi All,
I've done quite a bit of analysis of distance sampling data in the past via Program Distance. I'd like to do a new analysis in R. I've read through the R examples on the Distance page:
However, I can't find an example of what I would think would be a very standard dataset: point counts of multiple species of birds at multiple sites.
There is an example of how to estimate density for one species at multiple sites (deer pellet example) and a nice example of how to estimate the density of multiple species at one site (multi-species surveys example), but no example that I could find that combines the two. Did I miss it?
I'd like to use the approach in the multi-species surveys example to fit detection functions that take advantage of data from multiple species to fit the detection functions for rarer species with fewer observations, and I need to estimate densities for multiple sites. The stratification in the dht2() function only accepts one level (site or species but not both). I'm guessing it's something quite simple but since none of the examples I could find show how to do this I'm a bit puzzled.
Apologies if I've missed it. I also tried searching in the messages here and despite reading back through 6 years of messages with search terms I couldn't find anything providing an example.
As a simple hack I've created a column that is the species & site columns pasted together as ~species_site and used this for the ~strat_formula argument for dht2(). That works, but I'm guessing there is a better way.
Thank you!
marm
PS: It would be fantastic to add one additional example to the Distance Examples page that combines multiple species at multiple sites. If someone shows me how to do it, I'd happily write the .RMD file to post on the example page so others can see how to do it too.