Skip to content
This package was removed from CRAN on 2026-03-02. Its history is shown below.
Reason: issues were not corrected despite reminders
Details below reflect version 3.0.0, its last release before removal.

Age-Period-Cohort Analysis

0packages depend
–downloads / year
–test coverage
–flavors OK

Overview

About

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.

Changes in 3.0.0

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 checks

CRAN check results are not tracked yet.

Advisories

none known

Documentation

In release 3.0.0
READMENoVignettesNoNEWSYes · 0% structured · mentions 3.0.0Citation fileNoWebsitenot declared in DESCRIPTION
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

Daily download trend is not available in this view yet.
Also on92 r2u20 autocran59 c2d4u

Dependencies

Declared dependencies
9 external dependencies (excludes base and recommended)
Depends (0)
none
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
–indirect (not tracked)

Nothing depends on this yet.

Code & Tests

People & History

People (2)
Author, Maintainer since 1.0 (2014)
Author · added in 2.0.0
Releases (7)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • archivedRemoved from CRAN
    2026-03-02
    issues were not corrected despite reminders
  • 3.0.0
    record
    2025-07-07 · diff ↗
  • unarchivedReturned to CRAN
    2025-06-16
  • 2.0.1
    record
    2025-06-15 · diff ↗
  • archivedRemoved from CRAN
    2025-06-13
    issues were not corrected despite reminders
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 2.0.0
    record
    2020-10-01 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
Show 7 earlier eventsHide 7 earlier events

Package metadata

First published
2014-08-29
Total releases
7 / 12 yrs
License
GPL-3 OSI
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("apc")
Fannon, Z., & Nielsen, B. (n.d.). apc: Age-Period-Cohort Analysis (Version 3.0.0) [Computer software]. Retrieved October 22, 2026, from https://CRAN.R-project.org/package=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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for apc version 3.0.0 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy