Description Usage Arguments Value Note See Also Examples
nonLifeRisk
is the constructor for the
S3 class nonLifeRisk. It allows to build for non-life
insurance risks simulations.
1 | 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.
summary.nonLifeRisk
, print.nonLifeRisk
,
simulate.nonLifeRisk
, compute.nonLifeRisk
.
1 2 3 4 5 6 7 8 9 10 11 | # 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.