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:
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.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://cran.r-universe.dev', 'https://cloud.r-project.org')) |
- toy_ws - A small simulated signed weighted network
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated from:bb4c5deb96. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 149 | ||
| source / vignettes | OK | 182 | ||
| linux-release | OK | 149 | ||
| windows-devel | OK | 94 | ||
| windows-release | OK | 110 | ||
| wasm-release | OK | 110 |
Exports:bergm_wbergm_wsws_aux_checkws_dataws_modelws_predictivews_priorws_simulate
Dependencies:cachemclicodaDEoptimRdplyrergmergm.multievaluatefastmapgenericsgluehighrknitrlatticelifecyclelpSolveAPImagrittrMASSMatrixmemoisenetworknetworkLitepillarpkgconfigpurrrR6rbibutilsRdpackrlangrlerobustbasestatnet.commonstringistringrtibbletidyselecttrustutf8vctrswithrxfunyaml
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Bayesian multi-layer dissolution ERGMs for weighted and signed weighted networks | Bergm.ws-package Bergm.ws |
| Bayesian multi-layer dissolution ERGMs for weighted and signed weighted networks | bergm_w bergm_ws |
| Posterior summaries and convergence diagnostics | as.mcmc.list.bergm_w coef.bergm_w print.bergm_w print.summary.bergm_w summary.bergm_w |
| A small simulated signed weighted network | toy_ws |
| Are the auxiliary chains long enough? | print.ws_aux_check ws_aux_check |
| Nested layers from edge weights, with optional signs | print.ws_data ws_data |
| Specify a multi-layer dissolution ERGM with an ergm.multi formula | print.ws_model ws_model |
| Prior and posterior predictive checks | print.ws_predictive ws_predictive |
| Hierarchical prior for the layer-specific parameters | print.ws_prior ws_prior |
| Simulate a small weighted network, signed or not | ws_simulate |
