Creating a new series from older series in new workfile page
Posted: Fri Feb 08, 2013 8:36 am
Hello,
I am trying to determine if it is possible to create a new series based on 2 older series, in a separate page within the same workfile.
For example, in one workfile page I have population projection numbers for females by age group, and in the other workfile page I have population projection numbers for males by age group. It looks something like this:
Female Page:
p0to4f
p10to14f
.
.
.
p90plusf
Male Page:
p0to4m
p10to14m
.
.
.
p90plusm
I want to know if I can create a third workfile page called "Total", which references the previous two workfile pages and adds the female and male totals for each age group from them.
For example, "Total" would look like:
Total:
p0to4t = p0to4f + p0to4m
p10to14t = p10to14f + p10to14m
.
.
.
p90plust = p90plusf +p90plusm
If this is infact possible, could you provide some sample code as to the best way to do this?
Thanks!
I am trying to determine if it is possible to create a new series based on 2 older series, in a separate page within the same workfile.
For example, in one workfile page I have population projection numbers for females by age group, and in the other workfile page I have population projection numbers for males by age group. It looks something like this:
Female Page:
p0to4f
p10to14f
.
.
.
p90plusf
Male Page:
p0to4m
p10to14m
.
.
.
p90plusm
I want to know if I can create a third workfile page called "Total", which references the previous two workfile pages and adds the female and male totals for each age group from them.
For example, "Total" would look like:
Total:
p0to4t = p0to4f + p0to4m
p10to14t = p10to14f + p10to14m
.
.
.
p90plust = p90plusf +p90plusm
If this is infact possible, could you provide some sample code as to the best way to do this?
Thanks!