| backbone.suggest {backbone} | R Documentation |
backbone.suggest suggests and optionally runs an appropriate backbone model for a graph object.
backbone.suggest(G, s = NULL)
G |
graph: A graph represented in an object of class matrix, sparse |
s |
numeric: If provided, a backbone is extracted using this value as the significance level or sparsification parameter. |
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.
M <- matrix(runif(100),10,10) #A random weighted, directed graph backbone <- backbone.suggest(M) backbone <- backbone.suggest(M, s = 0.05)