***** To join INSNA, visit http://www.insna.org ***** Alex, I will try to use both statnet and igraph together again. My problem was not in using ergm, however. My issues occurred when I was trying to extract a subgraph. I have a large network consisting of 5K+ nodes and organized into groups of 30-70 nodes each. I'm investigating collaboration change in one group as they move from a closed office to open plan facility. I can write scripts that work when either igraph or statnet are loaded, but when both are loaded, I have difficulty with extracting a subnet, converting from the network to graph data structure, and with visualization using plot (I imagine I need to use the actual package command ie gplot). I think if I knew how to convert between the network and graph data structures, I'd be able to leverage both packages. Thanks. Ian McCulloh Sent from my iPhone > On Jul 13, 2015, at 7:22 AM, Alex Stivala <[log in to unmask]> wrote: > > Ian, > > I use statnet and igraph at the same time, and have found the R intergraph package by Michal Bojanowski: > > http://cran.r-project.org/web/packages/intergraph/index.html > > to be very useful for converting between the igraph and statnet network formats. > > For example: > > library(igraph) > library(statnet) > library(intergraph) > > netscience <- nexus.get('netscience') > nNetscience <- asNetwork(netscience) > > system.time(nsmodel <- ergm(nNetscience ~ edges + altkstar(2.0, fixed=TRUE) + gwesp(log(2.0), fixed=TRUE) + gwdsp(log(2.0), fixed=TRUE), control=control.ergm(main.method="Stepping", MCMC.burnin=1e+6,MCMC.interval=1e+04,MCMC.samplesize=1e+05))) > > summary(nsmodel) > > Note sure I can help with your other particular questions, I prefer to use igraph for plotting (where it is relatively easy to do things like your question 3) and computing various statistics (question 1), I use statnet primarily for ergm. > > Regards, > Alex.. > > >> On Mon, Jul 13, 2015 at 3:10 PM, Ian McCulloh <[log in to unmask]> wrote: >> ***** To join INSNA, visit http://www.insna.org ***** >> >> Hello, >> >> I have noticed some compatibility issues when I load igraph and statnet into R at the same time. I'm preferring to use statnet because of ergms. I'm hoping I can get a little help with the following: >> >> 1. How do you calculate connectedness, hierarchy, krackhardt efficiency, and least upper boundedness using the network package, SNA, or any of the statnet dependencies? >> >> 2. Alternatively, is there an easier way to convert data formats between the network structure of the network package and the graph structure of the igraph package? >> >> 3. How do you size nodes by an attribute measure such as centrality using the network package? >> >> Thanks, >> >> Ian McCulloh >> >> _____________________________________________________________________ >> SOCNET is a service of INSNA, the professional association for social >> network researchers (http://www.insna.org). To unsubscribe, send >> an email message to [log in to unmask] containing the line >> UNSUBSCRIBE SOCNET in the body of the message. > _____________________________________________________________________ SOCNET is a service of INSNA, the professional association for social network researchers (http://www.insna.org). To unsubscribe, send an email message to [log in to unmask] containing the line UNSUBSCRIBE SOCNET in the body of the message.