vp.plotpost: Posterior distribution of the mixing parameters of the VP...

Description Usage Arguments Value

View source: R/define_summary.R

Description

This function produces a plot of the posterior distributions of the mixing parameters of the VP model: gamma and phi for model (1); gamma, phi, psi1 and psi2 for model (2)

Usage

1
vp.plotpost(inla.res, vp.model = "striid", nsim = 10000, ...)

Arguments

inla.res

inla output

vp.model

character indicating the type of VP model; either 'str' or 'striid'; the former is model (1) in the VP paper, the latter is model (2)

nsim

number of samples drawn from the posterior, to pass on to inla.posterior.sample()

...

Value

It returns a plot with the posterior distributions


massimoventrucci/inlaVP documentation built on Dec. 21, 2021, 2:51 p.m.