Description Usage Arguments Details Value Examples
Plots the histograms and densities of simulations from the prior verses the posterior from gold
.
1 |
gold_output |
The list returned by |
npar |
The number of paramters to plot. 3X3 grids of tracepltos are created (DEFAULT is 9). |
burnin |
The desired burnin to discard from the results. By default it is half the number of iterations. |
If npar
is specified to be 9, 9 paramters (as equally spaced as possible) are chosen to plot.
A plot of 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 50 data points.
y <- rbeta(50, 2, 5)
duos_beta <- duos(y, k=4, MH_N=20000)
#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.