Description Usage Arguments Value Author(s) Source References See Also Examples
View source: R/apc_data_sets.R
Function that organises asbestos data in apc.data.list
format.
Counts of mesothelioma deaths in the UK by age and period. Mesothelioma is most often caused by exposure to asbestos.
The data set is in "PA"-format.
data.asbestos
is for men 1967-2012
data.asbestos.2013
is the same as data.asbestos.2013.men
and is for men 1968-2013.
data.asbestos.2013.women
and is for women 1968-2013.
The primary data set includes ages 25-89, which is obtained when using the function without arguments or with argument all.age.groups=FALSE
. The secondary data includes younger and older age groups, which is obtained when using the function with argument all.age.groups=TRUE
. The apc.package
is at present not aimed at such unbalanced data.
1 2 3 4 | data.asbestos(all.age.groups = FALSE)
data.asbestos.2013(all.age.groups = FALSE)
data.asbestos.2013.women(all.age.groups = FALSE)
data.asbestos.2013.men(all.age.groups = FALSE)
|
all.age.groups |
logical. If FALSE (default), only age groups 25-89 are included. |
The value is a list in apc.data.list
format.
response |
matrix of cases. Numbers of mesothelioma deaths by period and age. Period runs 1967-2007. Age runs 25-89 when |
dose |
NULL |
data.format |
logical equal to "PA". Data organised with period-groups in rows and age-groups in columns. |
age1 |
numeric equal to 25. This is the label for the first age group of 25. |
per1 |
numeric equal to 1967. This is the label for the first period group of 1967. |
coh1 |
NULL. Not needed when data.format="PA" |
unit |
numeric equal to 1. This is the width of the age and period groups. |
per.zero |
NULL. Not needed when data.format="PA" |
per.max |
NULL. Not needed when data.format="PA" |
time.adjust |
0. Thus age=89 in period=1967 corresponds to cohort=1967-89+0=1878. |
label |
character. "UK asbestos". |
Bent Nielsen <bent.nielsen@nuffield.ox.ac.uk> 30 April 2016
Data were prepared for the Asbestos Working Party by the UK Health and Safety Executive.
An APC analysis of these data can be found in
Martinez Miranda, Nielsen and Nielsen (2015).
The results of that paper are reproduced in
the vignette
ReproducingMMNN2015.pdf
,
ReproducingMMNN2015.R
on
Vignettes
.
These data are also used in Nielsen (2015).
The updated data set data.asbestos.2013
is for 1968-2013 and has the same structure. This is analysed in
Martinez-Miranda, Nielsen and Nielsen (2016).
Martinez Miranda, M.D., Nielsen, B. and Nielsen, J.P. (2015) Inference and forecasting in the age-period-cohort model with unknown exposure with an application to mesothelioma mortality. Journal of the Royal Statistical Society A 178, 29-55. Download: Nuffield DP.
Martinez-Miranda, M.D., Nielsen, B. and Nielsen, J.P. (2016) A simple benchmark for mesothelioma projection for Great Britain. To appear in Occupational and Environmental Medicine. Download: Nuffield DP.
Nielsen, B. (2015) apc: An R package for age-period-cohort analysis. R Journal 7, 52-64. Download: Open access.
General description of apc.data.list
format.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #########################
# apc data list
data.list <- data.asbestos()
objects(data.list)
#####################
# Figure 1,a-c from
# Miranda Martinex, Nielsen and Nielsen (2015).
data.list <- data.asbestos()
apc.plot.data.sums(data.list,type="l")
#####################
# Figure 1,d from
# Miranda Martinex, Nielsen and Nielsen (2015).
data.list <- data.asbestos()
apc.plot.data.within(data.list,type="l",lty=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.