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
1
vote
1 answer

Extending Dimensions in nodesIdSelection box in VisNetwork so Labels Fit Without Being Cutoff

I have created a VisNetwork graph which works great. One of the issues I am having is the labeling though in the nodesIdSelection = TRUE. The node ID's are rather long and they cutoff because of the default length of the drop-down box. This is what…
nak5120
  • 4,089
  • 4
  • 35
  • 94
1
vote
1 answer

How can I determine robust slice parameters for dynamic network renderings in R using ndtv?

I strive to produce a visual dynamic animation of timestamped transactions, where each transaction represents a contribution of a person to an artifact/file. To this end, I am using the R packages networkDynamic, network and ndtv. The transactions…
Mischa
  • 623
  • 5
  • 17
1
vote
1 answer

Data Summary in R: Using count() and finding an average numeric value

I am working on a directed graph and need some advice on generating a particular edge attribute. I need to use both the count of interactions as well as another quality of the interaction (the average length of text used within interactions between…
EVie
  • 23
  • 2
1
vote
1 answer

sna: modification of the Dijkstra algorithm (shortest paths)

I've been using the function shortest_paths from the igraph package in order to calculate the shortest path between two links. My igraph object contains the weighted links. The integrated Dijkstra algorithm uses sums in order to express the…
Baszyk
  • 11
  • 2
1
vote
1 answer

Probability distribution over time?

I'm new to R. I've been all over Stack Overflow about this, and perhaps am not searching correctly for the answer I want. I have a matrix with unique dyadic relationships as rows and years as columns. The cells are populated with a 0 if the two…
Audrey
  • 99
  • 7
1
vote
1 answer

adjacency array to perform an mrqap test in sna package

How can I get an adjacency array to perform an mrqap test in sna package? I have a weighted multiple network (two undirected and one directed), in an edge list with attributes, like this: source target terr type weight 1010 1007 1 …
Sebastián
  • 111
  • 8
1
vote
1 answer

Set edge values using network package in R

I have a question about assigning edge values to a network in R using the set.edge.value command of the network package. The assigned values in my large network are just not right, therefore I generated a small network to make the problem easier…
Flow
  • 735
  • 2
  • 7
  • 17
1
vote
2 answers

R - Network Data Into and Out of R - Adjacency Matrix to Edgelist Format

I am a basic programmer using R for social-network analysis and have some information that I am not sure how to solve. WHAT I HAVE: An adjacency matrix stored as a csv file with the following information: a) Households in row 1 and households in…
Des
  • 11
  • 2
1
vote
1 answer

SNA in R: Get alters' attributes from ego's ID

I have a data frame that's an edgelist (undirected) describing who is tied to who, and then a data frame with those actors' ethnicity. I want to get a data frame that lists the name of each ego in one column and the sum of their alters of a given…
Audrey
  • 99
  • 7
1
vote
1 answer

Generate a Preference Matrix in R?

I'm using r to analyze an undirected network of individuals with ethnicities as attributes. I want to create a tie accounts table, or "preference matrix," a square matrix where values of ethnicity are arrayed on both dimensions, and each cell tells…
Audrey
  • 99
  • 7
1
vote
2 answers

Merge a list of matrices into big matrix(summarizing its values)

my problem at the moment is the following. I have a big list of matrices(about 1600). Actually it's adjencency matrices of cliques with varying size(from 2:2 to 5:5). here is example of 2 matrices first name1 name2 name3 name1 …
G.Lysov
  • 13
  • 3
1
vote
1 answer

SNA analysis to understand product recommendation using R

Apologies if this question was not framed well. I am experimenting my novice R skills, to analyse SNA on ecommerce data from SNAP. I got the large data sets on product co-purchased information. The data set has details on #FromNode & #ToNode…
1
vote
1 answer

Calculate inverse log-weighted similarity in a bimodal network, igraph in Python

I'm trying to calculate Adamic-Adar similarity for a network, which have two types of nodes. I'm only interested in calculating similarity between nodes which have outgoing connections. Nodes with incoming connections are a kind of connector and I'm…
oski86
  • 855
  • 1
  • 13
  • 35
1
vote
1 answer

sna R package efficiency function inconsistency

I have three different matrix and their Krackhardt efficiency seem wrong to me. The first two matrices are topologically equivalent, but their efficiency is different. Anyone has an explanation of the inconsistency? For the first matrix, efficiency…
Kar Z
  • 11
  • 2
1
vote
1 answer

Large Scale Social Network Analysis for Hypergraphs

I have been trying to implement large scale social network analysis for hypergraphs. But Apache Giraph allows only simple graphs and Multigraphs. II couldn't find any suitable method to implement Large Scale SNA in Hypergraphs. Please suggest me…
Alen Jacob
  • 11
  • 1