inla.hyperpar.sample {INLA} | R Documentation |
Produce samples from the approximated joint posterior for the hyperparameters
inla.hyperpar.sample(n, result, intern=FALSE, improve.marginals = FALSE)
n |
Integer. Number of samples required. |
result |
An |
intern |
Logical. If |
improve.marginals |
Logical. If |
A matrix where each sample is a row. The contents of the column is described in the rownames.
Havard Rue hrue@r-inla.org
n = 100 r = inla(y ~ 1 + f(idx), data = data.frame(y=rnorm(n), idx = 1:n)) ns = 500 x = inla.hyperpar.sample(ns, r) rr = inla.hyperpar(r) xx = inla.hyperpar.sample(ns, rr, improve.marginals=TRUE)