Constructing a nonLifeRisk
nonLifeRisk
is the constructor for the
S3 class nonLifeRisk. It allows to build for non-life
insurance risks simulations.
nonLifeRisk(type, param, currency)
type |
a character value of length one indicating the type of simulation used. it can be one of the following option:
|
param |
a list of length one or two depending on the if
if
if
|
currency |
a character value. representing the currency in which the simulations
are expressed. Please note that |
an S3 object, instance of the class nonLifeRisk.
In case of log-normal simulations, a warning is triggered if the parameters seem to be not reasonable and could eventually yield non-finite simulations.
# Creating new nonLifeRisks. nonLife1 <- nonLifeRisk(type = "simulations", param = list(simulations = stats::rnorm(100)), currency = "CHF") nonLife2 <- nonLifeRisk(type = "log-normal", param = list(mu = 1, sigma = 2), currency = "CHF") nonLife3 <- nonLifeRisk(type = "cdf", param = list(cdf = data.frame(x = c(0,1,2,3), cdf = c(0.3,0.7,0.9, 1))), currency = "CHF")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.