duos_pp: Plot the Prior vs. the Posterior

Description Usage Arguments Details Value Examples

Description

Plots the histograms of simulations from the prior verses the posterior from duos.

Usage

1
duos_pp(duos_output, parameters = "c", burnin = NA)

Arguments

duos_output

The list returned by duos containing the density estimate results.

parameters

The group of parameters to plot (see details).

burnin

The desired burnin to discard from the results. By default, it is half the number of iterations.

Details

The results are designed to plot of a 3X2 grid. If there are more than 6 parameters, separate plots are created and printed and can be viewed by clicking the arrow through the results in the 'Plots' window.

Options for parameters

There are two sets of parameters that can plotted in the histograms: the cut-points and the bin proportion parameters.

Value

A plot of overlaid histograms.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## --------------------------------------------------------------------------------
## Beta Distribution
## --------------------------------------------------------------------------------

# First run 'duos' on data sampled from a beat(2,5) distribution with 150 data points.
y <- rbeta(150, 2, 5)
duos_beta <- duos(y)

# Plot histograms of the priors vs. the posteriors of the cut-point parameters 
duos_pp(duos_beta)

# Plot histograms of the priors vs. the posteriors of the proportion parameters 
duos_pp(duos_beta, parameters = "p")

reykp/biRd documentation built on May 17, 2019, 8:16 p.m.