Questions tagged [sna]

Social network analysis (SNA) is the methodical analysis of social networks. Social network analysis views social relationships in terms of network theory, consisting of nodes (representing individual actors within the network) and ties (which represent relationships between the individuals, such as friendship, kinship, organizational position, sexual relationships, etc.)

296 questions
0
votes
1 answer

Creating weighted igraph network using two-column edge list

I'm in the process of creating a weighted igraph network object from a edge list containing two columns from and to. It has proven to be somewhat challenging for me, because when doing a workaround, I notice changes in the network metrics and I…
voppikode
  • 27
  • 6
0
votes
1 answer

Creating igraph network with isolates with graph_from_data_frame

I'm trying to create an igraph network object by using the graph_from_dataframe. My target is to map out interactions in a large group. For this, I have a dataframe of vertices (i.e. list of the actors (approx 200) with their name and different…
voppikode
  • 27
  • 6
0
votes
0 answers

Degree function in the "sna"-package of R ignoring valued data

I have network data with directed and valued ties between nodes. I need to compute the in-degree for the nodes and use the "degree"-function in the "sna"-package of R, but it ignores the valued data and produce results as if the data was…
Per Becker
  • 21
  • 1
0
votes
1 answer

How to compute the "Katz similarity" measure of regular equivalence described in Newman (2010)

I would like to know if there is an R package which is able to compute the regular equivalence measure described in Newman (2010:218) as "Katz similarity": where σ is the similarity score, A is the adjacency matrix of the graph and δ is meant to…
0
votes
1 answer

Splitting a large network into many subgraphs using igraph

I have a large dataset comprising social network data from a number of different classrooms across different schools. I would like to split this large network into many smaller classroom networks according to a variable "class_id" or "school_id". I…
0
votes
1 answer

Adding edge attribute to a network constructed from a co-occurrence matrix in R

I have a list of binary coded observations regarding whether one entity is present or absent at one given time, e.g., date a b c d e f g 07-07-2021 0 1 1 0 0 0 0 07-08-2021 1 0 0 0 1 1 1 07-10-2021 0 0 1 1 1 1 0 07-11-2021 1 1 1 0 0 1 1 I…
0
votes
0 answers

How can I calculate degree, eigenvector, bonacich power centrality using R igraph package?

I am trying to calculate degree centrality, eigenvetor centrality and bonacich power centrality using igraph package in R. My data is South Korea's commuting data. My data looks like this1st column: orientation region code, 2nd column: destination…
Mir
  • 63
  • 6
0
votes
1 answer

Fill in fitted and residual values from netlm into respective cells in matrix data

I'm using netlm() from the sna package to regress one variable on another in order to get fitted and residual values. I set mode argument inside netlm() to undirected "graph" with 10 times QAP. Then I checked the output. The output contains 12,880…
Chris T.
  • 1,699
  • 7
  • 23
  • 45
0
votes
1 answer

Customize color of lines in Social Network Visual in ggplot2

I'm struggling with the following issue. I visualized a big social network and would like to customize the color palette of the edges captured in geom_segmentfor better visibility. For instance, I want to replace my blue scale by a red scale. How…
MixedModeler
  • 125
  • 7
0
votes
0 answers

How to measure the % of loops in a network in R?

I am calculating some measures of a group of networks and got stuck when trying to calculate the percentage of "loops" in my networks. This is not a question about "for-loops"/"while-loops"/"repeat-loops", but on how much a node feeds into itself,…
0
votes
1 answer

Changing node color with dynamic network visualisation

I am trying to create a network animation that shows how nodes change state over time. The use case is contact tracing for Covid-19. I used an agent-based model to simulate Covid-19 spread. From this I extracted my contact network. I am struggling…
aterhorst
  • 625
  • 4
  • 14
0
votes
1 answer

Trying to represent a Network using the "igraph" package on R, can't add a named independent node

So I'm trying to represent a large network that is composed of other smaller networks. In order to do this I try and create each one of the networks individually with the intention of inserting them all into an object later on, an example of these…
Tavirio
  • 17
  • 5
0
votes
1 answer

Dynamic vertex attribute in ndtv

I have been trying to implement dynamic vertex attributes in ndtv and I actually managed to create different sized vertices but upon closer inspection they did not correspond to the values I thought I had specified. Instead the vertex size was just…
SimonDude
  • 7
  • 1
  • 4
0
votes
1 answer

Can Cytoscape calculate centrality?

does somebody know whether Cytoscape can calculate statistical numbers like centrality (degree, betweenness centrality, closeness centrality), denity and clique analysis? Thank you in advance!
0
votes
1 answer

How can I add geographic distance matrix to an igraph network?

I have an igraph network of 169 nodes (neighbourhoods). I've added some vertices attributes using: V(g)$attribute. I'm going to study the impact of the geographic distance between the nodes (neighbourhoods). I've calculated the distance between…
Tamim
  • 25
  • 5