tabulate_risk: Output risk measures to table

View source: R/tabulate_risk.R

tabulate_riskR Documentation

Output risk measures to table

Description

This function tabulates the expected risk values for each policy alternative and the percent change in risk relative to the baseline scenario.

Usage

tabulate_risk(exp_risk_list, n_s)

Arguments

exp_risk_list

A list of expected risk values where the first element corresponds to the baseline policy. This list can be generated using the calculate_risk() function.

n_s

A numeric value of the number of policy alternatives (including the baseline policy) to include in the table.

Value

A character matrix of risk values and policy risk impact (%) for each policy alternative.

Examples

tmin <- "2021-01-01"
tmax <- "2021-04-10"
Dt <- rep(750, nrow(psa_data$Baseline))

risk_measures <- calculate_risk(
  psa_data,
  tmin = tmin,
  tmax = tmax,
  Dt = Dt,
  Dt_max = TRUE
)

tabulate_risk(
  risk_measures,
  n_s = length(psa_data)
)

DUToolkit documentation built on Sept. 14, 2025, 5:09 p.m.