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 |
which.net |
Only applies to SUR networks, as well as those fit with the
|
weighted |
Logical. If |
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')