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 participationRisk
compute(object, market.risk, participation.item,
nsim, seed = NULL, ...)
S3 object of class participationRisk.
S3 object of class marketRisk.
S3 object of class participation.
strictly positive integer value og 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 participation. The simulations result for a participationRisk.