vp.postsample: bla

Description Usage Arguments Value

View source: R/define_summary.R

Description

Returns a sample of length 'nsim' from the posterior distribution 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.postsample(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

A data.frame with 'nsim' rows and 3 columns (tau, gamma and phi, for model (1)), 5 columns (tau, gamma and phi, psi1 and psi2 for model (2))


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