comp_ei: Calculate the EI-Indices of an 'egor' object as a measurement...

View source: R/composition.R

comp_eiR Documentation

Calculate the EI-Indices of an egor object as a measurement of ego-alter homophily

Description

comp_ei() calculates the EI-Index values as a measurement for ego-alter homo-/heterophily.

Usage

comp_ei(object, alt.attr, ego.attr)

Arguments

object

An egor object.

alt.attr

A character naming the variable containing the alter-attribute.

ego.attr

A character naming an ego attribute.

Value

A tibble with the ego ID and a numeric result vector.

Examples

data("egor32")
comp_ei(egor32, "age", "age")

egor documentation built on March 31, 2023, 11:33 p.m.