social.cor.matrix {social} | R Documentation |
Calculates the social correlation matrix for a given network
social.cor.matrix(A, max.depth = nrow(A), n.pilot = 5000, n.estimate = 10000)
A |
a (possibly weighted) adjacency matrix. |
max.depth |
the maximum length of the paths to use. |
n.pilot |
parameter to be passed to |
n.estimate |
parameter to be passed to |
The calculated social correlation matrix.
A = matrix(c(0,1,0,1,0, 1,0,0,1,1, 0,0,0,1,1, 1,1,1,0,0, 0,1,1,0,0), nrow=5) S = social.cor.matrix(A)