powered by
Calculates the social correlation matrix for a given network
social.cor.matrix(A, max.depth = nrow(A), n.pilot = 5000, n.estimate = 10000)
a (possibly weighted) adjacency matrix.
the maximum length of the paths to use.
parameter to be passed to social.all.paths.
social.all.paths
The calculated social correlation matrix.
# NOT RUN { 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) # }
Run the code above in your browser using DataLab