com_r2-mina: Function for unexplained variance ratio calculation indicated...

Description Usage Arguments Value Examples

Description

Function for unexplained variance ratio calculation indicated in Anderson, M.J. 2001. A new method for non-parametric multivariate analysis of variance. Austral Ecology, 26: 32–46.

Usage

1
2
3
4
5
## S4 method for signature 'mina,ANY'
com_r2(x, group)

## S4 method for signature 'mina,character'
com_r2(x, group)

Arguments

x

An mina object with 'dis' and 'des' defined.

group

The name(s) of column(s) defined as experimental setup group(s).

Value

r2 The variance ratio cannot be explained by given groups.

Examples

1
2
3
4
5
maize <- new("mina", tab = maize_asv2, des = maize_des2)
maize <- norm_tab(maize, method = "raref")
maize <- fit_tabs(maize)
maize <- com_dis(maize, method = "bray")
com_r2(maize, group = c("Compartment", "Soil", "Host_genotype"))

Guan06/mina documentation built on Feb. 21, 2022, 11:56 a.m.