build_between_within_distributions: Sample to construct between- and within-host distributions of...

View source: R/utility.R

build_between_within_distributionsR Documentation

Sample to construct between- and within-host distributions of correlation for a given pair of taxa. The "within" distribution characterizes correlation of a pair of taxa within selected hosts; the "between" distribution characterizes the correlation of a given taxon with its own series across a samples of hosts.

Description

Sample to construct between- and within-host distributions of correlation for a given pair of taxa. The "within" distribution characterizes correlation of a pair of taxa within selected hosts; the "between" distribution characterizes the correlation of a given taxon with its own series across a samples of hosts.

Usage

build_between_within_distributions(
  pair,
  coord1,
  coord2,
  predictions,
  selected_hosts,
  verbose = TRUE
)

Arguments

pair

index of taxon pair

coord1

index of taxon 1

coord2

index of taxon 2

predictions

predictions data.frame subsetted to the taxa of interest

selected_hosts

subset of full host short name list to use

verbose

if TRUE, prints status comments

Value

data.frame of between- and within- correlation distribution samples


kimberlyroche/rulesoflife documentation built on May 7, 2023, 11:08 a.m.