Package: ergm.multi 0.2.1.1

Pavel N. Krivitsky

ergm.multi: Fit, Simulate and Diagnose Exponential-Family Models for Multiple or Multilayer Networks

A set of extensions for the 'ergm' package to fit multilayer/multiplex/multirelational networks and samples of multiple networks. 'ergm.multi' is a part of the Statnet suite of packages for network analysis. See Krivitsky, Koehly, and Marcum (2020) <doi:10.1007/s11336-020-09720-7> and Krivitsky, Coletti, and Hens (2023) <doi:10.1080/01621459.2023.2242627>.

Authors:Pavel N. Krivitsky [aut, cre], Mark S. Handcock [ctb], David R. Hunter [ctb], Chad Klumb [ctb], Pietro Coletti [ctb], Joyce Cheng [ctb]

ergm.multi_0.2.1.1.tar.gz
ergm.multi_0.2.1.1.tar.gz(r-4.5-noble)ergm.multi_0.2.1.1.tar.gz(r-4.4-noble)
ergm.multi_0.2.1.1.tgz(r-4.4-emscripten)ergm.multi_0.2.1.1.tgz(r-4.3-emscripten)
ergm.multi.pdf |ergm.multi.html
ergm.multi/json (API)
NEWS

# Install 'ergm.multi' in R:
install.packages('ergm.multi', repos = 'https://cloud.r-project.org')

Bug tracker:https://github.com/statnet/ergm.multi/issues9 issues

Datasets:
  • Goeyvaerts - A sample of within-household contact networks in Flanders and Brussels
  • Lazega - A network of advice, collaboration, and friendship in a law firm

On CRAN:

Conda:r-ergm.multi-0.2.1.1(2025-03-25)

4.74 score 5 packages 3.6k downloads 19 mentions 15 exports 35 dependencies

Last updated 5 months agofrom:1bb396ce9e. Checks:2 OK, 1 NOTE. Indexed: no.

TargetResultLatest binary
Doc / VignettesOKMar 06 2025
R-4.5-linux-x86_64NOTEMar 06 2025
R-4.4-linux-x86_64OKMar 06 2025

Exports:combine_ergmlhscombine_networkscontrol.gofNcontrol.gofN.ergmergm_block_diag_samp_infoergm_LayerLogicgofNLayerlm.gofNmarg_cond_simnetwork_viewNetworkssnctrlsubnetwork_templatesuncombine_network

Dependencies:cachemclicodaDEoptimRergmevaluatefansifastmapgluehighrknitrlatticelifecyclelpSolveAPImagrittrMatrixmemoisenetworkpillarpkgconfigpurrrrbibutilsRdpackrlangrlerobustbasestatnet.commonstringistringrtibbletrustutf8vctrsxfunyaml

Reproducing Goeyvaerts et al. (2018) using ergm.multi

Rendered fromGoeyvaerts_reproduction.Rmdusingknitr::rmarkdownon Mar 06 2025.

Last update: 2023-05-30
Started: 2022-07-03

Citation

‘ergm.multi’ is part of the Statnet suite of packages. If you are using the ‘ergm.multi’ package for research that will be published, we request that you acknowledge this by citing the following. For BibTeX format, use toBibtex(citation("ergm.multi")).

