simulate.healthRisk: Simulate from a HealthRisk

Description Usage Arguments Value See Also

Description

simulate is a generic S3 method for classes inheriting from risk. It returns a vector of risk-factor simulations for the corresponding risk.

Usage

1
2
## S3 method for class 'healthRisk'
simulate(object, nsim, seed = NULL, ...)

Arguments

object

S3 object of class healthRisk.

nsim

strictly positive integer value og length one. The number of simulations.

seed

positive integer value of length one. The seed for reproducibility.

...

additional asrgument to be passed to rnorm.

Value

a numeric value, the base simulations.

See Also

simulate, healthRisk.


sstModel documentation built on May 2, 2019, 12:16 p.m.