gather_avg_strength: Gather average association strength

Description Usage Arguments Value Examples

View source: R/relative_association_functions.R

Description

Takes an association pairs dataframe and collapses it to compute each variable/ids average strength. Used for normalizing pairs or investigating patterns in average strength.

Usage

1
gather_avg_strength(association_pairs, strength_column = "strength")

Arguments

association_pairs

dataframe with columns a and b representing the ids of the variables or nodes and columns strength that is a numeric indicator of strength of association (higher = stronger).

strength_column

Id of column that encodes the strength of the associations for pairs

Value

Dataframe with id and avg_strength columns for each unique variable in association pairs

Examples

1

nstrayer/entropynet documentation built on Oct. 12, 2020, 2:20 a.m.