social.cor.matrix {social} | R Documentation |
Social correlation matrix
Description
Calculates the social correlation matrix for a given network
Usage
social.cor.matrix(A, max.depth = nrow(A), n.pilot = 5000,
n.estimate = 10000)
Arguments
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 |
Value
The calculated social correlation matrix.
Examples
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)
[Package social version 1.0 Index]