Difference between revisions of "Quick Scenario Analysis with Tree"

From Pardee Wiki
Jump to navigation Jump to search
Line 23: Line 23:
From the Scenario Files menu, you can clear your scenario tree, load Scenario-Load-Files or save your current Scenario-Load-File (.sce).
From the Scenario Files menu, you can clear your scenario tree, load Scenario-Load-Files or save your current Scenario-Load-File (.sce).


After you have finished with [http://www.du.edu/ifs/help/use/scenario/quick/previously.html this topic], you should be able to do/answer the following:
After you have finished with [[Quick_Scenario_Analysis_with_Tree#Previously-Run_Scenarios_and_Previously-Structured_Scenarios|this topic]], you should be able to do/answer the following:


*How do you clear parameter changes from the scenario tree?
*How do you clear parameter changes from the scenario tree?

Revision as of 15:12, 25 July 2017

Overview

What is a Scenario?

This section of the Help Menu will guide you through the task of changing parameters and variables and creating Scenario-Load-Files/Run-Result-Files.

After you have finished with this topic, you should be able to answer/do the following:

  • What is the difference between a Scenario-Load-File and a Run-Result-File?
  • What Previously-Run-Scenarios came installed in your version of IFs?
  • What is a scenario? What is not a scenario?

Introduction to the Scenario Tree

The scenario tree allows you to call up or to mix and match an extensive number of your own interventions and/or a set of stored scenario intervention files. This feature of IFs allows you to change any parameter or initial condition used in the software for any country/region or group that you choose, thus effecting the relationships used to forecast trends. Use the Quick Scenario Analysis with Tree to create Scenario-Load-Files, run these files through IFs in order to create Run-Result-Files that you can use throughout IFs.

Below is the menu:

Scenario Tree Menu

 

Loading Previously-run Scenarios and Previously-Structured Scenarios

From the Scenario Files menu, you can clear your scenario tree, load Scenario-Load-Files or save your current Scenario-Load-File (.sce).

After you have finished with this topic, you should be able to do/answer the following:

  • How do you clear parameter changes from the scenario tree?
  • How do you find scenario files that are not used as Run-Result-Files?
  • What do you have to click on to understand exactly what is being changed by different previously-run scenarios and previously-structured scenarios? 

Adding Scenario Components and Other Previously Structured Scenarios

Another feature of the Quick Scenario Analysis with Tree is the ability to add other scenario components. These previously-structured or previously-run scenarios are helpful ways to look at possible emerging global trends.

After you have finished with this topic, you should be able to do/answer the following:

  • What does the Annotate Scenario option tell you?
  • Search through the scenarios until you find one that takes deals with environmental change.
  • Load a Scenario Component and return to the Scenario Tree.

Finding the Intervention You Want

In order to tailor your Run-Result-File to your needs, you must be able to quickly find the parameter you are looking for.

After you have finished with this topic, you should be able to do/answer the following:

  • What is the organizational logic of the tree?
  • Where would you look if you wanted to find a parameter by typing into a search menu?
  • What is the difference between the Selected Initial Conditions/Relationship Parameters and the other five main categories used in the Scenario Tree?

Exploring and Changing Parameters

Once you have found the parameter you are looking for, say, the Total Fertility Rate Multiplier (Households/Individuals, Demographic/Population, TFRM), a number of new options become available.

After you have finished with this topic, you should be able to do/answer the following:

  • How do you select a parameter to change?
  • What does multiplier mean?
  • What do the select, drivers, explain, view equations and define options all allow you to do?
  • How do you create a Run-Result-File?
  • How do you save the results?
  • How can you display the results of you change in IFs?


Previously-Run Scenarios and Previously-Structured Scenarios

The following description of Previously-Run Scenarios and Previously-Structured will be based on the Quick Scenario Analysis with Tree option found under the Scenario Analysis option on the Main Menu of IFs.

To load Previously-Run Scenarios and Previously-Structured Scenarios, you must start by clicking on the Scenario Files menu option in the Main Menu of Quick Scenario Analysis with Tree.

If you would like to clear any changes to the parameter tree, click on New and decide whether or not you would like to save your current scenario. In order to load a previously-run scenario, click on the Open option and then scroll over to the scenario that you would like to load. Below is an image of some possible previously-run scenarios that can be loaded:

Loading previously-run scenarios

If you choose one of these previously-run scenarios, your parameter tree will change corresponding to the conditions of that file. To know what parameters were changed by the previously-run scenario, load the scenario and then click on Annotate Scenario at the top of the menu. This will access a brief description of the previously-run scenario along with a detailed list of all parameters that were changed.

From the Scenario Files menu, you can also add other previously-run scenarios that are not loaded into IFs, but that are saved in other files. Click on Add from the Scenario Files menu and you will be presented with a menu with a number of different previously-run scenarios that can be loaded into your parameter tree.

Scenario files menu

Click on one of the Scenario-Load-Files and you will be asked whether you want to load the .sce file. Click Yes and the parameter changes will be loaded into your parameter tree. Click on Annotate Scenario to see what parameters were changed.

From the Scenario Files menu, you can also save any of your scenario files. Simply click on Name and Save from the Scenario Files menu and you will be asked to choose where you would like to save your scenario and under what name. Note that these files are saved as .sce. Turning a file into a .run file requires you to run the model.

Adding Scenario Components and Other Previously-Structured Scenarios

From the Main Menu of Quick Scenario Analysis with Tree, click on Add Scenario Components and you will be presented with another menu. When you click on the + arrows on the left, sub-categories open. The image below shows what happens when you click on the + next to the World Integrated Scenario Sets and then the + next to the UNEP Geo sub-category. Any of the below previously-structured scenarios can be loaded into IFs. Simply click on the scenario and then, at the top of the screen, on Load. If you would like to know more about each previously-structured scenario, load the scenario and then click on Annotate Scenario.

Finding Parameters and Variables

The Main Menu of Quick Scenario Analysis with Tree provides you with a tree on the left hand side of the screen. This tree represents all of the parameters and variables used in IFs. One way to find the parameter or variable you would like to change is to understand the general groupings of these categories. The first two options on the tree, Technological Change and Environmental Uncertainties, allow you to shape the intensity of technological growth and the intensity of various environmental trends. The third, fourth and fifth option on the tree, Households/Individuals, Governments/Social-Political Systems and Firms/Businesses, allow you to shape the parameters for the three main global actors. The final two options on the tree, Selected Initial Conditions and Relationship Parameters, allow you to change parameters at the onset of your run-file or the relationships between various parameters.

Another way for you to find the parameters you would like to change is by selecting the "Parameter Search" option on the top right of the toolbar. Clicking on this with bring up a window with a search box. For example, if you are looking to work with the malnourished children parameters, type in "malnourished" and hit enter. This will bring up any parameter with the word "malnourished" in its name. You can also search for the parameter or variable by its abbreviation.

Selecting this option will bring up a new window. From this window you can accomplish the following:

Type Variable Name: In the top box, type in a variable name and click Search. This will bring up any variable/parameter that has your search term in its name/definition.

Load: After you have located a variable/parameter you would like to see displayed, click Load.

Continue: Click here if you would like to return to the previous menu.

Define; Block Diagram; Equations; Linkages

Exploring and Changing Parameters

One of the key features of Quick Scenario Analysis with Tree is the ability to change specific variables and parameters.

The image below shows you what menu becomes available to you if you click on one specific parameter from the tree located on the left of the Main Menu of Quick Scenario Analysis with Tree. You are presented with five options: 1.) select the parameter in order to change it; 2.) click on drivers in order to see what variables are affecting what; 3.) click on explain to see a causal diagram and an explanation of what affects this parameter;4.) click on view equations to see the mathematical equations that are used to determine this number or; 5.) click on define to see a brief definition of what the parameter is.

