View source: R/aasim_classes.r
addPerson.sim | R Documentation |
Add Person to persons list in a simulation
addPerson.sim(
sim,
name,
initials,
birthDate,
gender,
retireAge,
mort.factor = 1,
mort.adj.years = 0
)
sim |
Object of type sim (simulation) |
name |
Name of person |
initials |
Initials or short name, useful for display |
birthDate |
Birth date to determine current age, format YYYY-MM-DD. |
gender |
'M' or 'Male' or 'F' or 'Female' |
retireAge |
Retirement age. |
mort.factor |
Mortality factor, default = 1. This is multiplied by each mortality rate. Values >1 decrease life expectancy. |
mort.adj.years |
Mortality adjustment, default = 0. This value is added to each generated age at death. |
sim object with person added to simulation
## Not run: sim1 <- addPerson.sim(sim, name, initials, birthDate, gender,
retireAge, mort.factor, mort.adj.years)
## End(Not run)
## Not run: sim1<-addPerson.sim(sim1,"Rex Macey","RM",56,"M",65,1.0, 0.0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.