APCI: An R and Stata Package for Visualizing and Analyzing Age-Period-Cohort Data

Jiahui Xu, Liying Luo

Research output: Contribution to journalArticlepeer-review

3 Scopus citations


Social scientists have frequently attempted to assess the relative contribution of age, period, and cohort variables to the overall trend in an outcome. We develop an R package APCI (and Stata command apci) to implement the age-period-cohort-interaction (APC-I) model for estimating and testing age, period, and cohort patterns in various types of outcomes for pooled cross-sectional data and multi-cohort panel data. Package APCI also provides a set of functions for visualizing the data and modeling results. We demonstrate the usage of package APCI with empirical data from the Current Population Survey.

Original languageEnglish (US)
Pages (from-to)77-95
Number of pages19
JournalR Journal
Issue number2
StatePublished - 2022

All Science Journal Classification (ASJC) codes

  • Statistics and Probability
  • Numerical Analysis
  • Statistics, Probability and Uncertainty

Cite this