Calculates the mean value of a variable among the alters who nominate each ego.

egomean_r(adj, var)

Arguments

adj

A square adjacency matrix.

var

A numeric vector of attribute values for each node.

Value

A numeric vector of egocentric means for each ego.