Skip to main content
It looks like you're using Internet Explorer 11 or older. This website works best with modern browsers such as the latest versions of Chrome, Firefox, Safari, and Edge. If you continue with this browser, you may see unexpected results.

Network Analysis: Analysis- Stata

Summarize the Network

1. In the Command box type in the following code

nwsummarize NetworkName, detail

Example: nwsummarize gang, detail

2. Hit Enter key

 

Output

---------------------------------------------

Network name:  gang                               <- name of the network

Network id:  1                                           <- network set number defined (1=1st, 2=2nd)

Directed: false                                          <- network edges are undirected

Nodes: 54                                                 <- number of nodes in the network (network size)

Edges: 133                                               <- number of edges present (aka ties)

Minimum value:  0                                    <- lowest edge value (no edge present)

Maximum value:  1                                   <- highest edge value (edge present)

Density: .092941998602376                    <- ratio of edges present to possible edges in the network

Reciprocity: .092941998602376              <- likelihood for node to be mutually linked

Transitivity: .3635371179039302             <- measure for local connectedness of the whole network

Betweenness centralization: .10668296  <- distribution of the number of paths going through each node

Degree centralization: .1973875181422  <- distribution of total degrees of each node in the network

Degree Centrality

1. In the Command box type in the following code

nwdegree NetworkName,

Example: nwdegree network1

2. Hit Enter key

Output

_degree |    Freq.   Percent   Cum.

--------+-----------------------------------

           0 |     6        11.11       11.11

           1 |     5        9.26       20.37

           2 |     7       12.96       33.33

           3 |     4        7.41       40.74

           4 |     6       11.11       51.85

           5 |     5        9.26       61.11

           6 |     5        9.26       70.37

           7 |     4        7.41       77.78

           8 |     3        5.56       83.33

           9 |     3        5.56       88.89

         11 |     1        1.85       90.74

         12 |     1        1.85       92.59

         13 |     3        5.56       98.15

         15 |     1        1.85      100.00

    --------+-----------------------------------

     Total |      54     100.00

 

 Degree centralization: .1973875181422351