View source: R/backbone.suggest.R
backbone.suggest | 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.
Neal, Z. P. (2022). backbone: An R Package to Extract Network Backbones. PLOS ONE, 17, e0269137. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1371/journal.pone.0269137")}
M <- matrix(runif(100),10,10) #A random weighted, directed graph
backbone <- backbone.suggest(M)
backbone <- backbone.suggest(M, s = 0.05)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.