plot_posterior_variance {makemyprior}R Documentation

Plotting posterior variances, standard deviations or precisions

Description

Plotting posterior variances, standard deviations or precisions

Usage

plot_posterior_variance(obj)

plot_posterior_stdev(obj)

plot_posterior_precision(obj)

Arguments

obj

An object from inference_stan or inference_inla.

Value

A ggplot object with the plot 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_variance(res_stan)
}

if (interactive() && requireNamespace("INLA")){
  ex_prior <- makemyprior_example_model()
  res_inla <- inference_inla(ex_prior)
  plot_posterior_variance(res_inla)
}


[Package makemyprior version 1.2.1 Index]