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
1
vote
0 answers

Summary command not returning in R script

It seems like the summary command in R is coming up blank whenever I run it in a script, even though it works fine in the command line. Here's my script: suppressMessages(library("statnet")) #Simple example using a 3-node…
Nathan
  • 194
  • 1
  • 17
1
vote
1 answer

importing network in Statnet in R

I am new to STATNET and know nothing about it. I have a data set which has 3 columns. The first and second column contain nodes whereas the third contains edge value. How should I import this to STATNET? I suspect I need to convert this dataset to a…
duckman
  • 687
  • 1
  • 15
  • 30
1
vote
2 answers

Can't get edge weights to count in temporal network centrality scores

A subset of my data for a temporal network are as below: edge <- data.frame(onset = c(1968, 1968, 2007), terminus = c(1968, 1968, 2007), id_from = c(1, 1, 2), id_to = c(3, 2, 4), weight =…
1984
  • 41
  • 3
1
vote
1 answer

Create graph (network analysis R)?

I'm quite new to R and having trouble with the following: I'm researching politicians in Belgium on Twitter, and would like to see if any networks form within political parties on Twitter. I have two data files The matrix file that contains…
1
vote
0 answers

Resuming an uncoverged ergm run with ergm package in R

I am using the ergm package in R to explore exponential random graph models for network data. Here's the network: gn Network attributes: vertices = 678 directed = TRUE hyper = FALSE loops = FALSE multiple = FALSE bipartite = FALSE…
Joshua Rosenberg
  • 4,014
  • 9
  • 34
  • 73
1
vote
1 answer

Adding edge attribute to network object with statnet in R

I'm trying to add an edge attribute to a network object with statnet in R using the function add.edge.attribute(). Here is the network object: > g Network attributes: vertices = 866 directed = TRUE hyper = FALSE loops = FALSE multiple…
Joshua Rosenberg
  • 4,014
  • 9
  • 34
  • 73
1
vote
1 answer

How can I determine robust slice parameters for dynamic network renderings in R using ndtv?

I strive to produce a visual dynamic animation of timestamped transactions, where each transaction represents a contribution of a person to an artifact/file. To this end, I am using the R packages networkDynamic, network and ndtv. The transactions…
Mischa
  • 623
  • 5
  • 17
1
vote
1 answer

How upload a dataframe to ndtv in R?

My goal is to make a dynamic visualization using three packages in R: ndtv, network, and networkDynamic packages. I have created a dataset with the information ordered according to this example dataset in a workshop for Network Dynamic Temporal…
oymonk
  • 427
  • 9
  • 27
1
vote
1 answer

fail to read paj file as Network object using R 'network' package

I have bunch of pajek networks in file format .net, but it can not be imported using read.paj from network package any more. It was working under windows. Can someone give a hand? read.paj(file.path) return only NULL The Output under debug=True in…
Hello lad
  • 17,344
  • 46
  • 127
  • 200
0
votes
0 answers

Statnet: How to avoid the layout of my dynamic network from moving?

I created a dynamic network using networkDynamic based on two files that contain the information for vertexes(nodes) and edges. When I animate the network using compute.animation and render.d3movie, the layout of the resulting network animation…
basti
  • 1
  • 2
0
votes
1 answer

Can TERGM be used to fit bunch of networks files from 1.net to n.net?

Can TERGM be used to fit bunch of networks files from 1.net to n.net? With each file, the number of nodes and vertices increases. I have For example, when we fit a particular network (suppose 6.net), we run the following after preprocessing the…
Su1
  • 1
  • 1
0
votes
1 answer

Unconstrained MCMC sampling did not mix at all

My code is gw1_help <- ergm.tapered( supnet ~ edges + nodefactor("work") + nodefactor("income") + nodefactor("edu") + nodefactor("religious") + nodefactor("gender") + nodecov("age") + edgecov(sup_loca2_net,"distance") +…
cccbc
  • 13
  • 3
0
votes
0 answers

ERGM model MCMLE stuck

My code looked like gw1_sup <- ergm(supnet ~ edges + nodefactor("work") + nodefactor("income") + nodefactor("edu") + nodefactor("religious") + nodefactor("gender") + nodecov("age") + edgecov(sup_loca2_net, "distance") + edgecov(kin_sup,"kinweight")…
cccbc
  • 13
  • 3
0
votes
0 answers

Statnet collapsed while modeling ergm in r

i was using statnet to fit ergm model in r, and my code is gw1_sup <- ergm(supnet ~ edges + nodefactor("work") + nodefactor("religious") + nodefactor("gender") + nodecov("age") + edgecov(kin_sup,"kinweight") + gwidegree(.1, T) + gwesp(.1, T) +…
cccbc
  • 13
  • 3
0
votes
1 answer

setting seed number for ergm in statnet R

I want to set the seed number in ergm, so that my network analysis is reproducible, but when I run main_sup <- ergm(supnet ~ edges + nodefactor("work") + nodefactor("income") + nodefactor("edu") + …
cccbc
  • 13
  • 3