This function generates and saves plots for economic data, risks data, and very high-risk data from the given object.

plot_economics(object)

Arguments

object

An object containing economic data frames (econ_df, risks_df, risks_vhr_df) and an economic name (econ_name).

Details

The function performs the following steps:

  • Checks if the directory for saving plots exists, and creates it if it does not.

  • Processes the economic data frame (econ_df) to create a combined data frame for QALY loss and Costs.

  • Generates and saves a plot for the economic data with uncertainty ribbons and lines.

  • Generates and saves a plot for the risks data with uncertainty ribbons and lines.

  • Generates and saves a plot for the very high-risk data with lines.