R: Class "mederrResample". Simulated Monte Carlo Chains (Step 2)...
mederrResample-class
R 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,η) values.
samp:
Object of class "array"; resampled MCMC simulation indexes.
A:
Object of class "array"; transformation ratio for each pair of (k,η) values.
t.new:
Object of class "array"; θ_i posterior modes using (k = ∞, η = 1).
t.old:
Object of class "numeric"; θ_i posterior modes using user defined (k, η) values.
grd:
Object of class "list"; grid of required (k, η) values.
Methods
plot
signature(x = "mederrResample", y = "missing"): : Provides a graphical representation of a mederrResample object.
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.