compute
is a generic S3 method for S3 classes inheriting from risk.
It returns a vector of aggregated simulations for the corresponding risk.
# S3 method for nonLifeRisk
compute(object, nsim, seed = NULL, market.risk, ...)
an S3 object of class nonLifeRisk.
a strictly positive integer value og length one. The number of simulations.
a strictly positive integer value of length one. The seed for reproducibility.
an S3 object of class marketRisk created using
marketRisk
.
additional parameters.
a data.table value containing one column named nonLifeRisk. The simulations result for a nonLifeRisk.