plot_posterior_fixed {makemyprior}R 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)
}


[Package makemyprior version 1.2.1 Index]