Composition function for use in sample_lef. Given a count of the number of threat events (TEF) and the level of vulnerability (as a percentage), calculate how many of those become loss events (LEF).

compare_tef_vuln(tef, vuln, n = NULL)

Arguments

tef

Threat event frequency (n).

vuln

Vulnerability (percentage).

n

Number of samples to generate.

Value

List containing samples (as a vector) and details (as a list).

See also

Other OpenFAIR helpers: get_mean_control_strength, openfair_tef_tc_diff_lm, sample_diff, sample_lef, sample_lm, sample_tc, sample_vuln, select_loss_opportunities

Examples

compare_tef_vuln(tef = 500, vuln = .25)
#> $samples #> [1] 125 #> #> $details #> list() #>