Mimics the output of the
qgraph::centralityTable
and
qgraph::clusteringTable
functions. The
purpose of revising these function was to make them compatible with outputs
from the modnets
package.
centTable(
Wmats,
scale = TRUE,
which.net = "temporal",
labels = NULL,
relative = FALSE,
weighted = TRUE,
signed = TRUE
)clustTable(Wmats, scale = TRUE, labels = NULL, relative = FALSE, signed = TRUE)
Output from one of the primary modnets
functions.
Logical. Determines whether to standardize values within each measure (i.e., convert to z-scores).
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.
Character vector to input the names of the nodes. If left
NULL
, the function defaults to the node names specified by the
model.
Logical. Determines whether to scale values within each measure relative to the largest value within that measure.
Logical. If TRUE
then results are converted to an
unweighted network.
Logical. Determines whether to ignore the signs of edges or not. Primarily affects the output for expected influence statistics.
A table containing the names of nodes, measures of node centrality, and their corresponding centrality values or clustering coefficients.
For centTable
, centrality values can be computed for the matrix
of interactions within a temporal network.
centAuto, clustAuto, centPlot,
clustPlot, plotCentrality,
qgraph::centralityTable,
qgraph::clusteringTable
# NOT RUN {
x <- fitNetwork(gvarDat, 'M', lags = TRUE)
clustTable(x)
centTable(x, which.net = 'interactions')
# }
Run the code above in your browser using DataLab