openfair_tef_tc_diff_lm: Run an OpenFAIR simulation at the TEF/TC/DIFF/LM levels

Description Usage Arguments Value See Also Examples

View source: R/openfair.R

Description

Run an OpenFAIR model with parameters provided for TEF, TC, DIFF, and LM sampling. If there are multiple controls provided for the scenario, the arithmetic mean (average) is taken across samples for all controls to get the effective control strength for each threat event.

Usage

1
openfair_tef_tc_diff_lm(tef, tc, diff, lm, n = 10^4, verbose = FALSE)

Arguments

tef

Parameters for TEF simulation

tc

Parameters for TC simulation

diff

Parameters for DIFF simulation

lm

Parameters for LM simulation

n

Number of iterations to run.

verbose

Whether to print progress indicators.

Value

Dataframe of scenario name, threat_event count, loss_event count, mean TC and DIFF exceedance, and ALE samples.

See Also

Other OpenFAIR helpers: compare_tef_vuln(), get_mean_control_strength(), sample_diff(), sample_lef(), sample_lm(), sample_tc(), sample_vuln(), select_loss_opportunities()

Examples

1
2
3
data(mc_quantitative_scenarios)
params <- mc_quantitative_scenarios$scenario[[1]]$parameters
openfair_tef_tc_diff_lm(params$tef, params$tc, params$diff, params$lm, 10)

evaluator documentation built on July 6, 2021, 9:06 a.m.