alts_diversity_count {egor} | R Documentation |
Calculate diversity measures on an egor
object.
Description
alts_diversity_count()
counts the categories of a variable present in the
networks of an egor
object. alts_diversity_entropy()
calculates the Shannon
entropy as a measurement for diversity of an alter attribute.
Usage
alts_diversity_count(object, alt.attr)
alts_diversity_entropy(object, alt.attr, base = 2)
Arguments
object |
An |
alt.attr |
A |
base |
|
Value
A tibble
with the ego ID and a numeric
result vector.
Author(s)
MichaĆ Bojanowski, michal2992@gmail.com
Till Krenz, egor@tillt.net
Examples
data("egor32")
alts_diversity_count(egor32, "age")
alts_diversity_entropy(egor32, "age")
[Package egor version 1.24.2 Index]