View source: R/cohesive_subgroups.R
shared_partners | R Documentation |
Shared partners
shared_partners(
A,
loops = FALSE,
directed = TRUE,
type = c("dsp", "esp", "nsp")
)
A |
A binary matrix |
loops |
Whether to consider the loops |
directed |
Whether the matrix is directed |
type |
Whether to return the |
This function return the distribution of shared partners.
Alejandro Espinosa-Rada
Hunter, D. R. and M. S. Handcock (2006), Inference in curved exponential family models for networks, Journal of Computational and Graphical Statistics, 15: 565– 583.
A <- matrix(c(
0, 1, 0, 0, 0, 0,
1, 0, 1, 1, 0, 1,
0, 1, 0, 1, 0, 0,
0, 1, 1, 0, 1, 1,
0, 0, 0, 1, 0, 1,
0, 1, 0, 1, 1, 0
), byrow = TRUE, ncol = 6)
shared_partners(A, type = "dsp")
shared_partners(A, type = "esp")
shared_partners(A, type = "nsp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.