Description Usage Arguments Details Value Author(s) Examples
Calculation of the outdegrees and indegrees of a sociomatrix.
1 |
Y |
(matrix) The sociomatrix. |
dichotomize |
(logical) If true, converts any non-zero entries of |
The outdegree of a binary sociomatrix may be defined as the row sums
of the non-diagonal elements of the sociomatrix. If the relations are
valued, then the outdegree may be defined as either the outdegree of
of a dichotomized version of the sociomatrix (dichotomize=TRUE
),
or as the row sums of the original sociomatrix (dichotomize=FALSE
).
Note that if non-diagonal elements of a row are missing, the degree for
that row is missing as well. The indegrees are computed analogously.
A list consisting of the row degrees (rdeg
) and the
column degrees (cdeg
).
Peter Hoff
1 2 3 4 | data(conflict90s)
# For valued relations, 'dochotomize' makes a difference
degrees(conflict90s$conflicts)
degrees(conflict90s$conflicts,dichotomize=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.