This is the code R to implement the method described in:
Wilson, A., Tryner, J., L'Orange, C., & Volckens, J. (2020). Bayesian nonparametric monotone regression. Environmetrics, 31(8), e2642. (DOI: 10.1093/biostatistics/kxx002, arXiv preprint)
You can install the development version of bnmr from GitHub with:
# install.packages("devtools")
devtools::install_github("AnderWilson/bnmr")For an example see the bnmr documentation using
library(bnmr)
?bnmr