View source: R/pald_functions.R
strong_threshold | R Documentation |
Given a cohesion matrix, provides the value of the threshold above which values of cohesion are considered "particularly strong".
strong_threshold(c)
c |
A |
The threshold considered in Berenhaut, Moore, and Melvin (2022) which may be used for distinguishing between strong and weak ties. The threshold is equal to half the average of the diagonal of the cohesion matrix, see Berenhaut, Moore, and Melvin (2022).
The value of the threshold.
K. S. Berenhaut, K. E. Moore, R. L. Melvin, A social perspective on perceived distances reveals deep community structure. Proc. Natl. Acad. Sci., 119(4), 2022.
C <- cohesion_matrix(dist(exdata1))
strong_threshold(C)
mean(diag(C)) / 2
## points whose cohesion are greater than the threshold may be considered
## (strong) neighbors
which(C[3, ] > strong_threshold(C))
## note that the number of (strongly-cohesive) neighbors varies across the
## space
which(C[4, ] > strong_threshold(C))
C[4, c(2, 3, 4, 6)] # cohesion values can provide neighbor weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.