Age-Period-Cohort Analysis
Overview
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. 2-sample analysis is possible. Mixed frequency data are possible. 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) DOI:10.1093/biomet/asn026 is used. Thus, the analysis does not rely on ad hoc identification.
New functions
apc.identify.mixed function for mixed frequency data
apc.fit.model.2s
apc.fit.table.2s
apc.plot.fit.2s functions for 2-sample analysis
data.Swiss.suicides data for illustrating 2-sample analysis
Improvements
apc.data.list to accommodate mixed frequency data
apc.fit.model
apc.forecast.ac
apc.forecast.ap
apc.forecast.apc
Show all changes in 3.0.0Hide the rest of the changes in 3.0.0
apc.get.design
apc.hypothesis
apc.identify
apc.indiv.compare.direct
apc.indiv.est.model
apc.indiv.model.table
apc.plot.data.level
apc.plot.data.sums
apc.plot.data.within
apc.plot.fit
apc.plot.fit.residuals
From inst/NEWS in the release
Install
Health
CRAN check results are not tracked yet.
Documentation
- Help pages
- 44includes a package overview page
- Examples that run
- 88%30 run in a plain check · 4 hold no code
- Exported functions with examples
- 77%
- Documented parameters
- not tracked
- Return-value docs
- not tracked
- Help pages citing references
- 75%
Downloads
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- archivedRemoved from CRAN2026-03-02issues were not corrected despite reminders
- 3.0.02025-07-07 · diff ↗
- unarchivedReturned to CRAN2025-06-16
- 2.0.12025-06-15 · diff ↗
- archivedRemoved from CRAN2025-06-13issues were not corrected despite reminders
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 2.0.02020-10-01 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2014-08-29
- Total releases
- 7 / 12 yrs
- License
- GPL-3 OSI
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("apc")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.