View source: R/tabulate_risk.R
tabulate_risk | R Documentation |
This function tabulates the expected risk values for each policy alternative and the percent change in risk relative to the baseline scenario.
tabulate_risk(exp_risk_list, n_s)
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 |
n_s |
A numeric value of the number of policy alternatives (including the baseline policy) to include in the table. |
A character matrix of risk values and policy risk impact (%) for each policy alternative.
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)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.