Description Usage Arguments Details References See Also Examples
View source: R/micro_PERMANOVA.R
A wrapper function to call adonis2
from the vegan
package. PERMANOVA is a method for partitioning distance matrices among sources of variation and fitting linear models (e.g., factors, polynomial regression) to distance matrices; uses a permutation test with pseudo-F ratios
1 | micro_PERMANOVA(beta_div, micro_set, method, ..., nperm = 999, seed = NULL)
|
beta_div |
A dissimilarity matrix calculated by |
micro_set |
A tidy_micro data set |
method |
A character string indicating the method used to calculated dissimilarity |
... |
Covariates of interest |
nperm |
Number of permutations |
seed |
Random seed to use for test. This is highly recommended for reproducibility |
The function adonis2 is based on the principles of McArdle & Anderson (2001) and can perform sequential, marginal and overall tests. Function adonis2 also allows using additive constants or squareroot of dissimilarities to avoid negative eigenvalues
help(vegdist)
help(adonis2)
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.