SWIM Package
SWIM package is available in R and Shiny app.
- In R: available via CRAN and Github
- In Shiny app: application
The SWIM package provides weights on simulated scenarios from a stochastic model, such that stressed model components (random variables) fulfil given probabilistic constraints (e.g. specified values for risk measures), under the new scenario weights. Scenario weights are selected by constrained minimisation of the relative entropy to the baseline model. The SWIM package is based on the papers Pesenti et al. (2019) and Pesenti (2021).