summary.nonLifeRisk: Summarizing a nonLifeRisk

Description Usage Arguments Value See Also Examples

View source: R/nonLifeRisk-base.R

Description

summary method for the S3 class nonLifeRisk.

Usage

1
2
## S3 method for class 'nonLifeRisk'
summary(object, ...)

Arguments

object

S3 object of class lifeRisk.

...

additional arguments affecting the summary produced.

Value

an S3 object, instance of class c("summaryDefault", "table").

See Also

summary, nonLifeRisk.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# Creating a new nonLifeRisk.
nonLife1 <- nonLifeRisk(type     = "simulations",
                        param    = list(simulations = stats::rnorm(100)),
                        currency =  "CHF")
# summarizing the nonLifeRisk.
summary(nonLife1)
# Creating a new nonLifeRisk.
nonLife2 <- nonLifeRisk(type     = "log-normal",
                        param    = list(mu = 1, sigma = 2),
                        currency =  "CHF")
# summarizing the nonLifeRisk.
summary(nonLife2)
# Creating a new nonLifeRisk.
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")
# summarizing the nonLifeRisk.
summary(nonLife3)

sstModel documentation built on May 4, 2018, 1:04 a.m.