BayesPostEst
Generate Postestimation Quantities for Bayesian MCMC Estimation
Description
An implementation of functions to generate and plot postestimation quantities after estimating Bayesian regression models using Markov chain Monte Carlo (MCMC). Functionality includes the estimation of the Precision-Recall curves (see Beger, 2016 <doi:10.2139/ssrn.2765419>), the implementation of the observed values method of calculating predicted probabilities by Hanmer and Kalkan (2013) <doi:10.1111/j.1540-5907.2012.00602.x>, the implementation of the average value method of calculating predicted probabilities (see King, Tomz, and Wittenberg, 2000 <doi:10.2307/2669316>), and the generation and plotting of first differences to summarize typical effects across covariates (see Long 1997, ISBN:9780803973749; King, Tomz, and Wittenberg, 2000 <doi:10.2307/2669316>). This package can be used with MCMC output generated by any Bayesian estimation tool including 'JAGS', 'BUGS', 'MCMCpack', and 'Stan'.
Downloads
331
Last 30 days
9737th
1K
Last 90 days
4.9K
Last year
Trend: +4.1% (30d vs prior 30d)
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | NOTE |
| r-devel-linux-x86_64-fedora-gcc | NOTE |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check details (2 non-OK)
dependencies in R code
Namespaces in Imports field not imported from: ‘HDInterval’ ‘carData’ ‘rjags’ All declared Imports should be used.
dependencies in R code
Namespaces in Imports field not imported from: ‘HDInterval’ ‘carData’ ‘rjags’ All declared Imports should be used.
Check History
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
dependencies in R code
Namespaces in Imports field not imported from: ‘HDInterval’ ‘carData’ ‘rjags’ All declared Imports should be used.
dependencies in R code
Namespaces in Imports field not imported from: ‘HDInterval’ ‘carData’ ‘rjags’ All declared Imports should be used.
ERROR 11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
dependencies in R code
Namespaces in Imports field not imported from: ‘HDInterval’ ‘carData’ ‘rjags’ All declared Imports should be used.
dependencies in R code
Namespaces in Imports field not imported from: ‘HDInterval’ ‘carData’ ‘rjags’ All declared Imports should be used.
tests
Running 'testthat.R' [66s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(BayesPostEst)
>
> test_check("BayesPostEst")
Loading required package: rjags
Loading required package: coda
Linke
...[truncated]...
= "output")
36. └─base::.handleSimpleError(`<fn>`, "invalid connection", base::quote(sink(type = "output")))
37. └─testthat (local) h(simpleError(msg, call))
38. └─cli::cli_abort(...)
39. └─rlang::abort(...)
Execution halted
NOTE 12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
dependencies in R code
Namespaces in Imports field not imported from: ‘HDInterval’ ‘carData’ ‘rjags’ All declared Imports should be used.
dependencies in R code
Namespaces in Imports field not imported from: ‘HDInterval’ ‘carData’ ‘rjags’ All declared Imports should be used.