strength_distribution: Get the degree or strength distribution for a graph

Description Usage Arguments Author(s) See Also Examples

Description

Get either the degree distribution (as a count or as a density) or the strength distribution for a graph.

Usage

1
2
3
4
5
6
7
strength_distribution(
  graph,
  cumulative = FALSE,
  signed = TRUE,
  which.sign = "star",
  count = FALSE
)

Arguments

graph

A network as an igraph object or connectivity matrix.

cumulative

Should the cumulative sum be returned or the density? Defaults to cumulative=FALSE

signed

If TRUE (the default) uses the strength_signed function to calculate the distribution.

which.sign

If "star" returns the weighted strength* metric, if "pos" returns the distribution of the positive connections, and if "neg" returns the distribution of the negative connections.

count

If the weights are binary can be set to count=TRUE to get the counts of each degree instead of the probability densities.

Author(s)

Brandon Vaughan

See Also

dist_fit strength_signed

Examples

1
2
3
4
5
6
#' **## Not run:**
# If you want to examine the distributions of positive and negative connections
pos = strength_distribution(graph, which.sign="pos")
neg = strength_distribution(graph, which.sign="neg")

## End(**Not run**)

abnormally-distributed/rsfcNet documentation built on March 8, 2020, 5:32 p.m.