similar to: R SNA: Creating a adjacency matrix containing all actors but only values of a subset

Displaying 20 results from an estimated 900 matches similar to: "R SNA: Creating a adjacency matrix containing all actors but only values of a subset"

2011 May 23
0
SNA query
Hi R Users I am working with the very useful SNA package (v.2.2) in R and have a query I hope you may be able to help out with: I have been using gplot commands to plot an SNA graph. Here's the code and output: library(sna); library(network); library(RODBC) setwd("c:\\temp") x = read.csv(file = "testforr.csv") Total.Sold=c(1,3,6,1,3,6,1,3,6,6,9) src=c(1:10,1)
2008 Dec 26
2
question about SNA in R, thanks!
Dear colleagues, I'm trying to have a look at the Assortative and Disassortative ( http://en.wikipedia.org/wiki/Assortative_mixing) of the network I have. But it seems that the igraph hasn't mentioned that yet. I have to get the in/out degree of the vertices of each edge and calculate the Pearson's Correlation coefficient which seems to be quite a huge task for me. :( So I wonder if
2008 Feb 27
1
how to convert a table to adjacency matrix used in social network analysis?
Hi Guys, Do you any one know how to convert a long format table to an adjacency matrix used in sna? The long table looks like p1 p2 counts a b 100 a c 200 a d 100 b c 80 b d 90 b e 100 c d 100 c e 40 d e 60 and I want to convert it to an adjacency matrix which can be used in sna? Any methods will be appreciated! btw, besides sna package, is there any better package can be used in social
2006 Nov 20
1
SNA packages/network package
Hello everyone, I am an italian student who is working with packages SNA (social network analysis) and network. I ask you if there is a simple way to write a R-script using these packages to extract from an adjacency matrix the following things: -number of cliques which are in the network; -number of k-cores (e.g. 3-cores, 4-cores); -cycles (e.g. 3-cycles, 4-cycles) -hub & authorities.
2006 Apr 23
1
sna package: how to use dataframes
Hi, I an new to R and I realize this may be a silly question, but I searched the manuals and the list archives and can't find the answer. When I read data from R I get a dataframe with labels for rows and columns. SNA however asks for pure adjacency matrices, and if I try to use the dataframe gives an error message. What should do? Thanks a lot Jorge A. Colazo U. of Western Ontario
2003 Apr 22
1
Social Network Analysis and R
I'm interested in computing densities of a number of small ego-centred or local networks. I've installed both the R program and the sna package. My next task is importing the data into R. Our data was entered into Spss in an edgelist format in which each case specifies the link between an alter and an ego. For example: 10101 10102 1 10101 10103 3 10102 10104 2 10201 10203
2011 May 18
1
data network format and grouping analysis
Hi everyone, I have a dataset of friendship with this format: ego alter 4746 1 2 9742 1 3 14738 1 NA 4747 2 NA 9743 2 3 14739 2 1 4748 3 13 9744 3 5 14740 3 14 4749 4 NA 9745 4 NA 14741 4 NA 4750 5 NA 9746 5 13 14742 5 10 4751 6 12 9747 6 7 ... NA means that individuals don't select any
2011 Jul 06
1
superimposing network graphs
Dear all, I have a undirected network (g), representing all the sexual relationships that ever existed in a model community. I also have a directed edgelist (e) which is a subset of the edgelist of g. e represents the transmission pathway of HIV. Now I would like to superimpose the picture of the sexual relationships with arrows in a different colour, to indicate where in the network HIV was
2005 Jul 21
3
vectorising ifelse()
Hi All, is there any chance of vectorising the two ifelse() statements in the following code: for(i in gp){ new[i,1] = ifelse(srow[i]>0, new[srow[i],zippo[i]], sample(1:100, 1, prob =Y1, rep = T)) new[i,2] = ifelse(drow[i]>0, new[drow[i]>0,zappo[i]], sample(1:100, 1, prob =Y1, rep = T)) } Where I am forced to check if the value of drow and srow are >0 for each line... in
2011 Apr 09
3
Converting edgelist to symmetric matrix
Hi, I have network data in the form of a couple of edgelists containing weights in the format "x,y,weight" whereby x represents row header and y represents column header. All edgelists are based on links among 634 nodes and I need to convert them into a 634*634 weighted matrix. I searched for online help using possible keywords I know, but I could not find a clue how to do this in
2008 Dec 28
1
how to get degree according to the name of the node?
Hi all, I have two networks for the same group of the users. I want to compare individual's degree in different networks. But how could I get the degrere of the nodes according to its name? When I use degree(g1), I could only get a vector of the degree of each node. But when I turn to g2, I don't know whose degree it is so I can't match it with the degree(g2). Now I'm trying to
2006 Apr 20
1
sna package: how to import data in linked list format
Hello, I have several "linked list" format network files that I'd like to read into R. Although I found a function to export files in .dl format, I could not find a function to read files in such format. Is there any quick way to read linked-list format files into R? Thank you very much. Jorge Colazo PhD Student University of Western Ontario [[alternative HTML version deleted]]
2006 Oct 31
2
information about sna packages
Hello, I'm a student who want to use the R social network analysis package. I have a question: can this package analyse dynamical networks (network changing over time)? I didn't find this functionality in the package's user manual. Thank you Davide [[alternative HTML version deleted]]
2009 Jul 14
1
Error installing package sna
Dear R-users, These days, I have been struggling to install the package sna on my Ubuntu 8.04 laptop. My R version is currently R 2.7.2. And I had no trouble installing any other packages (including network). However when I run 'install.packages("sna")', compilation of C codes is ok, but a syntax error is reported when building help pages and sna does not want to install. I
2009 Apr 06
2
Bonpower Crashes Trying Sparse Matrix (Igraph)
Hello All, I have been trying to do bonpow for a while now.Bonpow works for few graphs and for few others it goes out of memory. I did see reply to one of the posting Alph Centrality Crashed in Igraph memory error. The solution in the posting was to use sparse matrix. This is the link of the message. http://lists.gnu.org/archive/html/igraph-help/2008-04/msg00071.html I was able to obtain
2007 Nov 10
1
about R sna package source code
Is anyone know some thing about sna package source code?? I have a question about sna source code, I need some functions in R sna package, so I check the source code. There is a function called efficiency in sna package, but I didn't find the any code about "efficiency", anyone know it? thank you [[alternative HTML version deleted]]
2009 Apr 29
1
Hierarchical Diagram of Networks in sna or otherwise?
I've been using sna to work with some networks, and am trying to visualize them easily. My networks are hierarchical (food webs). All of the layout engines I've tried with gplot don't seem to plot hierarchical networks, as one would using dot from graphviz. While I could do all of this by outputting to dotfiles and running it through graphviz, the graphics I get from R are much
2005 Apr 28
1
Installing sna package on MacOSX
Hi folks, I am trying to install the sna package on a MacOS X 10.3.9 and 10.3.4. In neither case I have been able to get the R CMD Install command to succeed from the Terminal window. With 10.3.9 I get an error with the Make command, and with 10.3.4 I get an error on the Description(???) Has anyone out there been able to install it successfully on a Mac? Thanks Alex
2009 May 29
0
Help installing sna on Solaris 10/Intel
Hi, I've been trying to install the statnet package on my Solaris 10/Intel system. I've been having problems with one of the dependencies, sna. During the compile, it always fails and complains about __builtin_isnan (please see below for output). I have tried installing this using Sun Studio 12, as well as gcc4 from opencsw.org. I am thinking it may have to do with what R thinks is the
2012 Oct 15
0
what to use for sna/graphs?
What do people use for SNA/graph analysis in R? So far I have been using igraph (it implements the Louvain community detection algorithm as multilevel.community, which is the killer feature for me). However, igraph is severely lacking in visualization, which I also need. graphviz & gephi are alleged to be good at visualization, but, apparently, not so for analysis (specifically, community