Which variables are directly related? (Network analysis, partial correlation network)
In brief
The correlation matrix shows how each pair of columns is related. That is hard to survey, and part of the relationships only run via third columns. Network analysis shows each column as a node and each partial correlation as an edge: an edge between two nodes says that the two are still related when all the other columns are held constant. Statable shows a bootstrap interval and the Holm p value for each edge and the strength for each node.
An example with real data
In the Big Five extract from the R package psych, 378 people (without gaps) answered nine statements from 1 to 6: four on agreeableness (A2 "Inquire about others' well-being", A3 "Know how to comfort others", A4 "Love children", A5 "Make people feel at ease") and five on emotional stability (N1 "Get angry easily", N2 "Get irritated easily", N3 "Have frequent mood swings", N4 "Often feel blue", N5 "Panic easily"). Of 36 possible edges, six are clear after the Holm correction (p < .05):
| Edge | Correlation r | Partial correlation |
|---|---|---|
| N1 – N2 | 0.71 | 0.59 |
| A3 – A5 | 0.53 | 0.42 |
| N3 – N4 | 0.54 | 0.38 |
| A2 – A3 | 0.48 | 0.33 |
| N4 – N5 | 0.44 | 0.29 |
| N2 – N3 | 0.55 | 0.28 |
- The network falls into two groups: the clear edges connect only A items with each other and N items with each other; none of the 20 edges between the two groups is clear (the largest, A5 – N4, is -0.14).
- Partial correlations are smaller than the correlations, because the correlation also contains the way via other items. Particularly clear for N1 – N3: r = 0.51, but partial correlation only 0.12 (p = .021, after Holm .49). Both items are connected to N2 (edges 0.59 and 0.28); the direct part stays small.
- The strength (sum of the absolute values of the edges of a node) is largest for N2 (1.24) and smallest for A4 (0.75).
When do I use it?
When you have many variables that belong together (items, symptoms, attitudes) and want to ask which pairs are still related after all the others are taken out, and want to see that as a picture and in numbers. For few variables the partial correlation of one pair is enough; whoever wants to test a measurement model uses factor analysis.
Requirements
- Three to 20 number columns and at least 30 people with all answers, and at least three times as many people as columns. If there are gaps: Statable only uses people without gaps.
- Relationships that correlations can describe (roughly straight). For ordered answers such as 1 to 6, Spearman rank correlation is an alternative to Pearson; both are available.
- No columns that almost replace each other (for example a sum and its parts): then the correlation matrix cannot be inverted, and Statable says so.
How it works in Statable
- Open a file with at least three number columns, for example a questionnaire with several items (Start > Open your own file).
- Run the question "How are the measurements related? (correlation matrix)" with all items (at most 20 columns).
- Under the matrix open "Which variables are directly related? (network analysis, partial correlation network)", choose the type of correlation and "Calculate network". Ctrl+K: "network".
- With "As R script with data (.zip)" you take the calculation with you; it needs only base R.
Statable does not smooth the network: every possible edge is estimated, even if it is close to 0. At first only edges that are clear after Holm are drawn; the box below shows all of them. For the bootstrap interval 1,000 samples are drawn with replacement (fewer with very many people or columns); the same seed gives the same result. The tables under the picture contain the same numbers as the picture, also for people who cannot see the picture.
Reading and reporting the result
A partial correlation network of nine items (N = 378, Pearson) had 6 of 36 edges with p < .05 after Holm correction, the largest between N1 and N2 (r_partial = .59). All clear edges lay within the item groups agreeableness and emotional stability; between the groups no edge was clear.
Limits
- An edge is a relationship without direction and without proof of a cause. Even a network from data collected at one time point does not say what causes what.
- Strength does not say how "important" a node is. It depends on how many other nodes are in the network and how well they were measured; its bootstrap interval shows how uncertain it is. Statable deliberately does not report closeness and betweenness: without smoothing every pair is connected, and paths via third nodes then say little; Epskamp et al. (2018) also found them less stable than strength.
- An unsmoothed network with many columns also shows small, random edges. That is why the Holm p values and the intervals are given. The common method with smoothing (graphical lasso, EBICglasso) is not calculated by Statable; the numbers can differ from it.
- Whoever wants to interpret single edges or nodes needs many people. With only 30 to 100 people the intervals are wide; Statable allows networks from 30 people because the picture is also for practising.
What is often misunderstood
Sources
Epskamp, S., Borsboom, D. & Fried, E. I. (2018). Estimating psychological networks and their accuracy: A tutorial paper. Behavior Research Methods, 50, 195-212 (open access). Borsboom, D. & Cramer, A. O. J. (2013). Network analysis: an integrative approach to the structure of psychopathology. Annual Review of Clinical Psychology, 9. Holm, S. (1979). A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6. Data: Revelle, W., R package psych (data set bfi, GPL).
Take away
- Edge = partial correlation: the relationship of two columns with all the others held constant.
- A large correlation can be a small edge if it runs via other columns; that is the point of the network picture.
- Each edge comes with a bootstrap interval and Holm p; the strength of a node can only be read with its interval.
- A network describes relationships, not causes and not direction.