Learn R Programming

backbone (version 1.2.1)

backbone: backbone: Extracts the Backbone from Weighted Graphs

Description

Provides methods for extracting from a weighted graph a binary or signed backbone that retains only the significant edges. The user may input a weighted graph, or a bipartite graph from which a weighted graph is first constructed via projection. Backbone extraction methods include:

Arguments

Details

Some features of the package are:

  • 'universal': returns a backbone graph in which edge weights are set to 1 if above the given upper parameter threshold, and set to -1 if below the given lower parameter threshold, and are 0 otherwise.

  • 'sdsm': computes the probability of edge weights being above or below the observed edge weights in a bipartite projection using the stochastic degree sequence model. Once computed, use backbone.extract to return the backbone matrix for a given alpha value.

  • 'hyperg': computes the probability of edge weights being above or below the observed edge weights in a bipartite projection using the hypergeometric model. Once computed, use backbone.extract to return the backbone matrix for a given alpha value.

  • 'fdsm': computes the proportion of edge weights above or below the observed edge weights in a bipartite projection using the fixed degree sequence model. Once computed, use backbone.extract to return the backbone matrix for a given alpha value.

  • 'backbone.extract': returns a backbone graph object that retains only the significant edges.

Additional functions that aid in the use of the above models are exported:

  • 'polytope': finds a matrix that maximizes the entropy function, used in sdsm.

  • 'curveball': generates a random 0/1 matrix with the same row and column sums as the input, used in sdsm and fdsm.

For additional documentation and background on the package functions, see vignette("backbone", package = "backbone").