[statnet_help] Assistance with Calculating Degree Centrality in
Directed and Valued Networks Using the sna Package in R
CHU-DING LING via statnet_help
statnet_help at u.washington.edu
Fri Aug 23 21:07:20 PDT 2024
Dear all,
I hope this message finds you well. I am currently working on a project
that involves social network analysis using the *sna* package in R. I am
reaching out to seek your expertise on a particular issue I have
encountered regarding the calculation of degree centrality in directed and
valued networks.
I am working with a directed network where edges have associated weights.
My goal is to accurately calculate both the in-degree and out-degree
centrality of nodes while considering the edge weights. I attempted to
calculate the degree centrality using the degree function in the *sna*
package. While this function works well for unweighted networks, I realized
that it does not account for edge weights.
Could you please advise on the best method or function within the *sna*
package to accurately calculate the degree centrality in this context?
Though I can make it with *igraph* or other packages, I am particularly
interested in whether *sna* could directly handle weighted edges in
directed networks.
Your guidance would be invaluable, and I would greatly appreciate any
suggestions or resources you might be able to provide. Thank you for your
time and consideration. I look forward to your insights.
Best,
Chuding
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman13.u.washington.edu/pipermail/statnet_help/attachments/20240824/7eb0f7eb/attachment.html>
More information about the statnet_help
mailing list