Age-Period-Cohort Analysis

Functions for age-period-cohort analysis. Aggregate 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. Individual-level data should have a row for each individual and columns for each of age, period, and cohort. The statistical model for repeated cross-section is a generalized linear model. The statistical model for panel data is ordinary least squares. The canonical parametrisation of Kuang, Nielsen and Nielsen (2008) is used. Thus, the analysis does not rely on ad hoc identification.


Package: apc Version: 1.3 Date: 2016-11-17

CHANGES in version 1.3 Improvements"od.poisson.response" added, uses "quasipoisson" family"od.poisson.response" added apc.forecast.apc new can take averages or sums can take averages or sums Bugs defaults for time labels fixed option added. dependent variable corrected for gaussian.rates

CHANGES in version 1.2 New functions distribution forecasts for"poisson.response""AC" Improvements Generates row and column names for trapezoid data matrix Warning adjusted Bugs apc.get.index default for time.adjust fixed calculation of coh1 adjusted for "AP" and "PA"

CHANGES in version 1.1.2 Bugs data.loss.VNJ counts fixed

CHANGES in version 1.1.1 New functions level plot of data now plotting only one combination level plot of residuals level plot of linear predictors level plot of fitted.values Documentation Example of generating labels of data matrix To do: Discuss what the labels of the data matrix do Perhaps make labels of data matrix automatic? Improvements Generates row and column names for data matrices when none have been provided. Bugs Legend fixed

CHANGES in version 1.1 New functions vector.2.triangle: For input of reserving triangles recorded in vector form Data format "" then dropped data.loss.BZ: Reserving triangle data.loss.TA: Reserving triangle data.loss.VNJ: Reserving triangle New vignettes Identification NewDesign Improvements now allows for NA observations swap order of age axis for "CL" swap order of age axis for "CL" Rd rewritten apc.identify Rd rewritten Bugs Constant in panel (e) corrected"P" corrected apc.identify Constant for type "detrend" corrected Input check for data.format "CL" and "" corrected

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


2.0.0 by Bent Nielsen, a month ago

Browse source code at

Authors: Zoe Fannon , Bent Nielsen

Documentation:   PDF Manual  

GPL-3 license

Imports lattice, plyr, reshape, plm, survey, lmtest, car, ISLR, AER, ggplot2, ChainLadder

See at CRAN