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
1
vote
0 answers
networkDynamic R visualization call incorrectly vertex attribute on reconciled time periods
I want to visualize and analize a networkDynamic object using R. After creating it:
NetDyn.dynACCP <- networkDynamic(base.net=NetAccionCP, edge.spells=esUS2)
NetDyn.dynACCP
class(NetDyn.dynACCP)
I proceeded to visualize it:…

Vlad
- 125
- 4
- 9
1
vote
2 answers
How citation networks are associated with complex adaptive systems?
I have read that citation networks are associated with the complex adaptive networks as they exhibit following characteristics: self-organization, emergence, no-linearity, order/chaos dynamic, and are adaptive to its environment. I want to know…

BiSarfraz
- 459
- 1
- 3
- 14
1
vote
2 answers
Can't get edge weights to count in temporal network centrality scores
A subset of my data for a temporal network are as below:
edge <- data.frame(onset = c(1968, 1968, 2007),
terminus = c(1968, 1968, 2007),
id_from = c(1, 1, 2),
id_to = c(3, 2, 4),
weight =…

1984
- 41
- 3
1
vote
0 answers
Infinite gradient in simple network Latent Space Model in RStan
I am trying to fit a Latent Space Model in RStan, a well established type of (social) network model. (Meaning this MAY be a question for CrossValidated, but I have reasons to believe it's not, yet.) I know packages are available, but I am working…

one_observation
- 454
- 5
- 16
1
vote
2 answers
Create a simple non-directed friends graph from list of friends
This is a simple R task. I have a list of some people with IDs and a list of friends of each of the people (with IDs too). They are here:
> dput(friends_of_people)
structure(list(`7614` = c(1091, 1252, 1827, 34687), `29752` = c(1419,
1799, 3353,…

Alex Knorre
- 620
- 4
- 15
1
vote
1 answer
How to calculate the number of edges between nodes of a certain group?
I have the following dataset and the following script:
library(GGally)
library(ggnet)
library(network)
library(sna)
library(ggplot2)
# edgelist
e <- data.frame(sender = c(1, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 5),
receiver = c(2, 3,…

feder80
- 1,195
- 3
- 13
- 34
1
vote
1 answer
Using ego function from iGraph to generate a list of connected nodes to parse through a function
I'm having some trouble working with the iGraph package with R. Specifically when i'm trying to get all the nodes within 2 degrees of separation from a given node then use that list to run some operations on via a function.
I'm not super confident…

DavimusPrime
- 368
- 4
- 17
1
vote
0 answers
Combine edgelist and nodelist (error with vertices) igraph
I have a question on combining two csv.files - one is a edgelist and the
other a nodelist. I want to combine them (graph.data.frame) and it
should be a directed graph. I am using r version 3.2.3/rstudio version
0.99.879 and igraph version 1.0.1.
A…

Stefan_W
- 163
- 3
- 12
1
vote
0 answers
How to plot degree assortativity using R?
I am working on degree assortativity. I have calculated degree assortativity using R using igraph package.I tried this code but it only calculates overall degree assortativity value
[library(igraph)
datafile <-…

user12
- 761
- 8
- 24
1
vote
0 answers
How to calculate Multilpe regression quadratic assignment procedure using R?
I am following this tutorial for Multiple Regression - Quadratic Assignment Procedure http://www.umasocialmedia.com/socialnetworks/lecture-9-patterns-in-social-networks/. It is used to study the multiplexity of nodes i.e age, gender attribute. I…

user12
- 761
- 8
- 24
1
vote
1 answer
Cypher query return overlap?
I was curious as to how neo4j interprets the following query and what is actually returned.
MATCH path=(p1:Student)-[f:Friends]->(p2:Student)-[f2:Friends]->(p3:Student)
RETURN p1.studentID, p2.StudentId, p3.StudentId
I see this as returning all…

Stig
- 353
- 1
- 3
- 12
1
vote
1 answer
Proportional link or node size in graph for R?
is there a way to draw the links or nodes of a network in igraph for R proportional to a minimum and maximum values?
Using link and node attributes for drawing is very handy in igraph, but in some networks the difference between the minimum and…

Marco
- 347
- 3
- 18
1
vote
1 answer
How can I show the intermediate steps of a long routine in R?
when I run a long routine in R, is it possible to show the intermediate steps?
For instance, I'm working with a routine for building randomized versions of an original matrix, based on null models (package bipartite):
#Build N randomized version of…

Marco
- 347
- 3
- 18
1
vote
1 answer
r sna equiv.clust more than one graph
I would like to provide more than one graph as input to the equiv.clust function in the sna package. For example
library(ergm)
library(sna)
data(florentine)
flobusiness # first relation
flomarriage # second…

Raj
- 43
- 1
- 6
1
vote
1 answer
how to select submatrix in a (adjacency) matrix based on ties, in R
I have a matrix, which represents mobility between various jobs:
jobdat <- matrix(c(
295, 20, 0, 0, 0, 5, 7,
45, 3309, 15, 0, 0, 0, 3,
23, 221, 2029, 5, 0, 0, 0,
0,…

emilBeBri
- 625
- 13
- 18