Krivitsky PN (2024). ergm.multi: Fit, Simulate and Diagnose Exponential-Family Models for Multiple or Multilayer Networks. The Statnet Project (https://statnet.org). R package version 0.2.1, https://CRAN.R-project.org/package=ergm.multi.

We have invested a lot of time and effort in creating the Statnet suite of packages for use by other researchers. Please cite it in all papers where it is used. The package ‘ergm.multi’ is distributed under the terms of the license GPL-3 + file LICENSE.

Corresponding BibTeX entry:

  @Manual{,
    author = {Pavel N. Krivitsky},
    title = {ergm.multi: Fit, Simulate and Diagnose Exponential-Family
      Models for Multiple or Multilayer Networks},
    organization = {The Statnet Project (\url{https://statnet.org})},
    year = {2024},
    note = {R package version 0.2.1},
    url = {https://CRAN.R-project.org/package=ergm.multi},
  }

Readme and manuals

Help Manual

Help pageTopics
ergm.multi: Fit, Simulate and Diagnose Exponential-Family Models for Multiple or Multilayer Networksergm.multi-package ergm.multi
An 'as_tibble' method for combined networks.as_tibble.combined_networks
Degree for the first mode in a bipartite (aka two-mode) networkb1degreeL-ergmTerm InitErgmTerm.b1degreeL
Degree for the second mode in a bipartite (aka two-mode) networkb2degree-ergmTerm InitErgmTerm.b2degreeL
Conway-Maxwell-Binomial dependence among layersCMBL-ergmTerm InitErgmTerm.CMBL
A single block-diagonal network created by combining multiple networkscombined_networks combine_networks print.combined_networks print.summary.combined_networks summary.combined_networks
Auxiliary for Controlling Multinetwork ERGM Linear Goodness-of-Fit Evaluationcontrol.gofN control.gofN.ergm
Dyadwise shared partners on layersddspL-ergmTerm dspL-ergmTerm InitErgmTerm.ddspL InitErgmTerm.dspL
DegreedegreeL-ergmTerm InitErgmTerm.degreeL
Edgewise shared partners on layersdespL-ergmTerm espL-ergmTerm InitErgmTerm.despL InitErgmTerm.espL
Geometrically weighted dyadwise shared partner distribution on layersdgwdspL-ergmTerm gwdspL-ergmTerm InitErgmTerm.dgwdspL InitErgmTerm.gwdspL
Geometrically weighted edgewise shared partner distribution on layersdgwespL-ergmTerm gwespL-ergmTerm InitErgmTerm.dgwespL InitErgmTerm.gwespL
Geometrically weighted non-edgewise shared partner distribution on layersdgwnspL-ergmTerm gwnspL-ergmTerm InitErgmTerm.dgwnspL InitErgmTerm.gwnspL
Returns a directed version of an undirected binary networkdirect.network
Non-edgewise shared partners and paths on layersdnspL-ergmTerm InitErgmTerm.dnspL InitErgmTerm.nspL nspL-ergmTerm
A sample of within-household contact networks in Flanders and BrusselsGoeyvaerts
Linear model diagnostics for multinetwork linear modelsaugment.gofN gofN summary.gofN [.gofN
Geometrically weighted degree distribution for the first mode in a bipartite (aka two-mode) networkgwb1degreeL-ergmTerm InitErgmTerm.gwb1degreeL
Geometrically weighted degree distribution for the second mode in a bipartite (aka two-mode) networkgwb2degreeL-ergmTerm InitErgmTerm.gwb2degreeL
Geometrically weighted degree distributiongwdegreeL-ergmTerm InitErgmTerm.gwdegreeL
Geometrically weighted in-degree distributiongwidegreeL-ergmTerm InitErgmTerm.gwidegreeL
Geometrically weighted out-degree distributiongwodegreeL-ergmTerm InitErgmTerm.gwodegreeL
In-degreeidegreeL-ergmTerm InitErgmTerm.idegreeL
Evaluation on layersInitErgmTerm.L L-ergmTerm
A multilayer network representation.Layer
A network of advice, collaboration, and friendship in a law firmLazega
Fit a linear model to the residuals in a gofN object.lm.gofN
Calculate gofN()-style Pearson residuals for arbitrary statisticsmarg_cond_sim
MutualityInitErgmTerm.mutualL mutualL-ergmTerm
Evaluation on multiple networksInitErgmTerm.N InitWtErgmTerm.N N-ergmTerm
Construct a "view" of a network.network_view
A multinetwork network representation.Networks
Out-degreeInitErgmTerm.odegreeL odegreeL-ergmTerm
Plotting methods for 'gofN', making residual and scale-location plots.autoplot.gofN plot.gofN
Statnet Controlsnctrl
A 'split()' method for 'network::network' objects.split.network
Multilayer two-starInitErgmTerm.twostarL twostarL-ergmTerm
Split up a network into a list of subgraphsuncombine_network
Only dyads in the upper-triangle of the sociomatrix may be toggledInitErgmConstraint.upper_tri upper_tri-ergmConstraint