powered by
Compute cohort index from age and period index
coh(agegroup, period, noa, periods_per_agegroup)
cohort index
age group index
period index
number of age groups in total
periods per age group
# last agegroup in first period equals first cohort coh(10, 1, 10, 5) # first agegroup in last period equals last cohort coh(1, 8, 10, 5)
Run the code above in your browser using DataLab