Package: dmrfit 0.1.1
dmrfit: Scalable Bayesian Inference for Discrete Markov Random Fields
Estimation of discrete Markov random fields through the pseudo-likelihood, for both Ising models (Ising (1925) <doi:10.1007/BF02980577>) and ordinal Markov random fields (Marsman et al. (2025) <doi:10.1017/psy.2024.4>). Point estimates, either maximum pseudo-likelihood or maximum a posteriori, are obtained through a trust region optimization algorithm, with robust standard errors from the Godambe-Huber-White (GHW, or sandwich) estimator, for both full and constrained network structures. Bayesian inference corrects the pseudo-posterior through coordinate rescaling (Arena and Marsman (2026) <doi:10.48550/arXiv.2601.17205>), which matches its covariance to the GHW covariance, and samples from it with the Fisher adaptive Metropolis-adjusted Langevin algorithm (Titsias (2024) <doi:10.48550/arXiv.2305.14442>). For comparison, the posterior based on the full likelihood can also be sampled, exactly for small networks or with the double Metropolis-Hastings algorithm (Liang (2010) <doi:10.1080/00949650902882162>). Savage-Dickey Bayes factors test each pairwise interaction, computed either by sampling importance resampling (Skare et al. (2003) <doi:10.1111/1467-9469.00360>) or from the posterior draws.
Authors:
dmrfit_0.1.1.tar.gz
dmrfit_0.1.1.zip(r-4.7-x86_64)dmrfit_0.1.1.zip(r-4.7-arm64)dmrfit_0.1.1.zip(r-4.6-x86_64)dmrfit_0.1.1.zip(r-4.6-arm64)dmrfit_0.1.1.zip(r-4.5-x86_64)
dmrfit_0.1.1.tgz(r-4.6-x86_64)dmrfit_0.1.1.tgz(r-4.6-arm64)dmrfit_0.1.1.tgz(r-4.5-x86_64)dmrfit_0.1.1.tgz(r-4.5-arm64)
dmrfit_0.1.1.tar.gz(r-4.7-arm64)dmrfit_0.1.1.tar.gz(r-4.7-x86_64)dmrfit_0.1.1.tar.gz(r-4.6-arm64)dmrfit_0.1.1.tar.gz(r-4.6-x86_64)
dmrfit_0.1.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
dmrfit/json (API)
| # Install 'dmrfit' in R: |
| install.packages('dmrfit', repos = c('https://jupepis.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/jupepis/dmrfit/issues
Pkgdown/docs site:https://jupepis.github.io
- rads2 - Reynolds Adolescent Depression Scale (RADS-2) responses of Peruvian adolescents
Last updated from:5b105d4b66. Checks:15 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | OK | 156 | ||
| linux-devel-x86_64 | OK | 220 | ||
| source / vignettes | OK | 410 | ||
| linux-release-arm64 | OK | 158 | ||
| linux-release-x86_64 | OK | 181 | ||
| macos-release-arm64 | OK | 266 | ||
| macos-release-x86_64 | OK | 519 | ||
| macos-oldrel-arm64 | OK | 187 | ||
| macos-oldrel-x86_64 | OK | 642 | ||
| windows-devel-arm64 | OK | 394 | ||
| windows-devel-x86_64 | OK | 227 | ||
| windows-release-arm64 | OK | 427 | ||
| windows-release-x86_64 | OK | 200 | ||
| windows-oldrel-x86_64 | OK | 211 | ||
| wasm-release | OK | 134 |
Exports:dmrfitdmrfit_bayes
Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecycleR6RColorBrewerRcppRcppArmadilloRcppProgressrlangS7scalesvctrsviridisLitewithr
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Confidence and credible intervals of a fitted discrete Markov random field | confint.dmrfit |
| Point estimation and Bayes factors for discrete Markov random fields | dmrfit |
| Posterior sampling for discrete Markov random fields | dmrfit_bayes |
| Plot a fitted discrete Markov random field | plot.dmrfit |
| Print a 'dmrfit' object | print.dmrfit |
| Print a 'dmrfit_bayes' object | print.dmrfit_bayes |
| Print a 'summary.dmrfit' object | print.summary.dmrfit |
| Print a 'summary.dmrfit_bayes' object | print.summary.dmrfit_bayes |
| Reynolds Adolescent Depression Scale (RADS-2) responses of Peruvian adolescents | rads2 |
| Summary of a 'dmrfit' object | summary.dmrfit |
| Summary of a 'dmrfit_bayes' object | summary.dmrfit_bayes |
