prec2sd | R Documentation |
Convert the posterior marginal of a precision to a standard deviation
prec2sd(marg)
marg |
A matrix with columns "y" and "x" where "y" is the marginal of the precision. |
A data.frame
with the mean, standard deviation and 2.5%, 25%, 50%,
75% and 97.5% quantiles of the posterior of the standard deviation.
stopifnot(require(INLA))
model <- inla(Sepal.Length ~ Species, data = iris, family = "gaussian")
marg <- model$marginals.hyperpar[["Precision for the Gaussian observations"]]
prec2sd(marg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.