sampler: Produce samples from the approximated joint posterior for the...

Description Usage Arguments Value Author(s) Examples

Description

Produce samples from the approximated joint posterior for the hyperparameters

Usage

1
inla.hyperpar.sample(n, result, intern=FALSE)

Arguments

n

Integer. Number of samples required.

result

An inla-object, f.ex the output from an inla-call.

intern

Logical. If TRUE then produce samples in the intern scale for the hyperparmater, if FALSE then produce samples in the user-scale. (For example log-precision (intern) and precision (user-scale))

Value

A matrix where each sample is a row. The contents of the column is described in the rownames.

Author(s)

Havard Rue hrue@math.ntnu.no

Examples

1
2
3
r = inla(y ~ 1, data = data.frame(y=1:10), family = "t")
x = inla.hyperpar.sample(10,r)
str(x)

andrewzm/INLA documentation built on May 10, 2019, 11:12 a.m.