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).

Examples

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