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
370
Last 30 days
10790th
1K
Last 90 days
5K
Last year
Trend: +6.3% (30d vs prior 30d)
12
Last 30 days
29
Last 90 days
127
Last year
Trend: -25% (30d vs prior 30d)
10
Last 7 days
57
Last 30 days
5
All-time
autoCRAN-only: this name is served only by autoCRAN, so the count is exact.
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 11 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 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 10 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
tests
Running ‘testthat.R’ [2s/3s]
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
Lin
...[truncated]...
::eval(ei, envir)
19. ├─base::library("brms")
20. │ └─base::stop(packageNotFoundError(package, lib.loc, sys.call()))
21. └─testthat (local) `<fn>`(`<pckgNtFE>`)
22. └─cli::cli_abort(...)
23. └─rlang::abort(...)
Execution halted
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.
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.