Skip to contents

Creates a density plot of the posterior distribution for a specified parameter from a fitted model within a bipod object.

Usage

plot_posterior(x, x_fit, par_name, color = "black")

Arguments

x

A bipod object of class bipod. Must contain a 'fit' field and should have been fitted with model selection.

x_fit

The fit object within x that contains the desired parameter.

par_name

The name of the parameter whose posterior distribution is to be plotted.

color

A character string specifying the color to use for the density plot. (default is 'black')

Value

A ggplot2 object showing the density plot of the specified parameter.