Learn R Programming

backbone (version 1.1.0)

backbone.extract: Extracts the backbone of a weighted network using results from a null model

Description

`backbone.extract` returns a binary or signed adjacency matrix containing the backbone that retains only the significant edges.

Usage

backbone.extract(positive, negative = NULL, alpha = 0.05)

Arguments

positive

Matrix: proportion of times the projected matrix values were above the corresponding matrices generated by hyperg, fdsm, or sdsm.

negative

Matrix: proportion of times the projected matrix values were below the corresponding matrices generated by hyperg, fdsm, or sdsm. If supplied, a signed backbone will be returned; if not supplied, a binary backbone will be returned. Default is set to NULL.

alpha

Real: Precision of significance test (one-tailed if only the positive matrix supplied, two-tailed if positive and negative matrices supplied)

Value

backbone Matrix: Binary or signed adjacency matrix of backbone graph.

Examples

Run this code
# NOT RUN {
probs <- sdsm(davis, 100)
bb <- backbone.extract(probs$positive, probs$negative)
# }

Run the code above in your browser using DataLab