Changing specific variables and parameters menu

Spend as much time as you would like exploring the drivers, equations, definitions and explanations of various parameters. For this exercise, select TFRM. You will be asked to select a country or group. You can toggle between countries and groups at the top of your program window. For this exercise, choose France.

Because you selected a multiplier, the base-case value is always "1"—the model uses multipliers to easily raise or lower base-case values of many variables, and the multipliers are always "1" in the base case, so that values are unchanged by them. A multiplier can be distinguished from a variable because the ending of most multiplier abbreviations is the letter "m". You could use the Fully Customize option to create any pattern of intervention over time you desire, and at some point you should explore its use. But for now select the High option above the graph and note the change in the figure. This option will phase in a higher fertility for France.

You may also want to more specifically customize the TFRM. This can be accomplished by changing the speed in which your increase or decrease in TFRM takes place (through the slide-down menu on the top right, "Shift Years:"). If you would like more control over your parameters, you can click on the Fully Customize button located below the graph. This will present you with a menu. This will allow you to very specifically change your parameters. Click on the Next Year or Previous Year options to see the numeric representation of how your parameter is being altered from the base-case. You can then choose what year you would like to specifically change, toggle to that year, change the value of that year by clicking on the box next to Desired Value. After you have entered your value, click on the Change/Repeat button to enter it into IFs. This change can then be interpolated for your remaining years by clicking on the Interpolate button. To apply your changes to IFs, click on Exit to Scenario Tree.

