Package: Bergm.ws 0.1.0

Bergm.ws: Bayesian Multi-Layer ERGMs for Weighted and Signed Weighted Networks

Bayesian hierarchical multi-layer dissolution exponential random graph models for weighted and signed weighted networks. A weighted network is decomposed into nested binary layers by thresholding its edge weights, and each transition between consecutive layers is modelled conditionally on the observed lower layers: on the layers alone with bergm_w(), or jointly with the edge signs with bergm_ws(). Layer-specific parameters are partially pooled through a Normal-inverse-Wishart hierarchical prior and estimated with an adaptive approximate exchange algorithm: joint or layer-wise updates, delayed acceptance with a Gaussian approximation of the likelihood, the hierarchical mean integrated out of the exchange step, and a proposal covariance initialised from the Fisher information, learned during the burn-in and pooled across chains. The package also provides a model builder that checks that every statistic is computed on its own layer, prior and posterior predictive checks with goodness-of-fit statistics not used in the model, convergence diagnostics and a check of the length of the auxiliary chains.

Authors:Alberto Caimo [aut, cre], Isabella Gollini [aut]

Bergm.ws_0.1.0.tar.gz
Bergm.ws_0.1.0.zip(r-4.7-any)Bergm.ws_0.1.0.zip(r-4.6-any)Bergm.ws_0.1.0.zip(r-4.5-any)
Bergm.ws_0.1.0.tgz(r-4.6-any)Bergm.ws_0.1.0.tgz(r-4.5-any)
Bergm.ws_0.1.0.tar.gz(r-4.7-any)Bergm.ws_0.1.0.tar.gz(r-4.6-any)
Bergm.ws_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
Bergm.ws/json (API)

# Install 'Bergm.ws' in R:
install.packages('Bergm.ws', repos = c('https://acaimo.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/acaimo/bergm.ws/issues

Datasets:
  • toy_ws - A small simulated signed weighted network

On CRAN:

Conda:

3.30 score 6 scripts 8 exports 42 dependencies

Last updated from:1df7f02634. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK156
source / vignettesOK199
linux-releaseOK160
macos-releaseOK136
macos-oldrelOK157
windows-develOK119
windows-releaseOK103
windows-oldrelOK117
wasm-releaseOK147

Exports:bergm_wbergm_wsws_aux_checkws_dataws_modelws_predictivews_priorws_simulate

Dependencies:cachemclicodaDEoptimRdplyrergmergm.multievaluatefastmapgenericsgluehighrknitrlatticelifecyclelpSolveAPImagrittrMASSMatrixmemoisenetworknetworkLitepillarpkgconfigpurrrR6rbibutilsRdpackrlangrlerobustbasestatnet.commonstringistringrtibbletidyselecttrustutf8vctrswithrxfunyaml