Description Usage Arguments Value Examples
Initialize a FEMALE population with an age structure, dates of cancer incidence, and dates of all-cause mortality
1 2 3 | initialize_pop(pop_size, nsim, agesource, minage, maxage, incsource,
mortsource, pop_chars = list(male = data.frame(male = c(0), prop =
c(1))))
|
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. |
List of three matrices of dimenion pop_size by nsim specifying simulated characteristics for each individual in each simulation: age at entry, age at other-cause death, and age at clinical incidence of cancer (capped at 121, i.e. after death from other caues).
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.