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.)
Questions tagged [sna]
296 questions
0
votes
1 answer
Display only specific labels, using eigenvector centrality (igraph in R)
I am using rstudio version 0.99.879 and igraph version 1.0.1.
My question is rather similar to Show only specific labels on network graph using igraph in R. I have posted my follow-up question on this as a comment there, but was asked to open a new…

Stefan_W
- 163
- 3
- 12
0
votes
1 answer
Transform attribute vector into a matrix with differences of elements
Similarly to this previous post I need to transfrom an attribute vector into a matrix. This time with differences between pairs of elements using R.
For example I have a vector which reports the age of N people (from 18 to 90 years). I need to…

Forinstance
- 413
- 4
- 17
0
votes
1 answer
Transform categorical attribute vector into similarity matrix
I need to transfrom a categorical attribute vector into a "same attribute matrix" using R.
For example I have a vector which reports gender of N people (male = 1, female = 0). I need to convert this vector into a NxN matrix named A (with people…

Forinstance
- 413
- 4
- 17
0
votes
0 answers
is it possible to create a weighted gantt chart in R?
I have some network data that describes connections between individuals over time and the edges are weighted. I'm interested in looking at how the weights of the edges change over time. To do so I was planning to make a gantt chart with the…

unknown
- 853
- 1
- 10
- 23
0
votes
1 answer
Is there a method for generating a rectangular matrix?
I'm generating networks using the rgnm function from the sna package. E.g.
int_mat <- rgnm (1,10,33)
Is there a method that I can use to produce a non-square matrix (e.g. 10 x 11 matrix) using this or another function?
Thanks!

unknown
- 853
- 1
- 10
- 23
0
votes
0 answers
Is there a plotting library which allows me to drill down and roll up on a social network type graph
I want to plot a social network for linkage analysis. Very specifically, I have a dataset with call data showing who interacted whom at what time.
In the resulting interactive graph, I should be able to (preferably) click on one node to look into…

amat96
- 11
- 3
0
votes
0 answers
How to convert edgelist to adjacency matrix format and save in csv file?
I have an edge list of person-to-person data
PersonTo,PersonFrom
P1,P2
P3,P1
P4,P6
P6,P1
I want to convert this in adjacency matrix format. I have tried the code given below but it shows output on R screen. How can i save this output…

user12
- 761
- 8
- 24
0
votes
1 answer
two mode network different colors for nodes
I have a problem with visualising different nodes in a 2-mode network and hope, someone could help me find the mistake. I checked the following related Q&A's,
How to create a bipartite network in R with igraph or tnet
or
Converting data form for…

Stefan_W
- 163
- 3
- 12
0
votes
1 answer
Adjacency matrix from edge list in R
I have an unweighted edge list which I need to convert to a symmetric matrix for futher analysis. I use igraph function graph.data.frame() to create a graph object. Unfortunatelly I can't find a way to convert dgCMatrix to a matrix or creat a matrix…

Anna Yashina
- 514
- 8
- 18
0
votes
2 answers
Altering dataframes stored within a list
I am trying to write some kind of loop function that will allow me to apply the same set of code to dozens of data frames that are stored in one list. Each data frame has the same number of columns and identical headers for each column, though the…

C.Whichard
- 15
- 2
0
votes
1 answer
collapse/aggregate some parts of an adjacency matrix simultaneously on rows and columns
I have a matrix, which represents mobility between various jobs:
jobnames <- c("job 1","job 2","job 3","job 4","job 5","job 6","job 7")
jobdat <- matrix(c(
5, 5, 5, 0, 0, 5, 5,
5, 5, 2, 5, 5, 1, 5,
1, 5, 5, 5, 0, 0, 1,
1, 0, 5, 5, 8, 0, 1,
0, 5, 0,…

emilBeBri
- 625
- 13
- 18
0
votes
3 answers
SAS Adjacency Matrix Creation
I have created this table:
And from this I want to create an adjacency matrix which shows how many employee_id's the tables share. It would look like this (I think):
I'm not sure if I'm going about this the correct way. I think I may be doing it…

hope288
- 725
- 12
- 23
0
votes
2 answers
R igraph degree() 'Error in match.arg'
I have a directed graph and would like to export a table of vertices with metrics such as "in degree", "out degree", and "total degree", all in one.
g <- graph( c("John", "Jim", "Jim", "Jill", "Jill", "John"))
Now that we have a sample directed…

adm
- 354
- 5
- 17
0
votes
4 answers
import csv into spss modeler for social network analysis?
I want to import my data (csv) into spss modeler for group analysis,but it required fixed width format file,how can I import my data?
thank you for you help!

lemon
- 149
- 2
- 10
0
votes
0 answers
iGraph: Create vertex attribute based on edges weight going into a node
I have a bipartite network consisting on users and books. Edges between the two have a "Rating" attribute which is a value between 1-10. I want to create a "Average Rating" attribute for each node, so I know a books average rating and a users…

Joe Bringley
- 93
- 10