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
2
votes
1 answer

Why does read.paj fail on a network with no arcs or edges?

I have a small, 2 vertex network in Pajek format that I would like to read into a network object using statnet. The network has no arcs or edges, just those 2 vertices. Unfortunately, when I use read.paj, it just returns NULL. Code to reproduce…
Jake Fisher
  • 3,220
  • 3
  • 26
  • 39
2
votes
2 answers

How do I select nodes in a network object based on their edge value?

This might be a very straight forward question, but I seem not to be able to work it out. In R I have a network object of 251739 nodes (inventors) and 759804 edges (collaborations on patents). Both nodes and edges have attribute files. One of such a…
wake_wake
  • 1,332
  • 2
  • 19
  • 46
1
vote
1 answer

Statnet and the function networkDynamic. Error: Network size is smaller than size implied by vertex.ids in vertex or edge argument

Problem Description: I am attempting to perform temporal network analysis using R, specifically utilizing the temporal network tools provided by statnet: networkDynamic and ndtv. The purpose is to observe the changes that occur in a network over…
JHJH
  • 47
  • 6
1
vote
1 answer

Using a network with missing edges to predict tie formation in another network

I am trying to model the formation of ties in a directed network. For context, the tie I am analyzing is people nominating others as talented. I am executing Exponential Random Graph Models to ask what predicts a nomination. Among other things, I…
Ben
  • 11
  • 1
1
vote
1 answer

How can I perform a sensitivity analyses on an ERGM model?

For a paper, I've ran an ergm model. A reviewer has requested that to run a sensitivity analyses on the model, with the goal of checking how strong the effect of an unobserved and unmeasured confounding variable has to be in order to explain away…
1
vote
1 answer

Is there a way to make a configuration model with the statnet ecosystem?

I can make a configuration model with igraph like this: set.seed(124) k_i <- rpois(10, 3) ## [1] 1 2 3 2 2 2 3 3 6 2 g <- igraph::sample_degseq(k_i, method = "vl") plot(g) I can recover the correct degree histogram for this network with statnet…
nmaclaren
  • 73
  • 6
1
vote
0 answers

What does the brokerage function in R package network (sna, statnet) do with weights and mutual edges?

The function brokerage() in R package sna performs a brokerage census following the Gould and Fernandez 1989 article. The original Gould and Fernandez article only applies to directed binary networks. That is, edges have no weights. In addition,…
Rafael
  • 131
  • 6
1
vote
0 answers

Trying to create a bipartite network, but as.network isn't creating it properly

I'm trying to create a list of bipartite networks that I'll eventually use to fit a TERGM. Each network represents a single year. However, I'm having trouble creating the individual networks using the as.network() function from statnet. For a single…
greg-f
  • 11
  • 1
1
vote
1 answer

how to resolve the ergm degeneracy?

this is a question for your help. i use the ergm to model the formation of network.but it is always degeneracy.there are just 174 nodes(vertices), 304 deges. i use the code as follow my.ergm.3 <- formula(gg04.1 ~ edges+nodecov("width")+…
Ji Ze
  • 11
  • 1
1
vote
1 answer

How do I identify isolates and delete them in R Statnet

How do I identify isolates and delete them in R Statnet? Here is an example code. g2<-network.initialize(10) add.edge(g2,1,2) add.edge(g2,2,3) add.edge(g2,3,4) add.edge(g2,4,5) This will generate a network where vertices 6,7,8,9, 10 are not…
Kay
  • 567
  • 3
  • 6
  • 15
1
vote
1 answer

Using color in ggnet

I have a network that I made like this: structure(list(myfirstcol = c(1L, 2L, 3L, 1L, 2L, 3L, 2L, 3L, 1L), mysecondcol = c(1L, 2L, 3L, 2L, 3L, 2L, 1L, 1L, 3L), value = c(394L, 445L, 83L, 2L, 12L, 19L, 33L, 84L, 12L)), class = "data.frame",…
Cauder
  • 2,157
  • 4
  • 30
  • 69
1
vote
0 answers

Exponential Random Graphs: nodematch() and nodefactor() in R

I have been reading on the web about the Exponential Random Graph modelling for network analysis and I am confused about one aspect. Do I need to add in the model the corresponding nodefactor() for each nodematch() term? Some people would say that:…
Vlad
  • 13
  • 2
1
vote
0 answers

Is there a way to highlight specific nodes and edges using networkDynamic package in R?

I have a data set in csv format. I wanted to create a network object and make an animation out of this data set. I wrote a sample code in R to perform this operation. What i want to is to highlight certain nodes (4,7) in the animation and add…
1
vote
1 answer

How to calculate a triad census for an undirected, weighted graph

I would like to calculate a triad census of an undirected, weighted edgelist in R (using sna, igraph and statnet packages). gdrkz is an object of class igraph. When using the following command: triad.census(gdrkz, g=NULL, mode = c("graph")) I get…
morph
  • 21
  • 2
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