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

Description Usage Arguments Examples

Description

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

Usage

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)

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. param ncores Number of cores

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.