Package: dmrfit Date: 2026-10-07 Type: Package Title: Scalable Bayesian Inference for Discrete Markov Random Fields Version: 0.1.0 Authors@R: c(person(given = "Giuseppe", family = "Arena", role = c("aut", "cre"), email = "g.arena@uva.nl", comment = c(ORCID = "0000-0001-5204-3326"))) Description: Estimation of discrete Markov random fields through the pseudo-likelihood, for both Ising models (Ising (1925) ) and ordinal Markov random fields (Marsman et al. (2025) ). 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) ), which matches its covariance to the GHW covariance, and samples from it with the Fisher adaptive Metropolis-adjusted Langevin algorithm (Titsias (2024) ). 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) ). Savage-Dickey Bayes factors test each pairwise interaction, computed either by sampling importance resampling (Skare et al. (2003) ) or from the posterior draws. License: MIT + file LICENSE Copyright: The dataset 'rads2' is licensed under CC BY 4.0; see file COPYRIGHTS. URL: https://jupepis.github.io/dmrfit/, https://github.com/jupepis/dmrfit BugReports: https://github.com/jupepis/dmrfit/issues Depends: R (>= 4.0.0) Imports: ggplot2, grDevices, graphics, parallel, Rcpp (>= 1.1.0), stats Suggests: igraph, knitr, rmarkdown, tinytest VignetteBuilder: knitr LinkingTo: Rcpp, RcppArmadillo, RcppProgress Encoding: UTF-8 LazyData: true RoxygenNote: 7.3.3 NeedsCompilation: yes Packaged: 2026-10-18 18:24:37 UTC; root Author: Giuseppe Arena [aut, cre] (ORCID: ) Maintainer: Giuseppe Arena Repository: https://cran.r-universe.dev Date/Publication: 2026-10-18 18:12:55 UTC RemoteUrl: https://github.com/cran/dmrfit RemoteRef: HEAD RemoteSha: c157c813656f8d89e4c7a5e43791b797da538311