estimate_variability: Stability analysis. Calculates average Pearson ' correlation...

Description Usage Arguments Value Author(s) References Examples

View source: R/variability.R

Description

Stability analysis. Calculates average Pearson ' correlation between samples in the input data and picks the lower ' triangular matrix to avoid duplicating the correlations. Returns correlations and stability estimate (average of the correlations). Can also be used to calculate stability between two data sets. Then provide two data sets as inputs.

Usage

1
estimate_variability(dat1, dat2 = NULL, method = "pearson")

Arguments

dat1

data matrix phylotypes vs. samples (in log10 scale)

dat2

Optional. Second data matrix phylotypes vs. samples. Provide this to calculate stability between two (paired) data sets.

method

Correlation method (see ?cor)

Value

List with correlations and astability estimate

Author(s)

Contact: Leo Lahti microbiome-admin@googlegroups.com

References

See citation('microbiome')

Examples

1
2
data(peerj32)
  s <- estimate_variability(t(peerj32$microbes)[, 1:5])

microbiome/microbiomeold documentation built on May 22, 2019, 9:57 p.m.