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)

Arguments

tef

Threat event frequency (n).

vuln

Vulnerability (percentage).

Value

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

See also

Examples

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