Description Usage Arguments Value Author(s) Examples
Produce samples from the approximated joint posterior for the hyperparameters
1 | 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
1 2 3 4 5 6 7 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.