Cohort models age monitoring
Posted: Thu Jun 29, 2017 3:54 pm
I wanted to implement a feature in a population cohort model where age classes can be monitored (e.g. 0-24, 25-34, etc.). For this reason I referred to the sample model "CohortPop+ageMonitorAlt" and used the construction presented there for "childbearing age". So an attribute "Age range 0 to 24" has been created which should receive the information about the age of the cohort. Together with the action "update age range", this attribute can be used to create a new subcollection (age range 0 to 24). So far it works fine.
However I tried to provide this attribute with several items (age 0 to 24, 25 to 34, etc.). This does not work. One solution would be to create a number of attributes for each age class... but this is not very attractive. Is there a better solution? I also tried to use an auxiliary with an if then else functionality, but here I cannot use/convert double to feed the attribute.
However I tried to provide this attribute with several items (age 0 to 24, 25 to 34, etc.). This does not work. One solution would be to create a number of attributes for each age class... but this is not very attractive. Is there a better solution? I also tried to use an auxiliary with an if then else functionality, but here I cannot use/convert double to feed the attribute.