calc_universality_score: Calculate a score (0.0 to 1.0) for the "universality" of...

View source: R/utility.R

calc_universality_scoreR Documentation

Calculate a score (0.0 to 1.0) for the "universality" of given association pair

Description

Calculate a score (0.0 to 1.0) for the "universality" of given association pair

Usage

calc_universality_score(x, return_pieces = FALSE)

Arguments

x

vector of correlations between a pair of CLR microbes across hosts

return_pieces

if TRUE, returns the two components of the universality score: the proportion agreement in direction and the median magnitude of correlation in that set

Value

numeric "score"


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