Multipliers, however, are not the only form of parameter in IFs. If you select a parameter located under the Selected Initial Conditions category, as the name suggests, you will be able to change initial conditions for certain parameters. For example, the HIV infection rate, initial percentage sub-sub-category (Selected Initial Conditions, Demographic – Mortality) will let you numerically alter the initial percentage of the population infected with HIV for your country or group.

If you choose other parameters, for example, the Carbon Tax (Governments/Socio-Political Systems, Environment), you will be presented with a parameter that numerically begins at zero. This is because there currently is no carbon tax in place. You may change the parameter to take into consideration a future world where carbon taxes are a reality.

Finally, if you choose a parameter in the Relationship Parameters category, you will be able to change the relationship between two different parameters. You may want to change the mathematical relationships in the "black-box".

If you have mistakenly changed a parameter and you would like to remove your alteration, simply click on the parameter change you would like to remove and then click on the Delete Selection option at the top of the menu. You will be asked whether you would really like to delete your parameter change. Click Yes.

Now you have changed a parameter, but it will affect nothing else until you run the model and recalculate all of the variables in it for all of the countries. You have created a Scenario-Load-File (.sce) and, in order to use it more broadly, you need a Run-Result-File (.run). Click on the Run Scenario option from the menu. Your parameter will first be loaded into the working file. You will then be shown the Running Scenario form. You can change the end year or leave it as is. Click on Start Run for IFs to create a new run-file based on your specifications.

After IFs has recomputed the model with your new parameters and saved it as a .run file, you will be presented with a screen that says, "Run Successful – Click to Continue." The run-file labeled "Working File" is now essentially your personalized scenario. Use the techniques you learned in the last section to compare the working file with the base case. But your intervention will have changed much else. Look, for instance, at Gross Domestic Product (GDP) of your country before and after the intervention and at GDP per capita (GDPPC). If your country or grouping was fairly large, you will see changes in many variables elsewhere around the world.

Now return to the Scenario Tree form and select the Scenario Files option, Name and Save sub-option. Give your scenario a name and the parameter intervention (but not the full results after your run) can be saved for you when you return to IFs later. If you are using the stand-alone (non-Web) version of IFs, the Scenario Analysis/File Management/Save option sequence also allows you to save all the computed results of the model run.

Parameter Types

