Dear Statalists,
I would like to perform some easy arithmetic operations. I have a panel dataset. In the dataset I have a cohort variable, called cohort, which contains people born from 1950-1954, people 1955-1959 and so on. I have another variable, yrcategory, which expresses the age bracket for every cohort. I also have another variable expressing the income of the cohort for every age bracket.
I would like to just sum the incomes of a cohort for a number of age brackets, and then subtract the incomes for a different cohort for the same age brackets.
Can anybody help me?
Please let me know if I have not expressed myself clearly
I would like to perform some easy arithmetic operations. I have a panel dataset. In the dataset I have a cohort variable, called cohort, which contains people born from 1950-1954, people 1955-1959 and so on. I have another variable, yrcategory, which expresses the age bracket for every cohort. I also have another variable expressing the income of the cohort for every age bracket.
I would like to just sum the incomes of a cohort for a number of age brackets, and then subtract the incomes for a different cohort for the same age brackets.
Can anybody help me?
Please let me know if I have not expressed myself clearly
Comment