Closed
Description
I've been working on updating the mobr code for computing the beta diversity metrics. I'll post a link to my prototype code in a bit. Here are the main changes I'm in the process of implementing let me know if you have suggestions or questions:
The main function for carrying out diversity metric estimation is get_mob_stats
. I want that function to:
- estimate diversity at the sample (alpha), group (gamma), and uber (study) scales.
- estimate beta diversity between gamma and alpha scales and study and gamma scales
- extend the bootstrap procedure currently implemented only for group (gamma) estimates to also estimate beta diversity interval and study scale diversity interval.
- remove default behavior or using the permutation test of randomly swapped sites for testing of significance
Some quick questions I have:
- How does "study" scale sound in lieu of "uber" scale? An alternative that Harte uses is "anchor" scale or I could also see "pool" scale being appropriate.
- @sablowes and @jmchase indicated that the permutation test implemented in
get_mob_stats
was often not appropriate or was inappropriately interpreted by users. Can you please elaborate so we can update the documentation with these notes and modify the default behavior appropriately. I still feel that there are certain contexts in which a random sample swap is appropriate to test the hypothesis of are the diversity indices different between treatments. It's a pretty standard non-parametric procedure for doing this. - @T-Engel is the plan that we're going to copy the
beta_C
package functions intomobr
or are you wanting to keep that as a separate R package?