APCG_data {APCG1}R Documentation

Some Data Sets used in the Book: A Practical Guide to APC Analysis.

Description

Generate 4 data sets used in the APC Guide book (Fu 2018), separately by specifying the names of the data set, "lungCAmale", "lungCAfemale", "HIV", and "Retire".

Usage

APCG_data(apcdata = "Retire", header = F)

Arguments

apcdata

a character string of the name of data set to generate, "Retire", "HIV", "lungCAmale", or "lungCAfemale".

header

logic value, if TRUE, a header of the data set will be generated as well.

Details

Except for the US retirement account median value data set ("retire"), the other three data sets have 3 subsets, the rate, frequency, and population data subsets. All 3 datasets are originally generated by the SEER*Stat software of the SEER cancer registry database. The rate of 0 in cell (age=20, period=1995) of the US Lung Cancer data USlungCAfemale.r is due to the supression of small counts by the SEER*Stat.

Value

med.value

if apcdata="retire", provide a matrix of median retirement account value.

rate

if apcdata!="retire". The mortality rate per 100,000 population.

frequency

if apcdata!="retire". The number of deaths of specific age group in specific years.

population

if apcdata!="retire". The total number of people in the US of specified sex (including healthy people) of specific age group in specific years.

Note

A data header is provided only to the median value or rate matrix, if header = True is specified. It provides age group and year information of the data.

Author(s)

Wenjiang Fu

References

Fu, W (2018) A Practical Guide to Age-period-cohort Analysis — the Identification Problem and Beyond, CRC.

Examples

x=APCG_data(apcdata = "retire", header=TRUE)$med.value
x
x=APCG_data(apcdata = "hiv", header=TRUE)
x$rate
x$population

[Package APCG1 version 1.0 Index]