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

the onset time column of the edge.spells argument to networkDynamic must be numeric

I am trying to create a networkDynamic object and have tried following all of skyebend's suggestions in oymonk's post how upload a dataframe to ndtv in R in setting up the columns in the right order and the data types for each column here…
Rory
  • 95
  • 1
  • 5
0
votes
1 answer

Create graph with no edges from node list with attributes in the network package in r

Is it possible to construct a graph in network that only contains nodes but not edges from a data frame? The data structure looks as follows: library(statnet) ID <- as.character(rep(1:10, each = 1, times = 1)) class <- rep(c("class1","class2"), each…
PCK1992
  • 213
  • 1
  • 14
0
votes
0 answers

create a network without matrix in r or python

I have a large dataset that contains 30000 data (as a csv file). The data is like this: dataset <- data.frame(person = c(1331688384,910725927,1479941022,1606882065,1877559309), dahak = c(9,1,4,3,2)) personid, dahak 1331688384, 9 910725927,…
omid jahadi
  • 151
  • 1
  • 12
0
votes
1 answer

How to assign vertex attributes to only one mode in a bipartite network in statnet?

I am currently working with a bipartite network with two distinct modes and two distinct sets of attributes. So row 1 through 5 is a mode and actors A, B and C are a different mode who form some connection marked by a 1. a<-replicate( 3,…
learningr
  • 1
  • 1
0
votes
1 answer

In-Degree Bonacich Power Centrality in R?

Thank you for your time in advance. I am attempting to identify a method to calculate in-degree Bonacich Power Centrality in R. I'm a long-time UCINET user attempting to make the switch. In UCINET, this is done selecting Beta Centrality (Bonacich…
0
votes
1 answer

Cannot Install statnet Package in R Studio

I got the following warning and error messages while I was trying to install the statnet package: > installing *source* package 'statnet' ... > > package 'statnet' successfully unpacked and MD5 sums checked > > R > > inst > > byte-compile and…
KHW
  • 3
  • 3
0
votes
2 answers

Controlling dynamic vertex attributes using networkDynamic and/or ndtv

I am looking at how government agencies change over time. The plan is to use the ndtv package to visualise changes. I have an nodelist that lists vertex ids, agency name, node onset and node terminus: nodelist <-…
aterhorst
  • 625
  • 4
  • 14
0
votes
1 answer

Formatting onset terminus data for dynamic network visualisation

I am looking at how government agencies change over time. The plan is to use the ndtv package to visualise changes. However, I am running into problems and have no idea what I am doing wrong! I suspect my data is not formatted correctly. I have an…
aterhorst
  • 625
  • 4
  • 14
0
votes
1 answer

Can't Load statnet in R on Windows 10

I have run install.packages('statnet') library('statnet') Result: Loading required package: tergm Loading required package: ergm Error: package or namespace load failed for ‘ergm’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck =…
Wassadamo
  • 1,176
  • 12
  • 32
0
votes
1 answer

How to set an edge attribute for a network using statnet in R?

I'm preparing some network data to run ERGMs in R using the statnet library. I want to assign an attribute to the edges that I will use when I run the ERGM. The matrix include numbers between 0 and 1 for each tie in the network. I'm getting an error…
JLou
  • 41
  • 5
0
votes
1 answer

How to ensure that row names and column names are in the same order for QAP analysis

I am working with network adjacency matrices in R for a QAP regression. Currently, the matrices look like this (ignore 0s and 1s): How can I make the column/row labels appear in the same order between time 1 and 2? I have sorted the initial…
Holly L
  • 23
  • 1
  • 4
0
votes
1 answer

read undirected graph csv file in R with library statnet

I have a csv file which has 2 columns, the first and second column contain nodes, each row means the nodes of an edge of an undirected graph. I am new to R, and this is my code: library(statnet) dat <-…
Jun.W
  • 1
  • 1
0
votes
1 answer

Identifying and summarizing discrete groups of nodes in R

I am working on a networking problem related to family/household composition. I have multiple edge tables containing id1, id2 and a relationship code to state the type of relationship between the identity variables. These tables are large, upwards…
williamg15
  • 77
  • 7
0
votes
1 answer

R: network analysis - manipulating adjacency matrix to obtain a "common links" matrix

I am doing some network analysis using the igraph R package. I have to manipulate a directed, weighted adjacency matrix (extracted from an igraph object with the function _as_adjacency_matrix(...)_, in order to obtain a different matrix that takes…
0
votes
1 answer

Setting up a statnet model in R

I would like to simulate exponential family random graphs, and I just started learning to use the statnet and ergm R packages. From the tutorial I found online, I am able to learn an ERGM model from an example dataset: #…
p-value
  • 608
  • 8
  • 22