Description Usage Arguments Details Value Author(s) Examples
This function draws the density of a one-parameter and adds summary statistics.
1 2 | MarginalPlot(a_chain, level = 0.95, title = "Marginal posterior density",
colors = T, GridLength = 1024)
|
a_chain |
numeric vector containing the output of the MCMC algorithm for a one-parameter |
level |
probability corresponding to the level of confidence |
title |
label of the title |
colors |
if TRUE -> use of colors in the graph |
GridLength |
length of the grid used to estimate the density |
The density is estimated using density() function with n=GridLength.
Draws a plot of the estimated marginal posterior density for the one-parameter and adds the mean and the credible interval at the desired level
Anne Philippe <Anne.Philippe@univ-nantes.fr> and
Marie-Anne Vibet <Marie-Anne.Vibet@univ-nantes.fr>
1 2 3 4 5 6 7 | data(Events); attach(Events)
MarginalPlot(Event.1, 0.95)
MarginalPlot(Event.1, 0.50)
MarginalPlot(Event.2, 0.95, title="Marginal density plot of Event 2")
MarginalPlot(Event.2, 0.95, colors = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.