Description Usage Value Author(s) Source References See Also Examples
View source: R/apc_data_sets.R
Function that organises US prostate data in apc.data.list
format.
The data set is taken from table 2 of Holford (1983), which contains age-specific counts of deaths and midperiod population measured in 1000s, during the period 1935-1969. Reported in 5 year age groups and 5 year period groups.
The original source was Cancer deaths: National Center for Health Statistics, 1937-1973 Population 1935-60: Grove and Hetzel, 1968 Population 1960-69: Bureau of the Census, 1974
The data set is in "AP"-format.
1 |
The value is a list in apc.data.list
format.
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 50. This is the label for the first age group covering ages 25-29. |
per1 |
numeric equal to 1935. 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=50 in period=1935 corresponds to cohort=1935-50+0=1885, and indeed the centers of the age and period groups, that is age=52 and period=1937 translate into cohort=1937-52+0=1885. |
label |
character. "US prostate cancer". |
Bent Nielsen <bent.nielsen@nuffield.ox.ac.uk> 8 Sep 2015 (28 Apr 2015)
Table 2 of Holford (1983)
Holford, T.R. (1983) The estimation of age, period and cohort effects for vital rates. Biometrics 39, 311-324.
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.US.prostate.cancer()
## To see the content of the data
data
|
$response
1935-1939 1940-1944 1945-1949 1950-1954 1955-1959 1960-1964 1965-1969
50-54 177 271 312 382 321 305 308
55-59 262 350 552 620 714 649 738
60-64 360 479 644 949 932 1292 1327
65-69 409 544 812 1150 1668 1958 2153
70-74 328 509 763 1097 1593 2039 2433
75-79 222 359 584 845 1192 1638 2068
80-84 108 178 285 475 742 992 1374
$dose
1935-1939 1940-1944 1945-1949 1950-1954 1955-1959 1960-1964 1965-1969
50-54 301 317 353 395 426 473 498
55-59 212 248 279 301 358 411 443
60-64 159 194 222 222 258 304 341
65-69 132 144 169 210 230 264 297
70-74 76 94 110 125 149 180 197
75-79 37 47 59 71 91 108 118
80-84 19 22 32 39 44 56 66
$data.format
[1] "AP"
$age1
[1] 50
$per1
[1] 1935
$coh1
[1] 5
$unit
[1] 5
$per.zero
NULL
$per.max
NULL
$time.adjust
[1] 0
$label
[1] "US prostate cancer"
$n.decimal
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.