potential_analysis: Bootstrapped Potential Analysis

Description Usage Arguments Value References See Also Examples

View source: R/potential_analysis.R

Description

Analysis of multimodality based on bootstrapped potential analysis of Livina et al. (2010) as described in Lahti et al. (2014).

Usage

1
2
3
4
5
6
7
potential_analysis(
  x,
  peak.threshold = 0,
  bw.adjust = 1,
  bs.iter = 100,
  min.density = 1
)

Arguments

x

Input data vector

peak.threshold

Mode detection threshold

bw.adjust

Bandwidth adjustment

bs.iter

Bootstrap iterations

min.density

minimum accepted density for a maximum; as a multiple of kernel height

Value

List with following elements:

References

See Also

plot_potential

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Example data; see help(peerj32) for details
data(peerj32)

# Log10 abundance of Dialister
x <- abundances(transform(peerj32$phyloseq, "clr"))['Dialister',]

# Bootstrapped potential analysis
# In practice, use more bootstrap iterations
# res <- potential_analysis(x, peak.threshold=0, bw.adjust=1,
#    bs.iter=9, min.density=1)

microbiome documentation built on Nov. 8, 2020, 5:08 p.m.