apc: Age-Period-Cohort Analysis

Share:

Functions for age-period-cohort analysis. The data can be organised in matrices indexed by age-cohort, age-period or cohort-period. The data can include dose and response or just doses. The statistical model is a generalized linear model (GLM) allowing for 3,2,1 or 0 of the age-period-cohort factors. The canonical parametrisation of Kuang, Nielsen and Nielsen (2008) <DOI:10.1093/biomet/asn026> is used. Thus, the analysis does not rely on ad hoc identification.

Author
Bent Nielsen
Date of publication
2016-12-01 08:28:22
Maintainer
Bent Nielsen <bent.nielsen@nuffield.ox.ac.uk>
License
GPL-3
Version
1.3

View on CRAN

Man pages

apc_1.3-package
Age-period-cohort analysis
apc.data.list
Arrange data as an apc.data.list
apc.data.list.subset
Cut age, period and cohort groups from data set.
apc.data.sums
Computes age, period and cohort sums of a matrix
apc.fit.model
Fits an age period cohort model
apc.forecast
Forecasts from age-period-cohort models.
apc.forecast.ac
Forecast for Poisson response model with AC structure.
apc.forecast.ap
Forecast for Poisson response model with AP structure.
apc.forecast.apc
Forecast models with APC structure.
apc.get.design
Create design matrices
apc.get.index
Get indices for mapping data into trapezoid formation
apc.identify
Identification of time effects
apc.plot.data.all
Make all descriptive plots.
apc.plot.data.level
Level plot of data matrix.
apc.plot.data.sparsity
This plot shows heat map of the sparsity of a data matrix.
apc.plot.data.sums
This plot shows sums of data matrix by age, period or cohort.
apc.plot.data.within
This plot shows time series of matrix within age, period or...
apc.plot.fit
Plots of apc estimates
apc.plot.fit.all
Make all fit plots.
apc.plot.fit.pt
Plot probability transform of responses given fitted values
apc.plot.fit.residuals
Level plots of residuals / fitted values / linear predictors
apc.polygon
Add connected line and standard deviation polygons to a plot
data.aids
UK aids data
data.asbestos
Asbestos data
data.Belgian.lung.cancer
Belgian lung cancer data
data.Italian.bladder.cancer
Italian bladder cancer data
data.Japanese.breast.cancer
Japanese breast cancer data
data.loss.BZ
Motor data
data.loss.TA
Motor data
data.loss.VNJ
Motor data
data.RH.mortality
2-sample mortality data.
data.US.prostate.cancer
Japanese breast cancer data
internal
Internal apc Functions
vector.2.triangle
Organise vector as matrix with triangle structure

Files in this package

apc
apc/inst
apc/inst/doc
apc/inst/doc/Vignettes.Rnw
apc/inst/doc/Vignettes.pdf
apc/NAMESPACE
apc/NEWS
apc/R
apc/R/apc_data.R
apc/R/apc_plot_data.R
apc/R/apc_forecast.R
apc/R/apc_data_sets.R
apc/R/apc_identify.R
apc/R/internal.R
apc/R/apc_get_index.R
apc/R/apc_fit.R
apc/R/apc_plot_fit.R
apc/vignettes
apc/vignettes/Vignettes.Rnw
apc/MD5
apc/build
apc/build/vignette.rds
apc/DESCRIPTION
apc/man
apc/man/apc.plot.fit.pt.Rd
apc/man/apc.polygon.Rd
apc/man/data.loss.TA.Rd
apc/man/data.loss.VNJ.Rd
apc/man/apc.plot.fit.Rd
apc/man/internal.Rd
apc/man/apc.forecast.apc.Rd
apc/man/data.asbestos.Rd
apc/man/apc.data.list.Rd
apc/man/apc.plot.data.within.Rd
apc/man/data.Japanese.breast.cancer.Rd
apc/man/data.loss.BZ.Rd
apc/man/apc.plot.data.level.Rd
apc/man/apc.plot.data.all.Rd
apc/man/data.Belgian.lung.cancer.Rd
apc/man/data.aids.Rd
apc/man/data.US.prostate.cancer.Rd
apc/man/data.RH.mortality.Rd
apc/man/apc.forecast.Rd
apc/man/apc_1.3-package.Rd
apc/man/apc.identify.Rd
apc/man/apc.forecast.ac.Rd
apc/man/vector.2.triangle.Rd
apc/man/apc.forecast.ap.Rd
apc/man/apc.data.sums.Rd
apc/man/apc.plot.fit.all.Rd
apc/man/apc.fit.model.Rd
apc/man/data.Italian.bladder.cancer.Rd
apc/man/apc.plot.fit.residuals.Rd
apc/man/apc.get.design.Rd
apc/man/apc.data.list.subset.Rd
apc/man/apc.get.index.Rd
apc/man/apc.plot.data.sums.Rd
apc/man/apc.plot.data.sparsity.Rd