Plot the posterior densities of the ETAS parameters
Source:R/AnalysingPosteriors.R
post_pairs_plot.Rd
Plot the posterior densities of the ETAS parameters
Arguments
- input.list
structured input
list
with at least two elements:model.fit
:bru
object used to sample the posterior of the ETAS parameterslink.functions
:list
of 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.frame
with columns mu, K, alpha, c, p and rows corresponding to different posterior samples. WhenNULL
the function samples the joint posterior distributionn.samp
times. 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.frame
of posterior samples withnrow = n.samp
and columnsmu, K, alpha, c, p
corresponding to ETAS parameters. Ifpost.samp
is notNULL
it returnspost.samp
pair.plot
:ggplot
object reporting the pair plot between parameters samples. It is obtained using theggpairs
function of theGgally
library