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