Plot the posterior densities of the ETAS parameters
Source:R/AnalysingPosteriors.R
post_pairs_plot.RdPlot the posterior densities of the ETAS parameters
Arguments
- input.list
structured input
listwith at least two elements:model.fit:bruobject used to sample the posterior of the ETAS parameterslink.functions:listof functions to convert the ETAS parameters from the INLA scale to the ETAS scale
- n.samp
The number of samples to draw from the posteriors for the plot
- post.samp
data.framewith columns mu, K, alpha, c, p and rows corresponding to different posterior samples. WhenNULLthe function samples the joint posterior distributionn.samptimes. The default isNULL.- max.batch
parameter of post_sampling function to be used in case
post.samp = NULL
Value
list: with elements
post.samp.df:data.frameof posterior samples withnrow = n.sampand columnsmu, K, alpha, c, pcorresponding to ETAS parameters. Ifpost.sampis notNULLit returnspost.samppair.plot:ggplotobject reporting the pair plot between parameters samples. It is obtained using theggpairsfunction of theGgallylibrary