vp.table: Variance Partitioning table

Description Usage Arguments Value

View source: R/define_summary.R

Description

The Variance Partitioning (VP) table summarizes the contribution of the different sources of variation - main, interaction, spatial and temporal effects, etc - in terms of proportion of explained (generalized) variance

Usage

1
vp.table(inla.res, vp.model = "striid", table.type = "mixing", 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)

table.type

character indicating the type of table, either 'mixing' or 'explained_sd_v1'; mixing is the preferred VP table because it reports the values of the mixing parameters gamma (1-gamma); phi (1-phi); psi1 (1-psi1); psi2 (1-psi2)

nsim

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

Value

It returns a table summarizing the contribution of the different sources of variation - main, interaction, spatial and temporal effects, etc - in terms of proportion of explained (generalized) variance


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