social_network_analysis
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| social_network_analysis [2019/11/12 16:31] – hkimscil | social_network_analysis [2024/11/25 10:25] (current) – [Draft] hkimscil | ||
|---|---|---|---|
| Line 32: | Line 32: | ||
| * 이 때 남자이기 때문에 특정한 생각이나 태도가 형성된다라고 주장하는 것에는 생물학적 + 사회학적인 영향력이 그 사람의 생각/ | * 이 때 남자이기 때문에 특정한 생각이나 태도가 형성된다라고 주장하는 것에는 생물학적 + 사회학적인 영향력이 그 사람의 생각/ | ||
| - | * 위에서 특징으로 인해서 발현되는 그 무엇이 사회의 일반성에 (regularity) 영향을 준다고 할 수 있는데, 연구자는 " | + | * 위에서 특징으로 인해서 발현되는 그 무엇이 사회의 일반성에 (regularity) 영향을 준다고 할 수 있는데, 연구자는 " |
| - | 인간의 태도나 의견, 행동과 관련이 있다는 주장을 할 수도 있다. 즉, 남자라는 사회학적인 특성은 사회학적으로 특정한 결과를 (태도, 의견, 행동) 초래하도록 하는것 처럼, 어떤 사회적 그룹에서, | + | |
| 일반적으로 SNA는 아래의 것들을 강조한다. | 일반적으로 SNA는 아래의 것들을 강조한다. | ||
| Line 68: | Line 67: | ||
| * Performance: | * Performance: | ||
| * {{Social Contagion and Innovation.pdf}} | * {{Social Contagion and Innovation.pdf}} | ||
| - | * Diffusion: | + | * Cohesion vs. Structural equivalence |
| * see http:// | * see http:// | ||
| * Burt, R. S. 1987. " | * Burt, R. S. 1987. " | ||
| * Mizruchi, M. 1993. " | * Mizruchi, M. 1993. " | ||
| + | * Diffusion: Diffusion of Innovation | ||
| + | * [[: | ||
| + | * Deroı̈an, Frédéric (2002). [[https:// | ||
| {{ : | {{ : | ||
| Line 108: | Line 110: | ||
| * . . . . | * . . . . | ||
| - | {{: | + | [{{: |
| Node measurements | Node measurements | ||
| Line 150: | Line 153: | ||
| 1과1, 1과2 등은 관계가 있음을 나타내 주는 것이다. | 1과1, 1과2 등은 관계가 있음을 나타내 주는 것이다. | ||
| </ | </ | ||
| - | < | + | < |
| + | classtaken = matrix(0, | ||
| + | # 0으로 채워진 8 x 10 크기의 matrix 만들기 | ||
| + | # 8 students | ||
| + | # 10 classes | ||
| + | classtaken | ||
| edge.list = matrix ( | edge.list = matrix ( | ||
| c(1, | c(1, | ||
| Line 159: | Line 167: | ||
| 6, | 6, | ||
| 7, | 7, | ||
| - | 8, | + | 8, |
| - | classtaken[edge.list] = 1 | + | # 둘로 짝지어진 (ncol = 2) 관계 위치를 edge.list에 기록하기 |
| + | # (1,1)은 매트릭스의 row 1, column 1 위치를 의미 | ||
| + | |||
| + | classtaken[edge.list] = 1 | ||
| + | # 0으로만 채워졌던 classtaken matrix에 [edge.list]자리는 0을 1로 바꾸기 | ||
| + | # 위에서 언급된 위치에 1을 주기 | ||
| classtaken # classtaken 데이터 확인 | classtaken # classtaken 데이터 확인 | ||
| + | |||
| rownames(classtaken) = c(" | rownames(classtaken) = c(" | ||
| colnames(classtaken) = c(" | colnames(classtaken) = c(" | ||
| Line 241: | Line 256: | ||
| ====== E.g.3. CONCOR ====== | ====== E.g.3. CONCOR ====== | ||
| + | please refer to https:// | ||
| + | |||
| + | also note: | ||
| + | * RDGAM, participation in horseplay; | ||
| + | * RDCON, participation in arguments about open windows; | ||
| + | * RDPOS, friendship; | ||
| + | * RDNEG, antagonistic (negative) behavior; | ||
| + | * RDHLP, helping others with work; and | ||
| + | * RDJOB, the number of times workers traded job assignments. | ||
| < | < | ||
| #INSTALL CONCOR | #INSTALL CONCOR | ||
| + | install.packages(" | ||
| devtools:: | devtools:: | ||
| Line 269: | Line 294: | ||
| blk_mod | blk_mod | ||
| plot(blk_mod)</ | plot(blk_mod)</ | ||
| + | |||
| + | < | ||
| + | > #REPLICATE BREIGER ET AL. (1975) | ||
| + | > #INSTALL CONCOR | ||
| + | > devtools:: | ||
| + | Skipping install of ' | ||
| + | Use `force = TRUE` to force installation | ||
| + | > | ||
| + | > #LIBRARIES | ||
| + | > library(concoR) | ||
| + | > library(sna) | ||
| + | > | ||
| + | > #LOAD DATA | ||
| + | > data(bank_wiring) | ||
| + | > bank_wiring | ||
| + | $Liking | ||
| + | I1 I3 W1 W2 W3 W4 W5 W6 W7 W8 W9 S1 S2 S4 | ||
| + | I1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 | ||
| + | I3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | W1 0 0 0 0 1 1 0 0 0 0 0 1 0 0 | ||
| + | W2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | W3 1 0 1 0 0 1 0 0 0 0 0 1 0 0 | ||
| + | W4 0 0 1 0 1 0 0 0 0 0 0 1 0 0 | ||
| + | W5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | W6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | W7 0 0 0 0 0 0 0 0 0 1 1 1 0 0 | ||
| + | W8 0 0 0 0 0 0 0 0 1 0 1 0 0 1 | ||
| + | W9 0 0 0 0 0 0 0 0 1 1 0 0 0 1 | ||
| + | S1 0 0 1 0 1 1 0 0 1 0 0 0 0 0 | ||
| + | S2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | S4 0 0 0 0 0 0 0 0 0 1 1 0 0 0 | ||
| + | |||
| + | $Games | ||
| + | I1 I3 W1 W2 W3 W4 W5 W6 W7 W8 W9 S1 S2 S4 | ||
| + | I1 0 0 1 1 1 1 0 0 0 0 0 0 0 0 | ||
| + | I3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | W1 1 0 0 1 1 1 1 0 0 0 0 1 0 0 | ||
| + | W2 1 0 1 0 1 1 0 0 0 0 0 1 0 0 | ||
| + | W3 1 0 1 1 0 1 1 0 0 0 0 1 0 0 | ||
| + | W4 1 0 1 1 1 0 1 0 0 0 0 1 0 0 | ||
| + | W5 0 0 1 0 1 1 0 0 1 0 0 1 0 0 | ||
| + | W6 0 0 0 0 0 0 0 0 1 1 1 0 0 0 | ||
| + | W7 0 0 0 0 0 0 1 1 0 1 1 0 0 1 | ||
| + | W8 0 0 0 0 0 0 0 1 1 0 1 0 0 1 | ||
| + | W9 0 0 0 0 0 0 0 1 1 1 0 0 0 1 | ||
| + | S1 0 0 1 1 1 1 1 0 0 0 0 0 0 0 | ||
| + | S2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | S4 0 0 0 0 0 0 0 0 1 1 1 0 0 0 | ||
| + | |||
| + | $Antagonism | ||
| + | I1 I3 W1 W2 W3 W4 W5 W6 W7 W8 W9 S1 S2 S4 | ||
| + | I1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 | ||
| + | I3 1 0 0 0 0 0 1 1 1 1 1 0 0 1 | ||
| + | W1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | W2 1 0 0 0 0 0 0 0 1 1 1 0 0 0 | ||
| + | W3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | W4 0 0 0 0 0 0 1 0 0 0 0 0 0 0 | ||
| + | W5 0 1 0 0 0 1 0 1 1 1 1 1 1 0 | ||
| + | W6 0 1 0 0 0 0 1 0 1 0 0 0 0 0 | ||
| + | W7 0 1 0 1 0 0 1 1 0 0 0 0 0 0 | ||
| + | W8 0 1 0 1 0 0 1 0 0 0 0 0 0 0 | ||
| + | W9 0 1 0 1 0 0 1 0 0 0 0 0 0 0 | ||
| + | S1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 | ||
| + | S2 0 0 0 0 0 0 1 0 0 0 0 0 0 0 | ||
| + | S4 0 1 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | |||
| + | $Helping | ||
| + | I1 I3 W1 W2 W3 W4 W5 W6 W7 W8 W9 S1 S2 S4 | ||
| + | I1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | I3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | W1 0 0 0 0 1 0 0 0 0 0 1 1 0 0 | ||
| + | W2 0 0 0 0 1 1 0 0 0 0 0 1 0 0 | ||
| + | W3 0 0 0 1 0 0 0 0 0 0 0 0 0 0 | ||
| + | W4 0 0 1 0 1 0 0 1 0 0 0 0 0 0 | ||
| + | W5 0 0 0 0 1 0 0 0 0 0 0 0 0 0 | ||
| + | W6 0 0 0 0 1 0 0 0 1 1 1 0 0 0 | ||
| + | W7 0 0 0 0 0 0 0 0 0 0 0 0 0 1 | ||
| + | W8 0 0 0 0 0 0 0 1 1 0 1 0 0 0 | ||
| + | W9 0 0 0 0 0 0 0 0 0 0 0 0 0 1 | ||
| + | S1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 | ||
| + | S2 0 0 0 0 0 0 0 1 0 0 0 0 0 0 | ||
| + | S4 0 0 0 0 0 1 0 0 0 1 0 0 0 0 | ||
| + | |||
| + | $Windows | ||
| + | I1 I3 W1 W2 W3 W4 W5 W6 W7 W8 W9 S1 S2 S4 | ||
| + | I1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | I3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | W1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | W2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | W3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | W4 0 0 0 0 0 0 1 1 1 0 1 0 0 0 | ||
| + | W5 0 0 0 0 0 1 0 1 0 0 0 1 0 0 | ||
| + | W6 0 0 0 0 0 1 1 0 1 1 1 1 0 1 | ||
| + | W7 0 0 0 0 0 1 0 1 0 1 1 0 0 1 | ||
| + | W8 0 0 0 0 0 0 0 1 1 0 1 1 0 1 | ||
| + | W9 0 0 0 0 0 1 0 1 1 1 0 1 0 0 | ||
| + | S1 0 0 0 0 0 0 1 1 0 1 1 0 0 1 | ||
| + | S2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 | ||
| + | S4 0 0 0 0 0 0 0 1 1 1 0 1 0 0 | ||
| + | |||
| + | > | ||
| + | > #CHECK INITIAL CORRELATIONS (TABLE III) | ||
| + | > m0 <- cor(do.call(rbind, | ||
| + | > round(m0, 2) | ||
| + | I1 I3 W1 W2 W3 W4 W5 W6 W7 W8 W9 S1 S2 S4 | ||
| + | I1 1.00 -0.11 0.41 0.27 0.17 0.27 0.27 -0.07 0.00 0.03 0.02 0.37 -0.04 -0.03 | ||
| + | I3 -0.11 1.00 -0.14 0.41 -0.17 -0.07 0.27 0.05 0.00 -0.08 -0.09 -0.08 0.36 -0.15 | ||
| + | W1 0.41 -0.14 1.00 0.30 0.58 0.46 0.07 -0.12 -0.08 -0.23 -0.24 0.34 -0.05 -0.19 | ||
| + | W2 0.27 0.41 0.30 1.00 0.18 0.17 0.46 -0.12 -0.26 -0.23 -0.24 0.05 -0.05 -0.19 | ||
| + | W3 0.17 -0.17 0.58 0.18 1.00 0.38 -0.04 -0.20 -0.10 -0.21 -0.15 0.35 -0.06 -0.24 | ||
| + | W4 0.27 -0.07 0.46 0.17 0.38 1.00 0.03 0.03 0.03 0.09 -0.09 0.56 0.22 -0.07 | ||
| + | W5 0.27 0.27 0.07 0.46 -0.04 0.03 1.00 0.11 -0.04 0.01 0.07 0.01 -0.07 0.11 | ||
| + | W6 -0.07 0.05 -0.12 -0.12 -0.20 0.03 0.11 1.00 0.33 0.33 0.38 0.09 0.22 0.38 | ||
| + | W7 0.00 0.00 -0.08 -0.26 -0.10 0.03 -0.04 0.33 1.00 0.45 0.50 0.08 0.19 0.30 | ||
| + | W8 0.03 -0.08 -0.23 -0.23 -0.21 0.09 0.01 0.33 0.45 1.00 0.58 0.07 0.21 0.36 | ||
| + | W9 0.02 -0.09 -0.24 -0.24 -0.15 -0.09 0.07 0.38 0.50 0.58 1.00 0.05 0.20 0.43 | ||
| + | S1 0.37 -0.08 0.34 0.05 0.35 0.56 0.01 0.09 0.08 0.07 0.05 1.00 0.21 -0.08 | ||
| + | S2 -0.04 0.36 -0.05 -0.05 -0.06 0.22 -0.07 0.22 0.19 0.21 0.20 0.21 1.00 -0.05 | ||
| + | S4 -0.03 -0.15 -0.19 -0.19 -0.24 -0.07 0.11 0.38 0.30 0.36 0.43 -0.08 -0.05 1.00 | ||
| + | > | ||
| + | > #IDENTIFY BLOCKS USING A 4-BLOCK MODEL (TABLE IV) | ||
| + | > blks <- concor_hca(bank_wiring, | ||
| + | > blks | ||
| + | block vertex | ||
| + | 1 1 I1 | ||
| + | 6 2 I3 | ||
| + | 2 1 W1 | ||
| + | 7 2 W2 | ||
| + | 3 1 W3 | ||
| + | 4 1 W4 | ||
| + | 8 2 W5 | ||
| + | 9 3 W6 | ||
| + | 11 | ||
| + | 12 | ||
| + | 13 | ||
| + | 5 1 S1 | ||
| + | 10 | ||
| + | 14 | ||
| + | > | ||
| + | > #CHECK FIT USING SNA (TABLE V) | ||
| + | > #code below fails unless glabels are specified | ||
| + | > blk_mod <- blockmodel(bank_wiring, | ||
| + | + | ||
| + | + | ||
| + | > blk_mod | ||
| + | |||
| + | Network Blockmodel: | ||
| + | |||
| + | Block membership: | ||
| + | |||
| + | I1 I3 W1 W2 W3 W4 W5 W6 W7 W8 W9 S1 S2 S4 | ||
| + | | ||
| + | |||
| + | Reduced form blockmodel: | ||
| + | |||
| + | Liking | ||
| + | Block 1 Block 2 Block 3 Block 4 | ||
| + | Block 1 0.70 | ||
| + | Block 2 0.00 | ||
| + | Block 3 0.00 | ||
| + | Block 4 0.05 | ||
| + | |||
| + | Games | ||
| + | Block 1 Block 2 Block 3 Block 4 | ||
| + | Block 1 0.9 0.60000000 | ||
| + | Block 2 0.6 0.00000000 | ||
| + | Block 3 0.0 0.00000000 | ||
| + | Block 4 0.0 0.08333333 | ||
| + | |||
| + | Antagonism | ||
| + | Block 1 Block 2 Block 3 Block 4 | ||
| + | Block 1 0.0000000 0.2666667 | ||
| + | Block 2 0.2666667 0.3333333 | ||
| + | Block 3 0.0000000 0.5000000 | ||
| + | Block 4 0.0000000 0.8333333 | ||
| + | |||
| + | Helping | ||
| + | Block 1 Block 2 Block 3 Block 4 | ||
| + | Block 1 0.2000000 0.06666667 | ||
| + | Block 2 0.2666667 0.00000000 | ||
| + | Block 3 0.1000000 0.00000000 | ||
| + | Block 4 0.0500000 0.00000000 | ||
| + | |||
| + | Windows | ||
| + | Block 1 Block 2 Block 3 Block 4 | ||
| + | Block 1 0.0000000 0.1333333 0.2000000 0.2500000 | ||
| + | Block 2 0.1333333 0.0000000 0.1666667 0.0000000 | ||
| + | Block 3 0.2000000 0.1666667 0.0000000 0.5000000 | ||
| + | Block 4 0.2500000 0.0000000 0.5000000 0.8333333 | ||
| + | |||
| + | > plot(blk_mod) | ||
| + | > | ||
| + | </ | ||
| + | |||
| [{{concor.example.png? | [{{concor.example.png? | ||
| Line 296: | Line 515: | ||
| ====== Draft ====== | ====== Draft ====== | ||
| + | * see https:// | ||
| * https:// | * https:// | ||
| * [[: | * [[: | ||
social_network_analysis.1573543903.txt.gz · Last modified: by hkimscil
