Skip to content

SWIM

Scenario Weights for Importance Measurement

v1.0.0 · Jan 9, 2022 · GPL-3

Description

An efficient sensitivity analysis for stochastic models based on Monte Carlo samples. Provides weights on simulated scenarios from a stochastic model, such that stressed 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 Pesenti S.M., Millossovich P., Tsanakas A. (2019) "Reverse Sensitivity Testing: What does it take to break the model" <openaccess.city.ac.uk/id/eprint/18896/> and Pesenti S.M. (2021) "Reverse Sensitivity Analysis for Risk Modelling" <https://www.ssrn.com/abstract=3878879>.

Downloads

208

Last 30 days

15912th

208

Last 90 days

208

Last year

CRAN Check Status

14 NOTE
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc NOTE
r-devel-linux-x86_64-fedora-clang NOTE
r-devel-linux-x86_64-fedora-gcc NOTE
r-devel-macos-arm64 NOTE
r-devel-windows-x86_64 NOTE
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 NOTE
r-release-linux-x86_64 NOTE
r-release-macos-arm64 NOTE
r-release-macos-x86_64 NOTE
r-release-windows-x86_64 NOTE
Check details (16 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Silvana M. Pesenti <swimpackage@gmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-debian-clang

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Silvana M. Pesenti <swimpackage@gmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-debian-gcc

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-devel-linux-x86_64-fedora-clang

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-devel-linux-x86_64-fedora-gcc

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-devel-macos-arm64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-devel-windows-x86_64

package subdirectories

Problems with news in 'NEWS.md':
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-oldrel-macos-arm64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-oldrel-macos-x86_64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-oldrel-windows-x86_64

package subdirectories

Problems with news in 'NEWS.md':
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-patched-linux-x86_64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-release-linux-x86_64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-release-macos-arm64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-release-macos-x86_64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-release-windows-x86_64

package subdirectories

Problems with news in 'NEWS.md':
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions

Check History

NOTE 0 OK · 14 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
NOTE r-devel-linux-x86_64-debian-clang

CRAN incoming feasibility

Maintainer: ‘Silvana M. Pesenti <swimpackage@gmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-debian-gcc

CRAN incoming feasibility

Maintainer: ‘Silvana M. Pesenti <swimpackage@gmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.
NOTE r-devel-linux-x86_64-fedora-clang

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-devel-linux-x86_64-fedora-gcc

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-devel-macos-arm64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-devel-windows-x86_64

package subdirectories

Problems with news in 'NEWS.md':
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-patched-linux-x86_64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-release-linux-x86_64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-release-macos-arm64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-release-macos-x86_64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-release-windows-x86_64

package subdirectories

Problems with news in 'NEWS.md':
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-oldrel-macos-arm64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-oldrel-macos-x86_64

package subdirectories

Problems with news in ‘NEWS.md’:
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions
NOTE r-oldrel-windows-x86_64

package subdirectories

Problems with news in 'NEWS.md':
  Cannot extract version info from the following section titles:
    Additional functions and data sets
    Amendments to functions

Dependency Network

Dependencies Reverse dependencies Rdpack Hmisc nleqslv reshape2 plyr ggplot2 SWIM

Version History

new 1.0.0 Mar 9, 2026