Learn R Programming

backbone (version 2.0.3)

backbone.suggest: Suggest a backbone model

Description

backbone.suggest suggests and optionally runs an appropriate backbone model for a graph object.

Usage

backbone.suggest(G, s = NULL)

Arguments

G

graph: A graph represented in an object of class matrix, sparse Matrix, dataframe, igraph, or network.

s

numeric: If provided, a backbone is extracted using this value as the significance level or sparsification parameter.

Value

If s == NULL: NULL, but a message is displayed with a suggested model. If 0 <= s <= 1: A binary backbone graph in the same class as G, obtained by extracting the backbone at the s significance level (if a statistical model is suggested) or using sparisfication parameter s (if a sparsification model is suggested). The code used to perform the extraction, and suggested manuscript text are displayed.

Examples

Run this code
# NOT RUN {
M <- matrix(runif(100),10,10)  #A random weighted, directed graph
backbone <- backbone.suggest(M)
backbone <- backbone.suggest(M, s = 0.05)
# }

Run the code above in your browser using DataLab