R을 이용한 사회 연결망 분석

R을 이용해 사회연결망을 시각화하고 통계량을 구하는 방법을 알아봅니다


수강중

13. 중심성 계산하기

degree centrality

indeg_cent <- degree(krack_full, mode = 'in', normalized = T)
sort(indeg_cent, decreasing = T)
outdeg_cent <- degree(krack_full, mode = 'out', normalized = T)

closeness centrality

inclose_cent <- closeness(krack_full, mode = 'in', normalized= T)
sort(inclose_cent)
outclose_cent <- closeness(krack_full, mode = 'out', normalized= T)

betweenness centrality

bet_cent <- betweenness(krack_full, directed = T)
sort(bet_cent, decreasing = T)

eigenvector centrality

undirected <- as.undirected(krack_full, mode = 'collapse')
ev_cent <- sort(evcent(undirected)$vector, decreasing = T)
sort(ev_cent)