plot_dists: Calculates Hellinger distance and plot prior and posterior...

Description Usage Arguments Details Value Author(s)

View source: R/plot_dists.R

Description

This function calculates the Hellinger distance between prior and posterior It can also plot the distributions.

Usage

1
plot_dists(simmr_in, simmr_out, priorcontrol, plotdist = FALSE)

Arguments

simmr_in

A simmr_input object.

simmr_out

A simmr_output object.

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.

Details

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.

Value

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 BayeSens::helldist objects containing details of the functions fitted to the densities.

Author(s)

Christopher J. Brown


cbrown5/remixsiar documentation built on April 26, 2020, 12:40 a.m.