Given a dataframe of raw results from run_simulations, summarize the individual results at a per-domain level. This domain-level summary is a useful data structure for aggregate reporting.

summarize_domains(simulation_results, domain_variable = "domain_id")

Arguments

simulation_results

Simulation results dataframe.

domain_variable

Variable by which individual simulations should be grouped.

Value

Simulation results summarized across domains.

Details

Summary stats created include:

  • Mean/Min/Max/Median are calculated for loss events

  • Median/Max/VaR are calculated for annual loss expected (ALE)

  • Mean/Median/Max/Min are calculated for single loss expected (SLE)

  • Mean percentage of threat capability exceeding difficulty on successful threat events

  • Mean percentage of difficulty exceeding threat capability on defended events

  • Vulnerability percentage

Examples

if (FALSE) {
data(mc_simulation_results)
summarize_domains(mc_simulation_results)
}