Description Usage Arguments Details Author(s) References Examples
View source: R/assortativity.R
Given a categorical vertex attribute describing mutually exclusive groups, the assortativity coefficient represents the tendency for nodes to form ties with similar alters.
1 2 3 4 5 | assort_discrete(g, node_attr_name, ...)
assort_scalar(g, val1, val2 = NULL)
assort_degree(g)
|
g |
|
node_attr_name |
|
... |
Arguments passed to or from other methods. |
val1 |
Continuous vector. |
val2 |
Continuous vector. |
r = \frac{ ∑_i{e_{ii} - ∑_i{a_ib_i}} } {1 - ∑_i{a_ib_i} }
e: mixing matrix
e_{ii}: diagonal of mixing matrix
a_i: row sums of mixing matrix
b_i: column sums of mixing matrix
Brendan Knapp brendan.g.knapp@gmail.com
M. E. J. Newman, Mixing patterns in networks, Physical Review E, 67 026126, 2003. https://arxiv.org/pdf/cond-mat/0209450.pdf.
1 2 3 4 5 6 | data("faux.desert.high", package = "ergm")
assort_discrete(faux.desert.high, node_attr_name = "race")
data("sampson", package = "ergm")
assort_discrete(samplike, "group")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.