mederrResample-class: Class "mederrResample". Simulated Monte Carlo Chains (Step 2)...

mederrResample-classR Documentation

Class "mederrResample". Simulated Monte Carlo Chains (Step 2) for the Bayesian Hierarchical Model Used to Identify the Most Harmful Medication Errors.

Description

This class encapsulates the information needed to resample the Monte Carlo chains for the Bayesian Hierarchical Model as described in Myers et al. (2011) using user defined values for k and eta.

Objects from the Class

Objects can be created by calls of the form new("mederrResample", log.ir, samp, A, t.new, t.old, grd), but most often as the result of a call to bhm.resample.

Slots

log.ir:

Object of class "array"; logarithm of the importance ratio for each pair of (k,\eta) values.

samp:

Object of class "array"; resampled MCMC simulation indexes.

A:

Object of class "array"; transformation ratio for each pair of (k,\eta) values.

t.new:

Object of class "array"; \theta_i posterior modes using (k = \infty, \eta = 1).

t.old:

Object of class "numeric"; \theta_i posterior modes using user defined (k, \eta) values.

grd:

Object of class "list"; grid of required (k, \eta) values.

Methods

plot

signature(x = "mederrResample", y = "missing"): : Provides a graphical representation of a mederrResample object.

Author(s)

Sergio Venturini sergio.venturini@unicatt.it,

Jessica A. Myers jmyers6@partners.org

References

Myers, J. A., Venturini, S., Dominici, F. and Morlock, L. (2011), "Random Effects Models for Identifying the Most Harmful Medication Errors in a Large, Voluntary Reporting Database". Technical Report.

See Also

bayes.rank. bhm.constr.resamp, bhm.mcmc.


mederrRank documentation built on Sept. 8, 2023, 5:06 p.m.