Description Usage Arguments Details Value Examples
Create one line summary for a given marginal.
1 | posterior_summary_inla_one(marg, probs = c(0.025, 0.5, 0.975))
|
marg |
Marginal from an |
probs |
Percentiles returned by the summary. Default is
|
Create one line summary using the marginal functions from INLA
such
as inla.emarginal, inla.qmarginal, inla.mmarginal
.
vector of summary data.
1 2 3 4 5 6 7 8 | df <- data.frame(
x1 = rnorm(50, mean = 1, sd = 0.5),
x2 = rnorm(50, mean = 2, sd = 1),
sigma = rexp(50, rate = 1))
df$mu <- df$x1 + df$x2
df$y <- rnorm(nrow(df), mean = df$mu, sd = df$sigma)
the_fit <- INLA::inla(formula = y ~ x1 + x2, data = df)
posterior_summary_inla_one(the_fit$marginals.fixed[[1]])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.