evcent
takes a graph stack (dat
) and returns the eigenvector centralities of positions within one graph (indicated by nodes
and g
, respectively). This function is compatible with centralization
, and will return the theoretical maximum absolute deviation (from maximum) conditional on size (which is used by centralization
to normalize the observed centralization score).evcent(dat, g=1, nodes=c(1:dim(dat)[2]), gmode="digraph", diag=FALSE,
tmaxdev=FALSE, rescale=FALSE)
g==1
.diag
is FALSE
by default.tmaxdev==FALSE
.evcent
will not symmetrize your data before extracting eigenvectors; don't send this routine asymmetric matrices unless you really mean to do so.The simple eigenvector centrality is generalized by the Bonacich power centrality measure; see bonpow
for more details.
Katz, L. (1953). ``A New Status Index Derived from Sociometric Analysis.'' Psychometrika, 18, 39-43.
centralization
, bonpow
#Generate some test data
dat<-rgraph(10,mode="graph")
#Compute eigenvector centrality scores
evcent(dat)
Run the code above in your browser using DataLab