Parameters are numbers that determine relationships among variables in the equations of IFs. You often set parameters to a single value across time and they therefore do not always "vary" as do "real" variables. Many parameters are "policy handles." More generally, parameters can actually be thought of as a special type of variable, the value of which you set in order to determine the behavior of the model.

Multipliers. They have a normal value of 1, and to increase whatever they multiply (say agricultural yield) by 50 percent you increase the parameter to 1.5. To decrease it by 25 percent you would decrease the multiplier parameter to 0.75. You will almost always spread such changes out over time, keeping the multiplier's value at 1 in the base year and gradually increasing or decreasing it over a period of years. You should almost never change a multiplier in the initial year because the model is set up to provide accurate results for that year and will compensate for and thereby offset your change. For instance, if you set a multiplier on food production equal to 1.5 for the first year and all years thereafter, you might find that the results were no different than in the base case. You must instead gradually introduce your change, preserving the multiplier value of "1" in the initial year. Examples of multipliers include: AGDEMM, ENPM, FREEDOMM, MORTM, PROTECM, QEM, RDM, RESORM, TFRM, and YLM. Note that multipliers typically end with the letter "M".

Additive Factors. Most have a normal value of 0, thereby leaving that to which you add them (it could be exports) unchanged. How much you would add to achieve a 50 percent increase might depend on the amount to which you added it. Most additive parameters are, however, applied multiplicatively to the quantity they modify (that is, 1 plus the parameter is multiplied times the quantity), thereby scaling the parameter. In that case, the base or normal value of the parameter will be zero, but one can achieve a 50 percent increase in the quantity modified with a value of 0.5 and a 50 percent decrease with -0.5. You will very seldom want to change the base year value of additive parameters because it will either incorrectly change model results in the base year or, more likely, will result in model compensation to protect initial model results. An example of an additive parameter is: XSHIFT. Although earlier versions of IFs used additive factors and multipliers with comparable frequency, most additive factors have been replaced by multipliers to standardize most parameter change.

Exponents. For instance, many "elasticities" raise something to a power. For these parameters the "normal value" will vary greatly, but they will most often fall between -2 and 2, with many clustering around 0. In most cases it will make sense to change these parameters for all years including the first - generally the model will not use them in the first year and they will affect results only in subsequent years. Elasticities in IFs include: ELASAC, ELASS, ENGEL, and PRODME.

Reactivities. These are factors that relate growth in one process to growth in another. Although many will range between -2 and 2 (with 0 eliminating linkage of the processes), some have very large values. They are very much like elasticities, but the formulations that use them do not have exponential form. Reactivities include: CDMF, CPOWDF, CWARF, NWARF, and REAC.

Growth Rates. It is possible to force some processes to grow at specified rates. More commonly, the specified rates serve as targets and the dynamics of the model often shift actual growth rates somewhat, necessitating experimentation with targets to achieve a desired growth. Examples include: EPRODR and TGRLD.

Allocating coefficients. Coefficients are often used in multiplicative relationships with other variables, but many such coefficients are not what were earlier called multipliers (with a base value of 1). Instead they can serve an allocating role. For instance, eyou can use parameters to allocate governmental spending to health, education, and the military. Allocating coefficients frequently have values between 0 and 1. Again, you should generally not change these parameters in the initial year because the model will often compensate for changed values in the first year. Instead, change them by series over time. Allocating coefficients in IFs include: AIDLP, AIDV, CARABR, DRCPOW, DRNPOW, GK, LAPOPR, NMILF, REPAYR, and RFSSH.

Transforming coefficients. Some coefficients transform units of variables or link variables in other ways. Examples in IFs are: CARFUEL1, CARFUEL2, CARFUEL3, and FRQK.

Variables. This category should technically not be called parameters at all. They could and would be computed endogenously, if the model included the appropriate theoretical structure. They generally do not determine the interaction of other variables. Such variables include: AQUACUL and OFSCTH.

