Description Usage Arguments Details Value Author(s)
This function calculates the Hellinger distance between prior and posterior It can also plot the distributions.
1 | plot_dists(simmr_in, simmr_out, priorcontrol, plotdist = FALSE)
|
simmr_in |
A |
simmr_out |
A |
priorcontrol |
A list with the means and standard deviations of the priors. |
plotdist |
A logical or integer vector indicating whether to plot the distributions. If an integer, then the group(s) to plot. |
Values are numerical approximations. See BayeSens::hellinger
for more
details on estimation of Hellinger distances from MCMC chains.
In general the continuous estimation will be more accurate, however large
discrepencies between discrete and continuous estimates suggest bi-modality,
in which case we recommned the discrete estimate be used.
Items of the distfits
list can be plotted to check distribution fits.
A remix_dists
object that contains the Hellinger distances.
hellinger_discrete |
Hellinger distance estimated using a discrete approximation of the densities |
hellinger_continuous |
Hellinger distance estimated using a continuous approximation of the densities |
distfits |
A list for |
Christopher J. Brown
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.