| consensusAdjacency {MetNet} | R Documentation |
The function takes a list of parameters (l) as input and
creates a consensus adjacency matrix from these adjacency matrices by
calling the function consensus from the sna package. Depending
on the chosen method in consensus, the threshold of the
consensus adjacency matrix should be chosen accordingly to report a
connection by different statistical methods.
consensusAdjacency(l, threshold=1, ...)
l |
list, each entry of the list contains an adjacency matrix |
threshold |
numeric, when combining the adjacency matrices the
|
... |
parameters passed to the function |
consensusAdjacency is a wrapper function of the
consensus function of the sna package. For use of the
parameters used in the consensus function, refer to ?sna::consensus.
matrix, consensus matrix from adjacency matrices
Thomas Naake, thomasnaake@googlemail.com
data("x_test", package="MetNet")
x <- x_test[, 3:dim(x_test)[2]]
x <- as.matrix(x)
stat_adj_l <- createStatisticalAdjacencyList(x, c("pearson", "spearman"))
consensusAdjacency(stat_adj_l)