powered by
egor
comp_ei() calculates the EI-Index values as a measurement for ego-alter homo-/heterophily.
comp_ei()
comp_ei(object, alt.attr, ego.attr)
A tibble with the ego ID and a numeric result vector.
tibble
numeric
An egor object.
A character naming the variable containing the alter-attribute.
character
A character naming an ego attribute.
data("egor32") comp_ei(egor32, "age", "age")
Run the code above in your browser using DataLab