Pred_Dens_ggPlot: Predictive Posterior density plots

Description Usage Arguments Value Author(s) Examples

Description

Compute a ggplot of the Density associated with the Posterior Predictive Distribution (PPD)

Usage

1
Pred_Dens_ggPlot(year, data_ppd, ylim = c(0.01, 0.55), xlim = c(27.5, 36))

Arguments

year

numeric value giving the year for which we want to compute the predictive density

data_ppd

numeric matrix or df of size [n,p] containing the posterior predictive samples, where n is the number of simulated samples and p is the prediction horizon.

ylim

and xlim define the grid for the plot.

Value

a ggplot

Author(s)

Antoine Pissoort, antoine.pissoort@student.uclouvain.be

Examples

1
2
3
# For the PPD density plot of the year 2026 :
gg4 <- PissoortThesis::Pred_Dens_ggPlot(2026, repl2)
# where repl2 is the matrix containing the predictive samples (see Bayes_own_gev.R)

proto4426/PissoortThesis documentation built on May 26, 2019, 10:31 a.m.