Questions tagged [statnet]

statnet is a suite of R software packages for network analysis that implement recent advances in the statistical modeling of networks. The analytic framework is based on Exponential family Random Graph Models (ergm). statnet provides a comprehensive framework for ergm-based network modeling, including tools for model estimation, model evaluation, model-based network simulation, and network visualization.

statnet is a suite of software packages for network analysis that implement recent advances in the statistical modeling of networks. The analytic framework is based on Exponential family Random Graph Models (ergm). statnet provides a comprehensive framework for ergm-based network modeling, including tools for model estimation, model evaluation, model-based network simulation, and network visualization. This broad functionality is powered by a central Markov chain Monte Carlo (MCMC) algorithm.

statnet has a different purpose than the excellent packages UCINET or Pajek; the focus is on statistical modeling of network data. The statistical modeling capabilities of statnet include ERGMs, latent space and latent cluster models. The packages are written in a combination of (the open-source statistical language) R and (ANSI standard) C, and are called from the R command line. And because it runs in the R package ( www.r-project.org), you also have access to the full functionality of R, including the packages "network" and "sna" written by Carter Butts. statnet has a command line interface, not a GUI, with a syntax that resembles R.

Repositories

Resources

Vignettes

Related Packages

93 questions
0
votes
1 answer

How to create network with both edges and isolates using statnet/igraph

My question is similar to the one posted here: Network adding edges error I am creating a network from scratches: I have data about 228 vertices, over a period of 13 years. In the first year, I have just 1781 edges: they do not involve all of my…
Filippo Santi
  • 109
  • 1
  • 8
0
votes
1 answer

Inconsistency between Network object and Igraph object in R

I am starting a descriptive network analysis using both SNA (statnet suite) and igraph in R. I was wondering which suite to use to investigate the different properties of my network, since they have slightly different features that make them not…
Filippo Santi
  • 109
  • 1
  • 8
0
votes
0 answers

How to create a dataframe of node attributes when all nodes don't have an attribute (doing networks with surveys)?

I've been working on this a while to no avail. I'm using both statnet to create some networks in r from survey data. The way the networks are measured in the survey allowed respondents to list network contacts not included in the survey. The way…
elliot
  • 1,844
  • 16
  • 45
0
votes
1 answer

R - construct adjacency matrix based on other adjacency matrix

I have data that looks similar to these two adjacency matrices: data1999 <- data.frame(node1=c("A", "A", "B", "D", "B", "C", "D"), node2=c("A", "A", "D", "B", "B", "C", "D"), link=c(1, 1, 1, 1, 1, 1, 1), …
wake_wake
  • 1,332
  • 2
  • 19
  • 46
0
votes
1 answer

How to group nodes by vertex attribute in ggnet2 or ggnetwork

I want to plot a network object using GGally or ggnetwork and I want to be able to produce a layout where the nodes are grouped by a vertex attribute. I have spent some time searching for a way to do this, but have not figured it out. Can nodes be…
jesse
  • 1
  • 3
0
votes
1 answer

Using the nodes argument for centrality metrics in sna

I am trying to calculate centrality metrics for a specific node within a graph using statnet (I can't just use igraph since it doesn't have certain metrics I'd like). How do I use the nodes argument of these functions to specify this? For example,…
saladi
  • 3,103
  • 6
  • 36
  • 61
0
votes
1 answer

ERGMs on a network with twelve edge types

I have a rather complicated network. The network has 91 nodes and 3453 edges. There are twelve edge types. To build the network, I created 12 separate ego networks, using the edge attributes as individual nodes, then deleted the edge attribute…
Sez
  • 1
  • 2
0
votes
1 answer

How do you dictate the position of the vertices in igraph?

I want to show how a social network changes over time. I'm using igraph. The problem is that each time I create a graph representation of a time period within the social network, the program puts the vertices into a different position for each…
oymonk
  • 427
  • 9
  • 27
0
votes
1 answer

Making clear how groups of vertices form and dissolve over time in NDTV

I am creating an animation of a changing social network in R package NDTV. I have a list of vertices I would like to have grouped together during a short period of the animation. What is the best way to do this? I've pursued three different…
oymonk
  • 427
  • 9
  • 27
0
votes
1 answer

get.inducedSubgraph isolated alters

I have a list containing 3,000 networks. For each of them I need to calculate the density among alters whose attribute "att"==1. I have tried several options, and here is my final code (I am just experimenting with 3 networks). The main problem is…
Fede
  • 31
  • 2
0
votes
1 answer

Adjusting number of nodes in simulate graphs in ERGM

I'm new to Statnet. I'm using ERGM (Exponential Random Graph Model) package to estimate parameters of a large network. Now I wan't to generate networks having the same statistical characteristics but with smaller number of nodes. For the same number…
Mohsen
  • 55
  • 1
  • 8
0
votes
2 answers

gcc error when installing Statnet package

Installing statnet on mac 10.10.3 with R 3.2.x (RStudio 0.99.441). ld: warning: directory not found for option '-L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2' ld: library not found for -lgfortran clang: error: linker command failed with exit…
Chris J. Vargo
  • 2,266
  • 7
  • 28
  • 43
0
votes
1 answer

In R: How do iGraph and STATNET handle disconnected graphs in measuring network centralization

I am working with about 300 disconnected networks of different sizes. I calculate different graph-level centralization measures for these networks using the STATNET and iGraph packages in R. However, I find that the nodes in subgraphs of N=2 get…
wake_wake
  • 1,332
  • 2
  • 19
  • 46
0
votes
1 answer

Importing a weighted adjacency matrix using the Statnet package in R

I am trying to analyze a weighted 1 mode projection of a 2 mode network in R using bipartite and the statnet suite (consisting of network, sna, and several other packages) on a Unix server. The projection works fine using a mix of bipartite and…
Adam J.
  • 3
  • 1
0
votes
2 answers

Assigning arbitrary names to variables in R

After reading in a CSV of attributes, I'd like to apply these to an existing object (using a statnet-specific convention). If I knew the names ahead of time, I would do this: pred_net %v% "id" <- nodeInfo$id pred_net %v% "age" <-…
gerowam
  • 383
  • 1
  • 11