Initial conditions. Again, these are not strictly parameters, but rather first-year values for variables subsequently computed by the model. Although many initial conditions, like the population (POP) of the U.S., are sufficiently well-known that they should not be changed by model users, others, like the ultimate availability of oil and gas resources are only reasonable guesses. Thus users should feel free to change some initial conditions based on new data or even simply to test the implications. This category includes a great many variables, such as: LD and RESOR.

Switches. These parameters turn something on or off. They generally take on values of 1 (on) or 0 (off), but can have additional settings. For instance, some switches not only turn on some process, but set a key value within it (like the level of energy exports). Switches are most often on or off for the entire run, but it sometimes makes sense to "throw a switch" in the middle of a run. Switches allow you to fundamentally alter the structure of a model. Switches include: ACTREAON, AGON, ALLY, ENON, ENTL, ENPRIX, and SQUEEZ.

The focus here is on exogenous parameters only - on those elements of the model that you can change. Many computed variables are used in the computation of other variables in the same way that parameters are, as multipliers, additive factors, coefficients, and so on. You can display those, but unlike true parameters, you cannot change them.

Customization of Parameters

Access to time-variant parameter specification (the Change Values form) can be from either guided scenario analysis or self-managed scenario analysis.

Although most modeling discussions portray parameters as if they should be fixed over time, that is a very limiting conceptualization of them. In fact, it is normally better to specify parameters so that a particular phenomenon (e.g., a change in values concerning fertility, a policy-influenced movement towards higher savings rates, or a development of renewable energy technologies) phases in over time.

Alternative Ways to Use the Change Values Form:

Use the Slider Bar to Change a Parameter for All Years. You move the slider to the left or right to change the parameter value and then touch the Register Change button to actually change the parameter.

Specify a Desired Value for One or More Years. You specify a desired numerical value, indicate the number of years you wish to repeat that value (one or more) and then touch the Change/Repeat button.

Interpolate to a Desired Value over Several Years. You specify a desired value, indicate the number of years over which you wish to interpolate to that value, and then touch the Interpolate button.

Move Forward or Backward Across Years. You touch the Previous Year or the Next Year buttons to move across time without changing parameter values.

Cancel all Changes. You touch the Cancel all Changes button to revert to the parameter values before you began making changes.

Example. Try increasing the value of agricultural yields (YL) in Mexico by raising the value of a parameter called "ylm" from 1.0 in the initial year to 1.3 in 2020. That would build in an assumption of a 30% increase in the productivity of African agriculture, relative to the base case. To do this, select Scenario Analysis from the Main Menu and the Self-Managed Scenario Analysis sub-option. On the Self-Managed Scenario Analysis form select the Change option and Full Set sub-option. Specify ylm and choose Mexico as the country/region. Success in doing that will take you automatically to the Change Values (time-variant parameter specification) form. Designate 1.3 as the desired value to which you will interpolate (that is, move gradually over time) and indicate the number of years for the interpolation (say 20). Select the interpolate action option to carry it out. Then identify 1.3 as the desired value you wish to repeat (that should already be done for you), 100 or some other large number as the years to repeat, and select the change/repeat button. Exit and select the Display option. Select ylm for display, and look at it in a table or graph to make sure you have changed this parameter as you desired. It is often a good idea to check the success of a parameter change before running the model.

Understanding Model Computations

It is critical that there be as much transparency as possible with respect to computations that underlie the variables chosen for display. In a large, integrated model, achieving such transparency is not simple. You are invited to look at the very extensive Help section called "Understanding the Model: ‘Opening the Black Box’" for extensive documentation via flow charts, equations, and computer code.

While working with display of variables, however, there are several ways in which to drill down for explanations of what lies behind their computations. After you have added variable or parameter changes to the Quick Scenario with Tree you can learn more about how a parameter or variable is generated by clicking on it and exploring the options.