initialize_pop: Initialize a FEMALE population with an age structure, dates...

Description Usage Arguments Value Examples

Description

Initialize a FEMALE population with an age structure, dates of cancer incidence, and dates of all-cause mortality

Usage

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))))

Arguments

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.

Value

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).

Examples

1
2
3
4
5
6
pop <- initialize_pop(pop_size=100000,
                     nsim=2, 
                     agesource='Standard', 
                     minage=0, maxage=100, 
                     incsource='Uganda', 
                     mortsource='Uganda')

cancerpolicy/bcimodel documentation built on June 30, 2019, 12:39 a.m.