Rarefaction controls the false positive rate when using adonis from the vegan R package (CC193)
Pat creates a simulation to test whether rarefaction can control the false positive rate when using the adonis function from the vegan R package. He reviews alternatives to rarefaction and how to implement them before using vegdist and avgdist from vegan to calculate distances. He then shows how to test for significance using adonis (also called PERMANOVA). Finally, he shows how to run 100 iterations of the test with different random number generator seeds using purrr’s map_dfr and then speeds things up by parallelizing it with furrr’s future_map_dfr. Rarefaction was the only method able to control the false positive rate with non-rarefied, relative abundance, and normalized data having high false positive rates. He’ll show how to synthesize and visualize the data using tools from dplyr and other tidyverse packages.
You can browse the state of the repository at thecomments powered by Disqus