plot_density: OUTPUT FUNCTION

View source: R/plot_sir.R

plot_densityR Documentation

OUTPUT FUNCTION

Description

Function that provides a plot of the estimated posterior densities of parameters from SIR model.

Usage

plot_density(SIR, file_name = NULL, lower = NULL, upper = NULL,
  priors = NULL, inc_reference = TRUE)

Arguments

SIR

A fit SIR model or list of SIR models. Plots in the order provided.

file_name

name of a file to identified the files exported by the function. If NULL, does not save.

lower

Vector of lower bounds for x-axis

upper

Vector of upper bounds for x-axis

priors

Default = NULL, SIR realized priors or list of SIR realized priors. Plots in the order provided.

reference

Default = NULL, wether reference case is included in SIR

Value

Returns and saves a figure with the posterior densities of parameters.


antarctic-humpback-2019-assessment/HumpbackSIR documentation built on Nov. 6, 2023, 6:07 p.m.