Given a dataframe of raw results from run_simulations, summarize the individual results at a per-iteration level.

summarize_iterations(simulation_result, ..., .key = "iteration")

Arguments

simulation_result

Results object for a single scenario.

...

Additional simulation result objects to summarize.

.key

Iteration ID field

Value

Dataframe.

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 * Z-score of ALE (outliers flagged as 2 >= z-score)

Examples

data(mc_simulation_results) summarize_iterations(mc_simulation_results$results)
#> # A tibble: 1,000 x 11 #> iteration largest_single_… min_loss max_loss outliers ale_sum #> <int> <dbl> <dbl> <dbl> <lgl> <dbl> #> 1 1 2987483. 0 1.32e7 TRUE 1.32e7 #> 2 2 3159502. 0 1.36e7 TRUE 1.36e7 #> 3 3 2937112. 0 1.41e7 TRUE 1.41e7 #> 4 4 2142845. 0 9.47e6 TRUE 9.47e6 #> 5 5 2610111. 0 1.01e7 TRUE 1.01e7 #> 6 6 4000900. 0 1.69e7 TRUE 1.69e7 #> 7 7 3812536. 0 1.83e7 TRUE 1.83e7 #> 8 8 3705607. 0 1.69e7 TRUE 1.69e7 #> 9 9 3888987. 0 2.07e7 TRUE 2.07e7 #> 10 10 2440504. 0 1.10e7 TRUE 1.10e7 #> # … with 990 more rows, and 5 more variables: mean_tc_exceedance <dbl>, #> # mean_diff_exceedance <dbl>, loss_events <int>, threat_events <int>, #> # avoided_events <int>