mederrRank
Bayesian Methods for Identifying the Most Harmful Medication Errors
Description
Two distinct but related statistical approaches to the problem of identifying the combinations of medication error characteristics that are more likely to result in harm are implemented in this package: 1) a Bayesian hierarchical model with optimal Bayesian ranking on the log odds of harm, and 2) an empirical Bayes model that estimates the ratio of the observed count of harm to the count that would be expected if error characteristics and harm were independent. In addition, for the Bayesian hierarchical model, the package provides functions to assess the sensitivity of results to different specifications of the random effects distributions.
Downloads
249
Last 30 days
19913th
575
Last 90 days
2.2K
Last year
Trend: +81.8% (30d vs prior 30d)
0
Last 30 days
23
Last 90 days
93
Last year
Trend: -100% (30d vs prior 30d)
2
Last 7 days
7
Last 30 days
2
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 | NOTE |
| r-devel-linux-x86_64-debian-gcc | NOTE |
| r-devel-linux-x86_64-fedora-clang | NOTE |
| r-devel-linux-x86_64-fedora-gcc | NOTE |
| r-devel-windows-x86_64 | NOTE |
| r-oldrel-macos-arm64 | NOTE |
| r-oldrel-macos-x86_64 | NOTE |
| r-oldrel-windows-x86_64 | NOTE |
| r-patched-linux-x86_64 | NOTE |
| r-release-linux-x86_64 | NOTE |
| r-release-macos-arm64 | NOTE |
| r-release-macos-x86_64 | NOTE |
| r-release-windows-x86_64 | NOTE |
Check details (15 non-OK)
CRAN incoming feasibility
Maintainer: ‘Sergio Venturini <sergio.venturini@unicatt.it>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Sergio",
family = "Venturini",
role = c("aut", "cre"),
email = "sergio.venturini@unicatt.it"),
person(given = "Jessica",
family = "Myers",
role = "aut"))
as necessary.
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
CRAN incoming feasibility
Maintainer: ‘Sergio Venturini <sergio.venturini@unicatt.it>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Sergio",
family = "Venturini",
role = c("aut", "cre"),
email = "sergio.venturini@unicatt.it"),
person(given = "Jessica",
family = "Myers",
role = "aut"))
as necessary.
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Check History
NOTE 0 OK · 13 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
CRAN incoming feasibility
Maintainer: ‘Sergio Venturini <sergio.venturini@unicatt.it>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Sergio",
family = "Venturini",
role = c("aut", "cre"),
email = "sergio.venturini@unicatt.it"),
person(given = "Jessica",
family = "Myers",
role = "aut"))
as necessary.
CRAN incoming feasibility
Maintainer: ‘Sergio Venturini <sergio.venturini@unicatt.it>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Sergio",
family = "Venturini",
role = c("aut", "cre"),
email = "sergio.venturini@unicatt.it"),
person(given = "Jessica",
family = "Myers",
role = "aut"))
as necessary.
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
ERROR 0 OK · 12 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
CRAN incoming feasibility
Maintainer: ‘Sergio Venturini <sergio.venturini@unicatt.it>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Sergio",
family = "Venturini",
role = c("aut", "cre"),
email = "sergio.venturini@unicatt.it"),
person(given = "Jessica",
family = "Myers",
role = "aut"))
as necessary.
CRAN incoming feasibility
Maintainer: ‘Sergio Venturini <sergio.venturini@unicatt.it>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Sergio",
family = "Venturini",
role = c("aut", "cre"),
email = "sergio.venturini@unicatt.it"),
person(given = "Jessica",
family = "Myers",
role = "aut"))
as necessary.
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
NOTE 0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
CRAN incoming feasibility
Maintainer: ‘Sergio Venturini <sergio.venturini@unicatt.it>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Sergio",
family = "Venturini",
role = c("aut", "cre"),
email = "sergio.venturini@unicatt.it"),
person(given = "Jessica",
family = "Myers",
role = "aut"))
as necessary.
CRAN incoming feasibility
Maintainer: ‘Sergio Venturini <sergio.venturini@unicatt.it>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = "Sergio",
family = "Venturini",
role = c("aut", "cre"),
email = "sergio.venturini@unicatt.it"),
person(given = "Jessica",
family = "Myers",
role = "aut"))
as necessary.
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Rd files
checkRd: (-1) bhm.mcmc.Rd:37: Lost braces; missing escapes or markup?
37 | where \eqn{N_{ij}} denotes the number of times that the error profile \eqn{i} is cited on a report from hospital {j} and \eqn{y_{ij}} is the corresponding number of times that profile \eqn{i} in hospital \eqn{j} was reported with harm.
| ^
Code
Structure
Lines of code
2,384
Files
39
Compiled share
0%
Has compiled src
No
Language breakdown
API
Exported functions
22
Internal functions
0
Recent export changes
Testing & CI
Has tests
No
Test-to-code ratio
0.00
testthat edition
–
CI present
No
CI type
[]
PR gated
No
Docs
Return-value doc rate
–
\dontrun example ratio
30.8%
Roxygen coverage
–
Has pkgdown
No
NEWS present
No
Health & Security signals
Informational signals; not verdicts.
on.exit coverage
0%
Unsafe pattern score
0
Dep constraint coverage
0%
Secret pattern count
0
Bundled 3rd-party code
2 items
Portability & License
Min R version
–
System requirements
–
C++ standard
–
License
GPL (>= 2) | file LICENSE
License flags
SPDX valid, not OSI
History
Versions
4
First release
2011-03-20
Latest release
2023-09-05
Avg cadence
963 days
Cold removal rate
–
Dep drift
2
LOC over versions
Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.