This shows a screen shot of what the model will look like after we have built all the structure. The picture on the left is the hierarchy view and on the right is the population calculator. This is for reference as you build the model:
Informants are the sets and elements that are used to classify the data in the variables. They are used as the dimensions on the variables.
Here we learn how to create informants and make the ones necessary for this tutorial, however, they don't have to all be made ahead of time. They can be added as they are thought of or needed.
1. Add Informant gender with the following properties:
3. Copy Informant - Select time, right click copy and paste. The new informant will be called time1, double click on it and adjust it so it has these properties:
5. Copy Informant - Select age, right click copy and paste. The new informant will be called age1, double click on it and adjust it so it has these properties:
From the main hierarchy diagram we will add a new yellow box as the 1st and only calculator in this model.
1. Add a Calculator with the following info:
2. Make connections Connect the root node to the newly created calculator.
Inside the population calculator (double click it from the hierarchy diagram window or the tree view on the left side) we need to add the variables that will be a part of our cohort calculation. Use the image at the beginning to get an idea of where to put the variables as you create them.
1. Add a Variable base population - is the starting population (population in the base year) for the simulation.
2. Add a Variable mortality - The mortality variable is the probability of death. Fields that should stay as default are left out:
3. Add a Variable total period fertility - is the total (sum over all ages) birth propensity. Fields that should stay as default are left out:
4. Add a Variable fertility share - is the share of births at any time by mothers age (15 to 50 years of age).. Fields that should stay as default are left out:
5. Add a Variable gender share - share is the fraction of births at time t that are male. Fields that should stay as default are left out:
6. Add a Variable net immigration - immigration is the net flow of people into the population from(to) external sources(sinks). Fields that should stay as default are left out:
Procedures are where the “math” occurs. Procedures have TOOL code in them that process the inputs appropriately to produce the outputs. For now we will create an empty procedure and hook it up.
1. Add a Procedure with the description set to “Evolve Population”
2. Make connections Connect all the inputs to the new procedure.
1. Add a Variable population - The mortality variable is the probability of death. Fields that should stay as default are left out:
2. Make connections Connect the procedure to the outputs
1. Select File > Save to save the model. (This should be done frequently while working on the model.)