The bamr package facilitates Bayesian AMHG + Manning discharge estimation using stream slope, width, and partial cross-section area. It includes functions to preprocess and visualize data, perform Bayesian inference using Hamiltonian Monte Carlo (via models pre-written in the Stan language), and analyze the results.
bamr can be installed from github as follows:
# First get devtools package
if (!require("devtools")) {
install.packages("devtools")
library("devtools")
}
# Then install from github
install_github("markwh/bamr", local = FALSE)
The best way to get started is to follow the examples in the included vignettes, now located at the bamr website
Also check out the companion swotr package.