Learn R Programming

apc (version 2.0.0)

data.asbestos: Asbestos data

Description

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.

Usage

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)

Arguments

all.age.groups

logical. If FALSE (default), only age groups 25-89 are included.

Value

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 all.age.groups=FALSE. "PA"-format.

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

References

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.

See Also

General description of apc.data.list format.

Examples

Run this code
# NOT RUN {
#########################
#	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)

# }

Run the code above in your browser using DataLab