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

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. We show that package APCI provides useful visualization and analytical tools for understanding age, period, and cohort trends in various types of outcomes.

Jiahui Xu (The Pennsylvania State University) , Liying Luo (The Pennsylvania State University)
2022-10-11

Supplementary materials

Supplementary materials are available in addition to this article. It can be downloaded at RJ-2022-026.zip

References

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Xu & Luo, "APCI: An R and Stata Package for Visualizing and Analyzing Age-Period-Cohort Data", The R Journal, 2022

BibTeX citation

@article{RJ-2022-026,
  author = {Xu, Jiahui and Luo, Liying},
  title = {APCI: An R and Stata Package for Visualizing and Analyzing Age-Period-Cohort Data},
  journal = {The R Journal},
  year = {2022},
  note = {https://doi.org/10.32614/RJ-2022-026},
  doi = {10.32614/RJ-2022-026},
  volume = {14},
  issue = {2},
  issn = {2073-4859},
  pages = {77-95}
}