`R/openfair.R`

`sample_lm.Rd`

Given a number of loss events and a loss distribution, calculate losses

sample_lm(n, .func = NULL, params = NULL)

n | Number of samples to generate. |
---|---|

.func | Function to use to simulate TEF, defaults to |

params | Optional parameters to pass to |

List containing type ("lm"), samples (as a vector), and details (as a list).

Other OpenFAIR helpers:
`compare_tef_vuln()`

,
`get_mean_control_strength()`

,
`openfair_tef_tc_diff_lm()`

,
`sample_diff()`

,
`sample_lef()`

,
`sample_tc()`

,
`sample_vuln()`

,
`select_loss_opportunities()`