tabulergm
tabulergm is an R package designed to translate models estimated with the ergm framework into publication-ready tables and explanatory summaries.
Installation
# Install from GitHub
# install.packages("remotes")
remotes::install_github("gvegayon/tabulergm")Example
Here is a simple example fitting an ERGM to the Florentine marriage network and generating a summary table:
library(ergm)
library(tabulergm)
# Fit a simple ERGM
data(florentine)
model <- ergm(flomarriage ~ edges + triangle)
# Parse the model
parse_ergm_model(model)
#> term coef_name attribute estimate se pvalue
#> 1 edges edges <NA> -1.655726 0.3404677 1.155649e-06
#> 2 triangle triangle <NA> 0.147993 0.5568772 7.904278e-01
#> description math figure
#> 1 Number of edges in the network <NA> <NA>
#> 2 Triangles <NA> <NA>