sparsify.with.jaccard: Extract Goldberg and Roth's (2003) Jaccard backbone

View source: R/sparsify.R

sparsify.with.jaccardR Documentation

Extract Goldberg and Roth's (2003) Jaccard backbone


sparsify.with.jaccard is a wrapper for sparsify() that extracts the jaccard backbone described by Goldberg and Roth (2003). It is equivalent to sparsify(escore = "jaccard", normalize = "none", filter = "threshold", umst = FALSE).


sparsify.with.jaccard(U, s, class = "original", narrative = FALSE)



An unweighted unipartite graph, as: (1) an adjacency matrix in the form of a matrix or sparse Matrix; (2) an edgelist in the form of a two-column dataframe; (3) an igraph object.


numeric: Sparsificiation threshold, 0 < s < 1; larger values yield sparser graphs


string: the class of the returned backbone graph, one of c("original", "matrix", "Matrix", "igraph", "edgelist"). If "original", the backbone graph returned is of the same class as U.


boolean: TRUE if suggested text & citations should be displayed.


An unweighted, undirected, unipartite graph of class class.


package: Neal, Z. P. (2022). backbone: An R Package to Extract Network Backbones. PLOS ONE, 17, e0269137. doi: 10.1371/journal.pone.0269137

model: Goldberg, D. S., & Roth, F. P. (2003). Assessing experimentally derived interactions in a small world. Proceedings of the National Academy of Sciences, 100, 4372-4376. doi: 10.1073/pnas.0735871100


U <-, matrix(c(.75,.25,.25,.25,.75,.25,.25,.25,.75),3,3), c(20,20,20))
plot(U) #A hairball
sparse <- sparsify.with.jaccard(U, s = 0.3, narrative = TRUE)
plot(sparse) #Clearly visible communities

backbone documentation built on Oct. 19, 2022, 1:09 a.m.