CentClust {modnets}R Documentation

Node centrality, clustering coefficients, and shortest path lengths

Description

Mimics the qgraph::centrality_auto and qgraph::clustcoef_auto functions. The purpose of amending these functions was to make them compatible with outputs from the modnets package. The main use of these functions is as the engines for the centTable and clustTable functions.

Usage

centAuto(x, which.net = "temporal", weighted = TRUE, signed = TRUE)

clustAuto(x, thresholdWS = 0, thresholdON = 0)

Arguments

x

Output from one of the primary modnets functions. Can also supply a list of network models, and the function will be applied to all models in the list.

which.net

Only applies to SUR networks, as well as those fit with the mlGVAR function. Character string to indicate which type of network to compute centrality values for. Options are "temporal" for the temporal network, "contemporaneous" for the contemporaneous network, "PDC" for the partial directed correlation network, and "interactions" for the temporal interaction network.

weighted

Logical. If TRUE then results are converted to an unweighted network.

signed

Logical. Determines whether to ignore the signs of edges or not. Primarily affects the output for expected influence statistics.

thresholdWS

Numeric threshold for the WS values.

thresholdON

Numeric threshold for the Zhang values.

Details

Returns several node centrality statistics, edge-betweenness centrality, and shortest path lengths. Betweenness and Closeness centrality are computed for all types of networks, as well as edge-betweenness values and shortest path lengths. For GGMs, Strength centrality and Expected Influence are also computed. For SUR networks, InStrength, OutStrength, InExpectedInfluence, and OutExpectedInfluence are computed instead.

The key distinction between these functions and the qgraph::centrality_auto and qgraph::clustcoef_auto functions is that centrality and clustering values can be computed for the matrix of interactions within a temporal network.

Value

A list containing node centrality statistics, edge-betweenness values, and shortest path lengths.

See Also

centTable, clustTable, centPlot, clustPlot, plotCentrality, qgraph::centrality_auto, qgraph::clustcoef_auto

Examples

x <- fitNetwork(ggmDat, 'M')

clustAuto(x)
centAuto(x, 'interactions')

[Package modnets version 0.9.0 Index]