Helper Functions for Bayesian Analyses
Overview
Functions to 'numericise' 'R' objects (coerce to numeric objects), summarise 'MCMC' (Monte Carlo Markov Chain) samples and calculate deviance residuals as well as 'R' translations of some 'BUGS' (Bayesian Using Gibbs Sampling), 'JAGS' (Just Another Gibbs Sampler), 'STAN' and 'TMB' (Template Model Builder) functions.
- Add
probability_direction()anddirectional_information()(#106). - Add functions to calculate s-values and information from vectors of probabilities:
p2svalue()andp2info()(#122). - Add functions to calculate the Region of Practical Equivalence (ROPE) and credible intervals:
xtr_ci(),xtr_ci_eti(),xtr_ci_hdi(),xtr_rope()(#110). - Add skew-lognormal distribution family (
dskewlnorm(),pskewlnorm(),qskewlnorm(),rskewlnorm(),ran_skewlnorm(),sens_skewlnorm(),quant_skewlnorm(),dev_skewlnorm(),res_skewlnorm(),log_lik_skewlnorm(),prob_skewlnorm()) (#127). - Add
skepticalargument topvalue(),svalue(), anddirectional_information(), defaulting toTRUE(#133). - Advance deprecation of
as_list_unnamed(),pextreme(), andsextreme()from soft-deprecated to warnings (#140).
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-17
- NOTE11 OK, 2 NOTE2026-07-16
- OK14 OK2026-03-10
Documentation
- Help pages
- 170 (2 internal)includes a package overview page
- Examples that run
- 100%168 run in a plain check (18 of them under a condition)
- Exported functions with examples
- 99%
- Documented parameters
- 100%
- Return-value docs
- 99%
- Help pages citing references
- 2%
Downloads
Repository
- PRs merged (all time)
- 91%
- Median days to close, 50 most recently updated closed issues
- 18
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
15 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/poissonconsulting/extras on 2026-10-18.
GitHub Pages site last deployed 2026-10-02
pkgdown site last built 2026-08-05
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-04-27Named in .Rbuildignore: .claudeNamed in .gitignore: CLAUDE.mdPull request it wrote: opened by a project memberCommits: at least 35 crediting it in the message
- Claude Sonnet 4.620 commits · Jun to Jul 2026
- Claude Opus 56 commits · Aug to Sep 2026
- Claude Opus 4.84 commits · Jun 2026
- Claude Fable 53 commits · Jul 2026
- Claude Fable 5.11 commit · Sep 2026
1 more model not listed.
Dependencies
Installing extras adds 4 packages (2 with compiled code, 2.1 MB of source tarballs). Heaviest: rlang 766 KB, chk 687 KB, cli 629 KB.
Code & Tests
People & History
Previously maintained by Joe Thorley (0.0.1 to 0.6.1).
Pick two releases to compare their code metrics.
- 0.10.0Latest2026-07-15 · current release · diff ↗ ·
added 54 exports
dev_skewlnorm, direction, directional_information, dskewlnorm, log_lik_beta, log_lik_exp, log_lik_skewlnorm, log_lik_unif, p2info, p2svalue, prob_bern, prob_beta, prob_beta_binom, prob_binom, prob_exp, prob_gamma, prob_gamma_pois, prob_gamma_pois_zi, prob_lnorm, prob_neg_binom, prob_norm, prob_pois, prob_pois_zi, prob_skewlnorm, prob_skewnorm, prob_student, prob_unif, probability_direction, pskewlnorm, qskewlnorm and 24 more - RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.8.02025-01-13 · diff ↗
- 0.7.3
- 0.7.22024-08-22 · diff ↗ ·
added 25 exports
log10<-, log2<-, dev_skewnorm, dskewnorm, exp10, exp2, ilog10, ilog2, log_lik_skewnorm, pskewnorm, qskewnorm, ran_skewnorm, res_skewnorm, rskewnorm, sens_beta, sens_exp, sens_gamma, sens_gamma_pois, sens_gamma_pois_zi, sens_lnorm, sens_neg_binom, sens_norm, sens_pois, sens_skewnorm, sens_student - RR 4.4.0 released · 2024-04-24
- 0.6.12023-05-10 · diff ↗
- 0.6.02023-04-28 · diff ↗ ·
added 14 exports
dev_beta_binom, dev_gamma, dev_student, log_lik_beta_binom, log_lik_gamma, log_lik_student, pbern, qbern, ran_beta_binom, ran_student, rbern, res_beta_binom, res_gamma, res_student - RR 4.3.0 released · 2023-04-21
- 0.5.02022-10-30 · diff ↗ ·
added 4 exports
dev_gamma_pois_zi, log_lik_gamma_pois_zi, ran_gamma_pois_zi, res_gamma_pois_zi - 0.4.0
- 0.3.02022-06-08 · diff ↗ ·
added 16 exports
odds<-, dev_pois_zi, ilog, inv_logit, inv_odds, log_lik_pois_zi, log_odds_ratio2, odds_ratio2, proportional_change, proportional_change2, proportional_difference, proportional_difference2, pzeros, ran_pois_zi, res_pois_zi, step - RR 4.2.0 released · 2022-04-22
- 0.2.02021-08-05 · diff ↗ ·
added 42 exports
as_list, dev_bern, dev_binom, dev_gamma_pois, dev_lnorm, dev_neg_binom, dev_norm, dev_pois, fabs, invlogit, kurtosis, log_lik_bern, log_lik_binom, log_lik_gamma_pois, log_lik_lnorm, log_lik_neg_binom, log_lik_norm, log_lik_pois, log_odds_ratio, odds, odds_ratio, ran_bern, ran_binom, ran_gamma, ran_gamma_pois, ran_lnorm, ran_neg_binom, ran_norm, ran_pois, res_bern and 12 more - RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2020-06-16
- Total releases
- 12 / 6 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 324 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("extras")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-20, which the citation names so these numbers can be found later. More on citing and the projects behind them.