llDiffD | R Documentation |
\delta_j
Parameters
This function computes the log-likelihood difference for the candidate \delta_j
random effects. It is a helper function and not meant to be used on its own.
llDiffD(dat, deltaj, cand, thetai, gamma, tau2)
dat |
data frame containing the observed sample counts. |
deltaj |
vector of previous accepted values for the |
cand |
vector of candidate values for the |
thetai |
vector of previous accepted values for the |
gamma |
last sampled value for the |
tau2 |
last sampled value for the |
For further details see Myers et al. (2011).
llDiffD
returns the vector of log-likelihood differences.
Sergio Venturini sergio.venturini@unicatt.it,
Jessica A. Myers jmyers6@partners.org
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.
bhm.constr.resamp
,
bhm.mcmc
,
bhm.resample
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.