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 healthRisk
simulate(object, nsim, seed = NULL, ...)
S3 object of class healthRisk.
strictly positive integer value og length one. The number of simulations.
positive integer value of length one. The seed for reproducibility.
additional asrgument to be passed to rnorm
.
a numeric value, the base simulations.