Description Usage Arguments Details Value Examples
Plots the histograms of simulations from the prior verses the posterior from duos
.
1 |
duos_output |
The list returned by |
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. |
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.
"c"
: Plots the histograms of the cut-points. (DEFAULT).
"p"
: Plots the histograms of the bin proportion parameters.
A plot of overlaid histograms.
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.