Learn R Programming

NetworkToolbox (version 1.4.2)

network.coverage: Network Coverage

Description

Computes the mean distance across a subset of nodes in a network. This measure can be used to identify the effectiveness of a subset of nodes' coverage of the network space

Usage

network.coverage(A, nodes, weighted = FALSE)

Arguments

A

An adjacency matrix

nodes

Subset of nodes to examine the coverage of the network

weighted

Is the network weighted? Defaults to FALSE. Set to TRUE for weighted measures

Value

Returns a list containing:

mean

The average distance from the subset of nodes to all other nodes in the network

sd

The standard deviation of distance from the subset of nodes to all other nodes in the network

range

The range of distance from the subset of nodes to all other nodes in the network

References

Christensen, A. P., Cotter, K. N., Silvia, P. J., & Benedek, M. (2018) Scale development via network analysis: A comprehensive and concise measure of Openness to Experience PsyArXiv, 1-40.

Examples

Run this code
# NOT RUN {
# Pearson's correlation only for CRAN checks
A <- TMFG(neoOpen, normal = FALSE)$A

nodes <- seq(1,48,2)

result <- network.coverage(A, nodes)

# }

Run the code above in your browser using DataLab