Description Usage Arguments Value Author(s) Source References See Also Examples
View source: R/apc_data_sets.R
Function that organises Belgian lung cancer data in apc.data.list
format.
The data set is taken from table VIII of Clayton and Schifflers (1987a), which contains age-specific incidence rates (per 100,000 person-years observation) of lung cancer in Belgian females during the period 1955-1978. Numerators are also available. The original source was the WHO mortality database.
The data set is in "AP"-format. The original data set is unbalanced since the first four period groups cover 5 years, while the last covers 4 years. The primary data set has 4 period groups, which is obtained when using the function without arguments or with argument unbalanced=FALSE
. The secondary data set has 5 uneven sized period groups, wwhich is obtained when using the function with argument unbalanced=TRUE
. The apc.package
is at present not aimed at such unbalanced data.
1 | data.Belgian.lung.cancer(unbalanced = FALSE)
|
unbalanced |
logical. If TRUE (default), the last 4-year group column of the data is ignored. |
The value is a list in apc.data.list
format.
rates |
matrix of mortality rates. This is not needed for the |
response |
matrix of cases |
dose |
matrix of cases/rates |
data.format |
logical equal to "AP". Data organised with age-groups in rows and period-groups in columns. |
age1 |
numeric equal to 25. This is the label for the first age group covering ages 25-29. |
per1 |
numeric equal to 1955. This is the label for the first period group covering period 1955-1959. |
coh1 |
NULL. Not needed when data.format="AP" |
unit |
numeric equal to 5. This is the width of the age and period groups. |
per.zero |
NULL. Not needed when data.format="AP" |
per.max |
NULL. Not needed when data.format="AP" |
time.adjust |
0. Thus age=25 in period=1955 corresponds to cohort=1955-25+0=1930, and indeed the centers of the age and period groups, that is age=27 and period=1957 translate into cohort=1957-27+0=1930. |
label |
character. "Belgian lung cancer". |
Bent Nielsen <bent.nielsen@nuffield.ox.ac.uk> 8 Sep 2015 (24 Oct 2013)
Table VIII of Clayton and Schifflers (1987a).
Clayton, D. and Schifflers, E. (1987a) Models for temperoral variation in cancer rates. I: age-period and age-cohort models. Statistics in Medicine 6, 449-467.
General description of apc.data.list
format.
1 2 3 4 5 6 7 8 | #########################
## It is convient to construct a data variable
data <- data.Belgian.lung.cancer()
## To see the content of the data
data
|
$response
1955-1959 1960-1964 1965-1969 1970-1974
25-29 3 2 7 3
30-34 11 16 11 10
35-39 11 22 24 25
40-44 36 44 42 53
45-49 77 74 68 99
50-54 106 131 99 142
55-59 157 184 189 180
60-64 193 232 262 249
65-69 219 267 323 325
70-74 223 250 308 412
75-79 198 214 253 338
$dose
1955-1959 1960-1964 1965-1969 1970-1974
25-29 15.789474 15.384615 14.000000 15.789474
30-34 16.666667 16.326531 15.277778 14.084507
35-39 14.102564 16.666667 16.326531 15.243902
40-44 13.483146 13.924051 16.600791 15.680473
45-49 15.909091 13.214286 13.793103 16.363636
50-54 16.060606 15.411765 12.941176 13.408876
55-59 15.154440 15.333333 14.905363 12.552301
60-64 13.075881 14.172266 14.555556 14.147727
65-69 10.667316 11.814159 12.971888 13.357994
70-74 8.498476 9.025271 10.108303 11.153221
75-79 5.915745 6.367153 6.880609 7.736324
$data.format
[1] "AP"
$age1
[1] 25
$per1
[1] 1955
$coh1
[1] 5
$unit
[1] 5
$per.zero
NULL
$per.max
NULL
$time.adjust
[1] 0
$label
NULL
$n.decimal
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.