Given an input of:

  • qualitative risk scenarios

  • qualitative capabilities

  • translation table from qualitative labels to quantitative parameters

encode_scenarios(scenarios, capabilities, mappings)

Arguments

scenarios

Qualitative risk scenarios dataframe.

capabilities

Qualitative program capabilities dataframe.

mappings

Qualitative to quantitative mapping dataframe.

Value

A dataframe of capabilities for the scenario and parameters for quantified simulation.

Details

Create a unified dataframe of quantitative scenarios ready for simulation.

Examples

data(qualitative_scenarios, capabilities, mappings) encode_scenarios(qualitative_scenarios, capabilities, mappings)
#> # A tibble: 56 x 9 #> scenario_id scenario tcomm domain_id controls diff_params tef_params #> <chr> <chr> <chr> <chr> <chr> <list> <list> #> 1 1 Inadequ… Orga… ORG 1, 5, 7… <list [7]> <list [5]> #> 2 10 Interna… Orga… COMP 8, 13 <list [2]> <list [5]> #> 3 11 Externa… Exte… COMP 8, 13 <list [2]> <list [5]> #> 4 12 Externa… Exte… COMP 8, 13 <list [2]> <list [5]> #> 5 13 Inabili… Orga… RISK 17, 18,… <list [4]> <list [5]> #> 6 14 Lack of… Orga… RISK 17, 18,… <list [4]> <list [5]> #> 7 15 Inabili… Exte… RISK 17, 18,… <list [4]> <list [5]> #> 8 16 Securit… Orga… RISK 17, 18,… <list [4]> <list [5]> #> 9 17 Interna… Orga… PRI 21, 22,… <list [4]> <list [5]> #> 10 18 Systemi… Exte… PRI 21, 22,… <list [4]> <list [5]> #> # ... with 46 more rows, and 2 more variables: tc_params <list>, #> # lm_params <list>