sparccboot: This function gets bootstrapped estimates of SparCC...

View source: R/networks.R

sparccbootR Documentation

This function gets bootstrapped estimates of SparCC correlation coefficients adapted from https://github.com/zdk123/SpiecEasi/blob/master/R/spaRcc.R

Description

This function gets bootstrapped estimates of SparCC correlation coefficients adapted from https://github.com/zdk123/SpiecEasi/blob/master/R/spaRcc.R

Usage

sparccboot(
  data,
  sparcc.params = list(),
  statisticboot = function(data, indices) triu(do.call("sparcc", c(list(data[indices, ,
    drop = FALSE]), sparcc.params))$Cor),
  statisticperm = function(data, indices) triu(do.call("sparcc",
    c(list(apply(data[indices, ], 2, sample)), sparcc.params))$Cor),
  R,
  ncpus = 1,
  ...
)

lindan1128/coreMicrobiome documentation built on May 5, 2022, 8:24 p.m.