plot_posterior_fixed: Plotting posterior distributions

plot_posterior_fixedR Documentation

Plotting posterior distributions

Description

Function for plotting the posterior distributions of the coefficients of the fixed effects

Usage

plot_posterior_fixed(obj)

Arguments

obj

An object from inference_stan or inference_inla

Value

A ggplot with the posterior distributions. See also makemyprior_plotting.

Examples


if (interactive() && requireNamespace("rstan")){
  ex_prior <- makemyprior_example_model()
  res_stan <- inference_stan(ex_prior, iter = 100)
  # Note: For reliable results, increase the number of iterations (e.g., 'iter = 2000')
  plot_posterior_fixed(res_stan)
}


makemyprior documentation built on Sept. 11, 2024, 6:56 p.m.