simulate
is a generic S3 method for classes
inheriting from risk. It returns a vector of risk-factor
simulations for the corresponding risk.
# S3 method for scenarioRisk
simulate(object, nsim, seed = NULL, market.risk, ...)
S3 object of class scenarioRisk.
strictly positive integer value of length one. The number of simulations.
positive integer value of length one. The seed for reproducibility.
S3 object of class marketRisk created using the constructor
marketRisk
.
additional arguments.
a numeric value, the base simulations.