mederrRank0.1.0 package

Bayesian Methods for Identifying the Most Harmful Medication Errors

bayes.rank

Optimal Bayesian Ranking

bhm.constr.resamp

Markov Chain Monte Carlo Estimation (Step 2) of the Bayesian Hierarchi...

bhm.mcmc

Markov Chain Monte Carlo Estimation (Step 1) of the Bayesian Hierarchi...

bhm.resample

Resampling Transformation for the Markov Chain Monte Carlo Estimation ...

dmixnegbinom

The Negative Binomial Mixture Distribution

dnegbinom

The Negative Binomial Distribution

dst

The Skewed Student t Distribution

EBGM

Geometric Mean of the Relative Risk Empirical Bayes Posterior Distribu...

llDiffD

Log-Likelihood Difference for the δj\delta_j Parameters

llDiffT

Log-Likelihood Difference for the θi\theta_i Parameters

logp

Negative Log-Posterior Function of the Bayesian Hierarchical Model for...

logunpost

Unnormalized Marginal Posterior Distributions for kk and η\eta

mederrData-class

Class "mederrData". Data Specification for Identifying the Most Harmfu...

mederrFit-class

Class "mederrFit". Simulated Monte Carlo Chains (Step 1) for the Bayes...

mederrRank-package

tools:::Rd_package_title("mederrRank")

mederrResample-class

Class "mederrResample". Simulated Monte Carlo Chains (Step 2) for the ...

mixnegbinom.em

Expectation-Maximization Algorithm for the Mixture of Negative Binomia...

mixnegbinom.loglik

Log-Likelihood Function for the Mixture of Negative Binomial Distribut...

mixnegbinom.score

Log-Likelihood Score Function for the Mixture of Negative Binomial Dis...

negbinom.em

Expectation-Maximization Algorithm for the Negative Binomial Distribut...

negbinom.loglik

Log-Likelihood Function for the Mixture of Negative Binomial Distribut...

negbinom.score

Log-Likelihood Score Function for the Negative Binomial Distribution

p.value

Posterior Predictive Test statistics

plot-methods

Plot of Medication Error Data and Analysis

post.rep

Posterior Predictive Data Replications

rmixnegbinom

The Negative Binomial Mixture Distribution

summary-methods

Summary of Medication Error Data and Analysis

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.

  • Maintainer: Sergio Venturini
  • License: GPL (>= 2) | file LICENSE
  • Last published: 2023-09-05