metrumresearchgroup / bbr.bayes

Bayesian modeling with BBR
https://metrumresearchgroup.github.io/bbr.bayes/
Other
5 stars 1 forks source link

bbr.bayes

Build Status

bbr.bayes is an extension to the bbr package for Bayesian modeling. The package is in the early stages of development. Initial support has been added for Stan models (powered by cmdstanr) and for NONMEM Bayes models.

Installation

You can install the latest release of bbr.bayes from MPN.

To install the latest development version from GitHub, you can use remotes:

# install.packages("remotes")
remotes::install_github("metrumresearchgroup/bbr.bayes")

Note that a few bbr.bayes dependencies are not on CRAN but are available from other CRAN-like repos:

Documentation

Documentation, including a "Getting Started with bbr.bayes and Stan" and "Getting Started with bbr.bayes and NONMEM Bayes" vignettes, is available at https://metrumresearchgroup.github.io/bbr.bayes/.

Cheat Sheets

Development

bbr.bayes uses pkgr to manage development dependencies and renv to provide isolation. To set up an environment with pkgr and renv:

  1. clone the repo
  2. install pkgr, if not already installed
  3. open package in an R session and run renv::init(bare = TRUE)
  4. run pkgr install in terminal within package directory
  5. restart session