Xu Jiahui, Luo Liying
The Pennsylvania State University, 917 Oswald Tower University Park, PA 16802, United States.
The Pennsylvania State University, 202 Oswald Tower University Park, PA 16802, United States.
R J. 2022 Jun;14(2):77-95. doi: 10.32614/rj-2022-026. Epub 2022 Oct 10.
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 (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 also provides a set of functions for visualizing the data and modeling results. We demonstrate the usage of package with empirical data from the Current Population Survey. We show that package provides useful visualization and analytical tools for understanding age, period, and cohort trends in various types of outcomes.
社会科学家经常试图评估年龄、时期和队列变量对某一结果总体趋势的相对贡献。我们开发了一个R包(以及Stata命令apci)来实现年龄-时期-队列交互(APC-I)模型,以估计和检验汇总横截面数据和多队列面板数据中各类结果的年龄、时期和队列模式。该包还提供了一组用于可视化数据和建模结果的函数。我们用当前人口调查的实证数据演示了该包的用法。我们表明,该包为理解各类结果中的年龄、时期和队列趋势提供了有用的可视化和分析工具。