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

Generate network using adjacency matrix

I have a problem with generating network object for further ergm estimation in R. Namely, when I feed the network function with an adjacency matrix, it generates an error that my network contains loops and multiple edges, which is simply not true. I…
0
votes
0 answers

extracting nodes and edges from biblioNetwork matrix

I'm trying to figure out how to use visNetwork's interactive graphing functions with a network generated by the bibliometrix package's biblioNetwork tool. I will confess to being a novice w/ R so this might not even be possible, but how would one…
0
votes
1 answer

Simulate ERGM with nodal attributes

I was wondering whether it is possible to simulate networks that come from an ERGM distribution in which the nodes have attributes. For example, if I wanted to simulate a network where triangles between nodes with similar attributes are more likely,…
Tendero
  • 1,136
  • 2
  • 19
  • 34
0
votes
1 answer

Adding edge attribute to a network constructed from a co-occurrence matrix in R

I have a list of binary coded observations regarding whether one entity is present or absent at one given time, e.g., date a b c d e f g 07-07-2021 0 1 1 0 0 0 0 07-08-2021 1 0 0 0 1 1 1 07-10-2021 0 0 1 1 1 1 0 07-11-2021 1 1 1 0 0 1 1 I…
0
votes
0 answers

Setting node attribute : number of items to replace is not a multiple of replacement length

I convert the data frame to graph using igraph. when I want to set vertex attribute I get a warning and my vertex does not fit correctly to node. Can any one help me please? The problem also shows when I want to set degree as a node attribute and I…
Eli
  • 3
  • 4
0
votes
1 answer

Set node degree as a node attribute, using igraph

I want to put the degree of each node as a vertex attribute, my code is as follows, but it doesn't work, where the problem could be? degrees <- igraph::degree(graph) degree<-sort(degrees, decreasing = TRUE) dat<-…
user14269252
  • 412
  • 4
  • 15
0
votes
1 answer

Error that the adjacency matrix is not symmetric

My dataset is as follows, I want to create a network but the error is that my adjacency matrix is not symmetric, I am new to R, I don't know how to convert my data to symmetric adjacency matrix, can any one help me please? df2: 17 "RobertKennedyJr"…
user14269252
  • 412
  • 4
  • 15
0
votes
1 answer

Why introducing a 'blockdiag' constraints argument in exponential random graph models (ergm) drastically slow down the computation?

I am trying to run a valued exponential random graph model (ergm) on a weighted network (network_ex). This network shows the interactions between individuals in four different groups. Interactions between groups cannot occur so a blockdiagonal…
Louise
  • 3
  • 2
0
votes
1 answer

Changing node color with dynamic network visualisation

I am trying to create a network animation that shows how nodes change state over time. The use case is contact tracing for Covid-19. I used an agent-based model to simulate Covid-19 spread. From this I extracted my contact network. I am struggling…
aterhorst
  • 625
  • 4
  • 14
0
votes
1 answer

issue running valued exponential random graph model (ergm) with block diagonal constraint

I am trying to run an exponential random graph model (ergm) on a weighted network (network_ex). This network shows the interactions between individuals in four different groups. Interactions between groups cannot occur so a blockdiagonal constraint…
Louise
  • 3
  • 2
0
votes
0 answers

New to statnet in r, error in .Call message

I'm using statnet and R for the first time, and keep coming across this error message: Error in .Call(getEdgeAttribute_R, el, attrname, na.omit, null.na, deleted.edges.omit) : NULL value passed as symbol address I have not had this problem in any…
KatzM
  • 1
0
votes
2 answers

How to calculate the standard errors of ERGM predicted probabilities?

I'm having trouble estimating the standard errors from the predicted probabilities from a ERGM model, to calculate a confidence interval. Getting the predicted probabilities is not a problem, but I want to get a sense of the uncertainty surrounding…
0
votes
1 answer

Dynamic vertex attribute in ndtv

I have been trying to implement dynamic vertex attributes in ndtv and I actually managed to create different sized vertices but upon closer inspection they did not correspond to the values I thought I had specified. Instead the vertex size was just…
SimonDude
  • 7
  • 1
  • 4
0
votes
1 answer

Modeling ERGM with two edge attributes in R

I have a scenario, where one edge attribute affects another edge attribute. Is there a way to model this in ERGM? For instance, consider outsourcing contracts where complexity of the contract affects the value of contract. I would like to model…
askaranam
  • 3
  • 2
0
votes
1 answer

How to convert mode into an attribute in bipartite projection

I have a quick question about retaining node information after converting to a one mode projection. library(igraph) data <- data.frame( company=c(letters[1:5],letters[5:8],"a"), Deal=c(14,14,15,15,16,16,17,17,18,18)) g <-…
Holly L
  • 23
  • 1
  • 4