View source: R/ITNblockse_function.R
ITNblock_se | R Documentation |
This function calculates block membership for ITN and structural equivalence between countries
ITNblock_se(gs)
gs |
International Trade Network - igraph object |
List object containing block membership and structural equivalence matrix results
require(igraph)
require(sna)
require(intergraph)
##Create random International Trade Network (igraph object)
ITN<-erdos.renyi.game(50,0.05,directed = TRUE)
##Add edge weights
E(ITN)$weight<-runif(ecount(ITN), 0, 1)
##Blockmodel & structural equivalence analysis
blockse<-ITNblock_se(ITN)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.