Description Usage Arguments Examples
Initialize a FEMALE population with an age structure, dates of cancer incidence, and dates of all-cause mortality - parallelized version
1 2 3 | parinitialize_pop(pop_size, nsim, agesource, minage, maxage, incsource,
mortsource, pop_chars = list(male = data.frame(male = c(0), prop =
c(1))), ncores = 4)
|
agesource |
Country to use for age structure (see data(agestructure) ) |
minage |
Lower age limit for population at sim start |
maxage |
Upper age limit for population at sim start |
incsource |
Country to use for incidence rates (see data(incratesf) ) |
mortsource |
Country to use for life table (see data(allmortratesf) ) |
pop_chars |
A list of data frames that specify additional features to simulate in the population. Defaults to giving the whole population male=0, i.e. all female sex. param ncores Number of cores |
1 2 3 4 5 6 | pop <- initialize_pop(pop_size=100000,
nsim=2,
agesource='Standard',
minage=0, maxage=100,
incsource='Uganda',
mortsource='Uganda')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.