Treeage Pro 2004 User'S Manual
Treeage Pro 2004 User'S Manual
The License Agreement sets forth a warranty which is expressly limited to the
media on which the Software is provided and also contains a limitation on liability.
Please do not use the Software in any way without first reading, and concluding that
you are willing to be bound by the terms of, the License Agreement.
Table of Contents v
CHAPTER 7: TREE CALCULATION METHODS AND PREFERENCES .......................................95
CHANGING WHAT THE TREE CALCULATES...........................................................................................................96
Numeric formatting............................................................................................................................................ 96
Optimal path..........................................................................................................................................................97
Payoff sets ..............................................................................................................................................................97
Calculation methods.......................................................................................................................................... 98
CHANGING WHAT ROLL BACK CALCULATES ........................................................................................................99
Maximin roll back............................................................................................................................................. 100
CALCULATIONS USING MULTIPLE ATTRIBUTES.................................................................................................... 101
How benefit-cost calculations are performed......................................................................................... 102
How weighted multi-attribute calculations are performed ................................................................ 102
Table of Contents ix
PART IV: MORE TREE-BUILDING TOOLS AND OPTIONS ......................................................... 241
CHAPTER 25: TREAGE PRO INTERACTIVE AND TREEAGE PRO RUN-TIME..................... 309
DEVELOPING TREEAGE PRO INTERACTIVE™ APPLICATIONS............................................................................... 310
Technical information.......................................................................................................................................311
CREATING RUN-TIME CUSTOM INTERFACES ...................................................................................................... 312
Creating a Basic Custom Interface ...............................................................................................................314
Testing the Basic Custom Interface..............................................................................................................318
Creating an Extended Custom Interface ....................................................................................................318
Protecting your intellectual property ......................................................................................................... 321
Table of Contents xi
PART V: WORKING WITH INFLUENCE DIAGRAMS .................................................................... 323
Introduction
Welcome to Welcome to all new users of TreeAge Pro 2004!
TreeAge ProTM 2004 TreeAge Pro 2004, which replaces our earlier DATA™ and DATA
Pro™ software, has been designed to implement the techniques of deci-
sion analysis in an intuitive and easy-to-use manner. It transforms deci-
sion analysis from a potentially tedious exercise into an easily applied
and highly visual means of (1) organizing the decision making process,
(2) analyzing the problem at hand, and (3) communicating both the
structure of the problem and the basis for the decision reached.
If you are experienced in decision analysis, you will find TreeAge Pro
2004 easy to use following only a cursory review of the software com-
mands, although the richness of the program will become more apparent
with further study of the manual. If you have no, or only limited, experi-
ence with decision analysis, TreeAge Pro 2004 will make it much easier
to learn. See Chapter 1 for a basic decision analysis primer.
Optional modules
Optional modules TreeAge Pro 2004 includes both decision tree and influence diagram
functionality, Monte Carlo simulation, multi-way sensitivity analy-
sis, and much more. Additional features may be added in the form of
two optional software modules: a Healthcare module and an Excel™
module.
Introduction 1
This manual focuses on the features of the core TreeAge Pro software.
Separate manuals for the optional software modules are available for
free download, in Adobe® Acrobat™ PDF format, at the TreeAge Soft-
ware web site:
http://www.treeage.com/treeagepro/manuals.htm
File compatibility
File compatibility TreeAge Pro 2004 can open trees, influence diagrams, graphs, and other
files created by DATA Pro or DATA. However, unless your TreeAge Pro
2004 software includes the Healthcare module, access to Markov and
cost-effectiveness models will be limited to viewing the file. The same
limitation will apply in the case of TreeAge Pro 2004 files which utilize
features specific to the Healthcare module.
TreeAge Pro trees, influence diagrams, and graphs are not directly back-
ward compatible with any versions of DATA or DATA Pro. However, an
Export command under the File menu can be used to export trees and
influence diagrams in a format compatible with DATA Pro, DATA 4.0,
or DATA 3.5. Certain features not present in the earlier software will be
lost in the conversion and, in any event, care should be taken following
conversion to confirm the accuracy of calculations.
Note:
If you are familiar with our DATA software, please refer to Appendix A in this
manual for a description of new features and other changes in TreeAge Pro
2004. Refer to the documentation for the Healthcare module for an additional
list of changes specific to Markov and cost-effectiveness models.
Introduction 3
Organization of this manual
Organization of this This manual is for use with TreeAge Pro 2004. It includes basic tutori-
manual als for building and analyzing decision trees and influence diagrams in
TreeAge Pro, and provides a complete reference to the intermediate and
advanced functionality in the core TreeAge Pro software. Additional
reference information is available under TreeAge Pro’s Help menu.
Part III (Chapters 13–18) — This crucial section of the manual covers
a central feature of TreeAge Pro, sensitivity analysis. Defining uncertain
parameters using variables is described in detail, as are tornado dia-
grams, multi-way sensitivity analysis, and probabilistic sensitivity anal-
ysis using Monte Carlo simulation and distributions. The last chapter in
the section describes the storage and reuse of analysis abstracts.
The chapters in Part I provide background on decision analysis, decision trees, and
influence diagrams. They include step-by-step tutorials designed to help new users
learn how to use TreeAge Pro 2004 to build, analyze, and present decision trees and
influence diagrams.
In this part:
This chapter introduces the core concepts and methods of decision analysis
as implemented in TreeAge Pro 2004.
In this chapter:
• Decision trees............................................................................ 11
• Influence diagrams..................................................................... 15
• Further reading.......................................................................... 17
Modeling
Using decision analysis, a complex problem can be disaggregated into
smaller problems and elements, which can be more readily compre-
hended. These components are then employed in building a model of
the problem’s essential elements.
Note:
Assigning 30%/40%/30% probabilities to the outcomes of the risky investment
in the example follows a standard method for representing a probability dis-
tribution of outcomes based on expert opinion. This particular type of discrete
distribution is referred to as a Swanson’s mean, or 10/50/90, distribution.
The three outcomes represent the 10th, 50th, and 90th percentile values
elicited from the expert. A similar approach uses 25%/50%/25% probabilities
for the three outcomes.
Decision trees
Decision trees In building a decision tree, there are some basic guidelines to be con-
sidered:
• In the tree, events are ordered from left to right. The
decision tree should follow a rough time ordering of
events, as outcomes become known to the decision
maker. Time ordering is only critical, however, when
a decision is made prior to knowing the outcome of a
different event or when the probabilities of one event are
conditioned on another.
• Different kinds of events are distinguished using shapes
called “nodes.” A decision node (square) indicates a
choice facing the decision maker. A chance node (circle)
represents an event which has multiple possible outcomes
and is not under the decision maker’s control. A terminal
node (triangle) denotes the endpoint of a scenario.
Tree structure
The first event, the decision between the
available investment options, is represented
by a square, decision node. This is the root
node of the tree. It is labeled using a branch
line to its left.
The two branches “sprouted” from the right side of the decision node
represent the alternatives under consideration: (1) Risky investment and
(2) CD paying 5%. Since there is no risk associated with investment
in the CD, this action really represents a final outcome, and a terminal
node is drawn at the end of its branch. For the risky equity investment,
however, we decided that there were three possible outcomes, so Risky
investment is drawn as a chance node.
Payoffs are assigned at every terminal node, and appear to the right of
the node.
Now let’s apply these rules to the investment tree. The payoffs of the
three terminal nodes are displayed. Working backward, starting from
the topmost terminal nodes, you can find the expected value (EV) of the
Risky investment chance node as follows:
When a tree is rolled (or folded) back, the expected value of each
node is drawn in a box to the right of the node. At decision nodes, the
branches of non-optimal alternatives are identified by two slash marks.
In our simple model, the only unknown variable to consider is the fluc-
tuation of the market. Thus, a circular (or oval) chance node is added
to the influence diagram to represent the market risk, and an arc drawn
from the chance node to the value node.
Tip:
Influence diagrams can be very helpful in understanding and presenting
complex decisions. Quantitative analysis in TreeAge Pro, however, requires
an influence diagram to be converted into a decision tree. If you plan to ana-
lyze influence diagrams, read the sections on decision trees in this chapter,
and both Chapters 2 and 3.
Further reading
Further reading For additional background on decision analysis in general, here are
some suggested references:
http://www.treeage.com/resources.htm
CHAPTER 2
In this chapter:
• Constructing a tree..................................................................... 20
• What’s next?............................................................................ 29
Constructing a tree
Constructing a tree The tutorial in this chapter is based on the investment decision problem
described in Chapter 1, on pg. 11.
Tutorial Notes:
• A word in boldface followed by the > symbol indicates a menu selection.
For example, Options > Add Branches refers to the Options menu's Add
Branches command. Other words in boldface are button names.
• Words to be typed by you as part of the tutorial are shown in Courier
typeface (e.g., "Branch X").
• Some procedures explained in this chapter are not required steps for build-
c
ing the investment decision tree. Lines starting with the character are
required tutorial steps; other instructions start with the s character.
s Click directly above the line to the left of the node. (When
positioned correctly, the pointer should change to a text
cursor.)
c When you are done, click outside the node to deselect it.
Tip:
Rather than entering extensive comments in the node itself, it is often better
to use note boxes or node comments (see Chapter 10).
If the text appears too small on the screen, one way to fix the problem is
by zooming in.
s Choose Display > Zoom In (or Zoom Out). Or, use Display >
Zoom… to specify an exact magnification factor.
® To add branches:
Tip:
Most tree-building commands are found under the Options menu (with the
exception of generic commands like Undo and Cut/Copy/Paste). Also, many
commonly-used commands can be found grouped together under the quick
menu, accessed by right-clicking on a node.
Deleting branches
If you add an extra branch by mistake (for example, if you double-click
on a node when trying to select it, instead of just clicking), there are a
couple of ways to fix the tree.
Or, if you do not want to undo other actions performed after mistakenly
adding the extra branch, you can select a branch and delete it.
® To delete a branch:
Tip:
If you delete a branch that is a parent (i.e., that has branches), its subtree
(i.e., its children as well as their descendants) will not be deleted; instead
the children and their descendants will move up one generation.
s Hold down the CONTROL key and press the HOME key.
To move the selection from the current node to an adjacent node, use the
arrow keys. Try using the arrow keys to select the top branch.
Try using the other arrow keys, to get a feel for this technique.
Tip:
To move the text cursor left or right within node text, hold down the CTRL
key while pressing the arrow keys. Toggling the Navigation tool bar button
will reverse this behavior (i.e., using the arrow keys alone will move within
node text, while using the arrow keys with the CTRL key will move the node
selection). See Appendix B for details.
Now, use the actions you have learned to complete the tree structure.
c Select the top branch of the decision node, and type in its
name, Risky investment.
Now that all necessary branches have been added, it is a good time to
save your work.
Models you create in TreeAge Pro are documents. You save, open, and
close trees and other documents in TreeAge Pro the same way you do in
other programs — using the File menu commands.
c Choose File > Save…, or click the icon on the tool bar.
c In the Save As dialog, select or create an appropriate direc-
tory, type Stock Tree for the file name, and press ENTER or
click Save.
You should save your work periodically. Rather than saving your tree
files into the TreeAge Pro directory, it is a good idea to create a subdi-
rectory for tree files in an existing documents or projects directory on
your computer or a network shared drive. This is particularly important
if you do not perform regular backups of your computer’s entire hard
drive, but only of directories where documents are usually stored.
Tip:
The keyboard can be used to select options in dialogs. The hotkey for a
particular option is indicated by underlining that letter in the option’s label.
For example, pressing the ALT + t keys while the Change Node Type dialog
is displayed will select the Terminal option.
Use the Enter Payoff window to assign the numeric payoff for the Large
increase terminal node.
® To assign a payoff:
c In the Enter Payoff window for Large increase, type 500 for
Payoff 1, and press ENTER or click OK.
The numeric payoff 500 should be displayed to the right of the new ter-
minal node.
If you find that you have made a mistake in entering payoffs, you can
open the Enter Payoff window again.
Notes on payoffs:
• The investment decision tree, and most other examples in this manual,
require only Payoff 1. However, each tree can use up to nine different
payoffs, or attributes; see Chapter 7 for details. See the Healthcare module
documentation for details on setting up cost-effectiveness trees.
• Chapter 11 and Appendix C describe how to customize the appearance
of payoffs and other visual elements of trees in TreeAge Pro.
• The tutorial in Chapter 19 will show you how to use formulas in assigning
complex payoffs.
Entering probabilities
Entering probabilities Now, the probabilities must be entered for the three possible outcomes
of Risky investment.
® To enter probabilities:
c Press ENTER or click OK to apply any changes, and save the tree
again now, by choosing File > Save.
Changes to these preferences will affect this tree only. Each tree can
have its own set of preferences. See Chapter 5 and Appendix C for more
details on numeric formatting and other tree preferences.
If TreeAge Pro reports an error message, read it to find out what needs
to be fixed. Possible problems include endpoints that are not terminal
nodes, and missing probability or payoff values.
If roll back works, but reports different results than those shown above,
you may need to fix a probability or payoff that was entered incorrectly.
Or, perhaps you have specified different numeric formatting.
c Choosing Analysis > Roll Back again will turn off roll back,
and allow you to make changes to your tree.
The tutorial in the next chapter shows how to build the same investment
model, but starting from an influence diagram.
You might take some time now to review the topics in these chapters,
especially those in Part II, “Working with Decision Trees.” As you work
with the software and have questions about functionality, bear in mind
that the table of contents at the front of the manual and the index at the
rear were designed to simplify finding answers.
CHAPTER 3
If you plan to use TreeAge Pro to build only decision trees, you can
proceed to Chapter 4.
In this chapter:
Tutorial Notes:
• A word in boldface followed by the > symbol is used to indicate a menu
selection. For example, Diagram > Change Node Type... refers to the
Diagram menu's Change Node Type... command.
• Words to be typed are shown in Courier typeface (e.g., "Node X").
• Some procedures covered in this chapter are not required steps for build-
ing the investment influence diagram. Software instructions starting with
the c character are required tutorial steps; other instructions start with
the s character.
® To close a file:
s If you made any changes to the tree which you have not saved,
TreeAge Pro will prompt you to do so.
Now, to get started, you will need a new influence diagram document.
c Click on the tool bar button that represents the kind of node
you want — in this case, the red diamond, for a value node.
You can tell the node is no longer selected because its outline is now
thin. Now, reselect the node so that you can enter a text label.
s Click in the white space inside the node. (When positioned cor-
rectly, the mouse pointer should change to a text cursor.)
When a node is selected in this fashion, a blinking text cursor and text
box will appear inside the node.
There are three ways to create an arc between two nodes using the
mouse. One easy method uses the arc button on the tool bar.
® To draw an arc:
c Click on the arc button on the tool bar. Now, when you move
the mouse pointer over a node, TreeAge Pro will highlight that
node.
c Using the mouse, click and drag from the influencing node to
the conditioned node — in this case, click on How should I
invest… and drag to Profit.
Tip:
Another way to create an arc is
to right-click on the influencing
node, choose Draw New Arc from
c Release the mouse button to create the arc.
the quick menu, and then click on You should now have an arc pointing from the decision node to the
the conditioned node to complete
the arc. Or, CONTROL-click and drag value node. The square “handle” on the arc shows that it is selected. If
from the influencing node to the your have made any mistakes, skip to the section on editing nodes and
conditioned node. arcs.
c Create a chance node (green circle), and for the node name
enter Market activity.
Now that all nodes and arcs have been added, take a moment to save
your document. You save, open, and close influence diagrams and other
documents in TreeAge Pro the same way you do in other programs
— using the File menu commands.
c Choose File > Save, or click the icon on the tool bar.
c In the Save As dialog, select or create an appropriate directory,
type Investment Decision for the file name, and press
ENTER or click Save.
TreeAge Pro does not perform auto-saves, so save your work periodi-
cally.
s Click on the correct node type and press ENTER or click OK.
® To move a node:
s Click on (or just inside) the node’s outline, and drag it to a new
location.
s Click on, or very close to, the arc — either the line or its arrow.
A selected arc will display a square handle.
® To curve an arc:
s Click and drag the arc’s square handle to create the curve.
Release the mouse button when you have the desired curve.
If you draw an arc between the wrong two nodes, you can remove it.
s Select the arc and choose Edit > Clear Arc. Or, right-click on
the arc and choose Clear Arc from the quick menu.
If you draw an arc in the wrong direction, you also have the option of
flipping the arc (instead of deleting it).
® To flip an arc:
s Select the item to rename in the list, retype the name in the
Name text edit box, and click Rename.
s Select the item to remove from the list, and click the Delete
button.
s Select the item to move up or down in the list order, and click
the Move Up or Move Down button.
Each node in the mini-tree that requires your attention will have a red
diamond symbol. The active node will have its red diamond filled in
and its name in boldface.
Entering values
Since there are only a small number of possible scenarios in the invest-
ment example, the easiest approach for this model is to enter the
numeric value (i.e., profit or loss) for each possible scenario, rather than
creating a formula to calculate payoffs. Although the manual refers to
these values generically as payoffs, they can be costs or any other attri-
bute.
The Arc Data dialog shows numerous options. First, turn your attention
to the lower section, labeled Influence.
c Choose File > Convert to Tree, or press the Convert tool bar
button.
To see if the tree is complete, try calculating the model using roll back,
described in Chapter 1.
Notes on conversion
• Your converted tree will probably have some extra
information initially — these are node variables. See
Chapter 26 (and Chapter 13).
• Incomplete influence diagrams may still convert without
error. For example, you may skip entering values and
probabilities in the influence diagram to see the full tree
structure.
IMPORTANT!
There is no "hot-link" between a converted tree and the influence diagram used to create it. Changes made to
the tree document will not be included in the influence diagram. To keep your influence diagram current, make
structural and value changes in the influence diagram and convert it into a new tree when you need to do
calculations.
What’s next?
What's next? This completes the basic influence diagram tutorial. You are now ready
to use TreeAge Pro to build your own models.
You might take some time now to review the topics in these chapters.
As you work with the software and have questions about functionality,
use this manual’s table of contents or index, as well as TreeAge Pro’s
Help menu, to find answers.
To learn more about the use of influence diagrams, refer to one of the
general decision analysis texts listed at the end of Chapter 1 (for exam-
ple, Decision Making and Forecasting or Making Hard Decisions).
CHAPTER 4
In this chapter:
• Printing .................................................................................... 46
• Exporting graphics...................................................................... 48
A small model, like the Stock Tree or influence diagram, easily prints on
a single page. A large tree may not initially print on a single page, but
you may be able to get it to fit by shrinking it, or by changing the page
orientation to landscape. As with other Windows applications, before
printing you can select a different printer, or change the selected print-
er’s settings by selecting File > Page Setup….
The picture will be aligned to the upper left corner of the preview area.
A half-filled red square should be visible at the top left of an invis-
ible rectangle surrounding the picture, and a similar black square at the
bottom right. These squares enable you to move and resize the picture
within the printout.
s Click and drag the red square in the upper left corner of the
picture.
s Click and drag the black square. The growing (or shrinking)
picture-rectangle retains its proportions, to prevent distortion
of the picture.
Tip:
The square print preview handles may not be visible if the file's printing
preferences specify that the image should be automatically centered on a
single page. In Appendix C, see “Printing preferences” for further instructions
on turning off this setting.
s Enter the desired text in the Header field and/or the Footer
field. Add special text (page number, date, file name, etc.)
using the Insert pop-up menu.
Headers and footers that you setup will appear in the print preview.
Headers and footers can also be set up using the Preferences dialog, as
described in Appendix C.
s Choose Edit > Preferences (or press F11) and select the Print-
ing category.
Exporting pictures
Copying and exporting To include a picture of a tree or other TreeAge Pro document in another
pictures to other programs program, such as Microsoft® Word™ or PowerPoint™, you can either
export a picture to a graphics file, or copy it over the clipboard. Note the
following differences between the two methods:
To copy a picture of a tree to the clipboard, you must first select it.
s Hold down the CONTROL key and click on the root node. Or,
select the node and choose Options > Select Subtree.
s In the Export Format dialog, pick the desired format for the
saved graphics file: metafile, JPEG, or bitmap.
s If you specify the JPEG format, you will need to specify the
quality of the image — if file size is not an issue, specify the
highest quality setting, 100.
When a .TRB file is opened, the tree is already rolled back. The values
and structure of the tree are fixed, but display settings can be changed.
s While the tree is still rolled back, choose File > Export.
s Save your .TRB file using the standard Save As dialog box
which appears.
Tip:
See Chapter 25 for information on using TreeAge Pro Interactive or TreeAge
Pro Run-time to distribute TreeAge Pro decision trees, which allows non-
TreeAge users to access your model, change selected values, and perform
selected analyses.
In this part:
Sensitivity analysis and Monte Carlo simulation are covered in Part III
of the manual.
In this chapter:
• Expected values......................................................................... 57
• Rankings .................................................................................. 60
• Standard deviation..................................................................... 61
• Probability distributions............................................................... 62
• Miscellaneous analyses............................................................... 75
Each tree (and graph) has its own set of numeric formatting preferences.
s Choose Edit > Numeric Formatting, or press the F10 key. (Or,
click the Numeric Format… button in the Calculation Method
preferences category.)
In a tree, the numeric formatting dialog shows the label “For Payoff X,”
circled in the above picture, indicating the currently active payoff (#1–9,
as specified in the Calculation Method preferences).
Under Probabilities, you can specify the number of decimal places (0-9)
to use when displaying calculated probabilities. (In some reports, very
small values may display using scientific notation.)
s Select a node.
Using the Expected Value command with multiple nodes selected will
report the sum of the nodes’ expected values.
Note:
Chapter 1, “Decision Analysis Primer,” includes a detailed description of the
basic concepts used in calculating expected values in decision trees. Refer
to that chapter, or one of the books listed at the end of Chapter 1, if you are
unfamiliar with, or need to review, the concept of expected value.
Roll back
Roll back As described in Chapter 1, roll back refers to the calculation of expected
values starting at the terminal nodes and continuing back to the root
node. In TreeAge Pro, a variety of information is reported in the tree
when it is rolled back.
Some commands used to analyze or modify the tree are available if the
tree is rolled back, while others require roll back to be turned off.
When roll back is turned on, initially all nodes in the optimal path of the
are selected (highlighted). Clicking on the tree will deselect these nodes.
Occasionally, a roll back box will cover the text of a branch description
or probability. This can be corrected by moving the box.
s Hold down the CONTROL key, and click and drag the box to a
better location.
Be careful not to move a roll back box too far from its node, or you may
forget which node it belongs to.
Tip:
Chapter 11 covers a number of important tree display preferences related
to roll back. For example, setting up terminal node columns allows you to
use roll back to display (and export) columns of values at terminal nodes
(e.g., expected values, path probabilities, incremental values, and values
of variables defined in the path).
Try the Rankings analysis on the example tree called Rankings Analysis,
which is a slightly more complex version of the Stock Tree from Chap-
ter 2. A copy of the tree can be found in TreeAge Pro’s Tutorial Example
subdirectory. The Start menu includes a shortcut to this subdirectory.
A dialog box appears which ranks the options, and specifies their
expected values. In the case of suboptimal options, it also specifies a
marginal (or incremental) value — the amount by which one option is
outperformed by the next best option.
The text report dialog includes a button to copy the displayed text to the
clipboard, in order to import the results into another program. Columns
can be resized for better viewing by clicking and dragging on the divid-
ers between column headings.
Open a tree called Oil Drilling Problem, found in TreeAge Pro’s Tuto-
rial Examples subdirectory. This model has some interesting elements,
including multiple decisions nodes. Also note the K and M abbrevia-
tions used for thousands and millions in the tree’s payoffs.
Clicking once on a histogram bar will display the total probability for
that interval. To get a detailed breakdown of the terminal nodes summa-
rized by the bar, use the Bar Details text report.
Every graph window includes a row of buttons at the top. These cor-
respond to commonly-used commands found in the Graph menu. The
probability distribution graph includes three buttons.
Double-clicking on the middle bar will show the three outcomes whose
payoffs fall into that interval, and whose path probabilities add up to the
bar’s height.
When a single decision node is selected, the Analysis menu displays the
Comparative Distributions command. The comparative distributions
analysis can be tried at the root, decision node in the Oil Drilling Prob-
lem tree.
Tip:
A comparative distribution can also be generated for a subset of strategies,
by selecting multiple nodes prior to performing the analysis. See Chapter 8
for information on selecting multiple nodes.
There are two options for displaying the lines in the comparative distri-
bution graph. In addition to the step-wise outlines initially used in the
graph, shown above, lines can also be drawn that directly connect the
top-left corner of each interval’s bar. This alternative format is available
as in the Graph Options dialog.
Deterministic dominance occurs when one option not only has the best
expected value, but its worst possible outcome is better than (or equal
to) the best outcome of any other option. It can be identified as follows:
Since the lines do not cross, some kind of dominance must exist. X’s
highest value is greater than Y’s lowest value, so it a condition of sto-
chastic, not deterministic, dominance. Assuming that the objective is to
maximize profit, Y is the stochastically dominant option.
Ignoring for the moment the cost of the perfect information, the revised
tree cannot have a worse expected value than the original tree, and
may have a better expected value. This difference in expected value is
referred to as the expected value of perfect information (EVPI).
The rest of this section details the use of EVPI in decision trees. For
information on a somewhat more flexible implementation of EVPI using
influence diagrams, see Chapter 27.
s Open the file Stock Tree from TreeAge Pro’s Tutorial Exam-
ples subdirectory.
s Also open the example file called Perfect Information from the
Tutorial Examples subdirectory. This version of the investment
problem shows the time reversal of the Market uncertainty and
the decision.
If there is more than one decision prior to the selected chance event,
TreeAge Pro will prompt you to identify the decision for which EVPI
should be calculated.
s Select the Drill for Oil node in the No Soundings subtree and
choose Analysis > Expected Value of Perfect Info.
In the resulting dialog boxes, you are presented with the option of
having the analysis performed at the root, soundings decision node or at
the drilling decision.
However, what if you perform the EVPI calculation at the root decision
node? The value reported is $437,500, or $87,500 higher than at the No
Soundings node. Is this a meaningful EVPI calculation?
Over/under probabilities
The Over/Under analysis calculates the probability of achieving an out-
come with a payoff over a target value, and the complementary prob-
ability of an outcome under the target.
Verify probabilities
The Verify Probabilities analysis ignores payoffs, and simply calculates
the probabilities at every chance node in the tree, reporting any prob-
lems it finds. This is a useful way to test the integrity of the probability
expressions used in your tree.
® To verify probabilities:
GRAPH WINDOWS
Each graph created in TreeAge Pro can be customized before being
printed or exported. This chapter includes details on customizing the
various types of graphs available in TreeAge Pro, and on using graph
templates to simplify graph customization. It also explains how to
export calculation results from graphs.
In this chapter:
• Customizing graphs.................................................................... 78
The methods covered in this section apply to all types of graphs cre-
ated in TreeAge Pro, not just histograms. Options specific to particular
graph types are covered later in this chapter, or in the chapters describ-
ing the underlying analyses (like the section on probability distributions
in Chapter 5).
s Open the Oil Reserves tree, from the TreeAge Pro Tutorial
Examples subdirectory.
After TreeAge Pro has completed the calculations, a graph window will
open displaying a histogram, like the one shown below.
s To resize the graph area, click and drag the black handle at the
bottom right corner.
s To move the graph area (relative to the window’s edges and the
heading), click and drag the red handle at the upper left corner.
Tip:
Use the Display menu’s Zoom commands to change the on-screen size of
all elements of the graph window.
s A rectangle should appear around the text label you just edited,
to indicate that it is still selected. (Click on the label once to
select it, if necessary.)
s Select Display > Font, or press the Font button on the tool bar.
The selected line of the heading will reflect any changes made in the
Font dialog.
Since changing the font has increased the width of the text, in this case,
you can move the label box in order to re-center it over the second head-
ing label and graph area.
s Enter the text of your new label, and press ENTER or click OK.
s Change the font of the new label, if necessary, and then drag
the new label to the desired location.
While the Graph Options dialog is open, changes that you make to the
range and format of the axes will be reflected in the graph window in
the background.
s With the axis selected, choose Edit > Numeric Formatting (or
press F10).
s In the dialog, select the Lines tab, check the option labeled
Draw dotted vertical line, and type 200k for the x-axis
value.
TreeAge Pro does not automatically create a label for the line. Do this
manually, using the Graph > New Label… command, as shown above.
See the section on specific graph types later in this chapter for other
ways of viewing a graph’s underlying numbers.
Tip:
The numeric formatting of a text report cannot be modified directly. To change
the display of numbers in a text report generated from a graph, you must first
change the formatting of the graph axes (see the section Making changes
to graph axes, above). If the text report is generated without a graph, then
you must change the numeric formatting of the tree (see Chapter 5) and
re-run the analysis.
s Place the mouse on the right edge of the column header, and
click and drag to the desired width.
Many text reports include an additional Notes section below the main
section. This section may include alternate forms or layouts of the
report in the main section, and/or text explanations of the report. The
Notes section contents are included when you export the text report.
Exporting the text report, as described below, may be the easiest way
to view the entire report on screen. It is possible, however, to resize the
text report dialog so that it fills more of the screen, in order to see more
columns.
s Click and drag the bottom right corner of the text report dialog.
In many graphs, the same text report can be placed on the clipboard
without opening the Text Report first.
Bar graphs
In certain situations, a bar graph will have a non-scalar, non-numeric
horizontal axis (for instance, in a Monte Carlo simulation strategy selec-
tion graph, each strategy gets a bar). More commonly, bar graphs will
display a probability distribution of outcomes or distribution samples.
For details on working with particular kinds of bar graphs, see the sec-
tion on probability distributions in Chapter 5, and the section on simula-
tion strategy selection graphs in Chapter 16.
In bar graphs, if a bar is too high for the range set for the vertical axis,
a small white arrow will be displayed at the top of the bar. This arrow
may be hard to see, however, if a bar does not use a solid color.
It is also possible to change the marker used for a particular line (includ-
ing using no marker), or change the color of the line itself.
s In the Modify Line Marker dialog, select a marker from the list
displayed in the resulting dialog box. Click OK.
Any line in the graph may be converted into a table for subsequent use
in formulas (instead manually copying the report to a spreadsheet, creat-
ing a table in TreeAge, and then copying a column into the table).
s Choose Graph > Line To Table, and enter the desired table
name and other properties.
In addition to using the text report to view all of the results underlying a
line graph, it is also possible to look at individual points in the graph.
s Hold down the CONTROL key and place the cursor close to a line.
A gray dot will appear on the closest point along that line, and
the x- and y-axis coordinates of the gray dot will appear in the
status bar.
Scatterplots
The color of an alternative’s points in a scatterplot can be modified. The
process for changing the color is identical to that described above for
line graphs. The Graph Options dialog also includes settings to change
the size of the points used in the plot; see the Help documentation for
information on particular scatterplot formats.
s Select the desired hatch pattern from the list displayed in the
dialog box, or select “no hatch” for a solid region.
s You may optionally change the color used for drawing regions
by pressing the Color button.
Tornado diagrams
In a tornado diagram, the process for changing the pattern used to fill
each bar is identical to that described above for region graphs.
s To change the fonts or title and axis texts that will be included
in the template, click the Set Fonts… or Set Texts… buttons.
Tip:
When a template is applied to a graph, only the selected settings will be
used. However, even unselected settings and items are stored with the
template. It is possible to edit an existing template later (see below), and
change which options will be applied.
If you need to change the default graph size and font settings, create a
new template with the desired attributes and select it as the template to
use for new graphs.
s Select the template from the list, and press the Properties…
button.
You may also indicate that the template’s graph size and fonts should be
the default used for new graphs.
In this chapter:
Numeric formatting
The number in the bottom left corner of the dialog, labeled Numeric
format, is an example of how calculated values will be formatted during
roll back display and in most other analyses, based on the current set-
tings. The default numeric formatting shows two decimal places, with
no abbreviations, using your computer’s currency display settings.
Optimal path
All calculation methods in TreeAge Pro require you to specify how
decisions should be made in the tree (i.e., during roll back). This is
done using the option labeled Optimal path is. The default optimal path
criterion used for new trees is High, unless you save new default set-
tings. This setting would be changed if, for example, you were model-
ing project costs (to find the strategy with the lowest expected cost).
s Next to the label Optimal path is, select the appropriate set-
ting: High for a tree that should maximize expected values,
Low for a tree that should minimize.
For a tree set to High (e.g., one whose payoffs are in terms of life
expectancy), at each decision node TreeAge Pro will select the alterna-
tive with the highest numeric value. For a tree that minimizes, such as
one whose payoff formula is in terms of costs, the alternative with the
lowest numeric value is selected.
Note:
Each of the nine payoff sets stores its own optimal path criterion for Simple
calculations, and each form of multi-attribute calculations also has its own
optimal path setting.
Payoff sets
In TreeAge Pro, you can enter up to nine different payoffs at each ter-
minal node (although 5–9 are disabled by default). While many analy-
ses will require only one attribute (e.g., cost), some models may have
multiple attributes (e.g., benefits and costs, or direct costs and indirect
costs) or different perspectives on the same attribute (e.g., societal, per-
sonal, or institutional costs of disease).
s When you change to a new active payoff for the first time,
ensure that you select the appropriate optimal path criterion
and numeric formatting for that payoff.
Calculation methods
The choice of calculation method determines the formula used to cal-
culate values for nodes in your tree. There are two kinds of calculation
methods:
Simple calculations are just that — expected values are calculated for
the nodes in the tree based simply on the values in the active payoff set.
If, as described above, your tree included multiple attributes — such as
monetary benefits in payoff #1 and costs in payoff #2 — the two sets of
payoff values could be combined in a single calculation using the Ben-
efit-Cost calculation method’s formula.
• When the Preferences dialog is closed, TreeAge Pro indicates the cal-
culation method information in the right-hand corner of the status bar.
If you have selected Simple calculations using payoff 3, “Payoff 3” will
appear in the status bar. If you select Benefit-Cost using payoffs 4 and
2, the status bar will read “B-C, 4-2.” If you select Multi-Attribute, then
“MultiAttr” will show in the status bar.
Typically, roll back boxes display the expected value of each node,
along with the path probability at terminal nodes. TreeAge Pro can
display a variety of other calculated values during roll back; these are
described below.
s Choose Edit > Preferences, and select the Roll Back category.
Note:
Maximin is generally treated as an additional perspective only, and not as
a substitute for standard, probabilistic calculations. Its primary distinction
— the fact that it doesn't look at probabilities — it also its primary weakness.
It would ignore information that the strategy with the worst outcome has a
very low probability of this event occurring, for example.
Below is a picture of the example file Rock Climber using Maximin roll
back. The value of the Treat foot strategy is simply its worst outcome,
which is the patient dying (utility = 0). The Amputate foot option has no
uncertainty, and it is simply equal to its payoff. The decision then maxi-
mizes between the available options, as usual.
If you require more than four separate payoff sets in your model, for
instance for weighted multi-attribute calculations, additional payoffs up
to #9 can be activated by changing the Enable payoffs… setting.
Tip:
Variables (see Chapter 13) can be used in the weighting expressions. This
is useful when there is uncertainty concerning how much one factor should
be weighted versus another.
In this chapter:
® To select a subtree:
s Select a single node that has branches attached (i.e., not a ter-
minal node).
Tip:
It is also possible to select a subtree by holding down the CONTROL key while
clicking on the subtree’s root node.
s Hold down the SHIFT key and click, one after the other, on each
of the selected nodes that you wish to deselect.
In this chapter:
® To add branches:
s Select a node.
® To delete a branch:
s Select a node.
s In the Change Node Type dialog, select the desired node type,
and press ENTER or click OK.
Note that these tree-building commands are all found under the Options
menu. The next section describes in more detail how the Delete Branch
command works, and also introduces two other useful commands found
under the Options menu: Insert Branch and Reorder Branches.
This chapter also details the commands used to add and delete entire
sections of a tree, rather than single nodes
The Cut, Copy, and Paste commands described later in this chapter can
be used to efficiently carry out similar, but more complex, tree modifica-
tions – including inserting, deleting, and reordering subtrees, as well as
duplicating nodes or subtrees.
Inserting Branches
The Insert Branch command, in comparison to the Add Branches com-
mand, provides greater control over where new branches and nodes are
created. While the Add Branches command can only add more chil-
dren to a node, the Insert Branches command can be used to either add
branches or make “generational” changes — i.e., to insert a new node
between an existing parent and its children. Inserting a node causes
existing nodes to move – up, down, to the left, or to the right.
® To insert a branch:
s Open the Rock Climber tree, from the TreeAge Pro Tutorial
Examples subdirectory.
s Click on To Left (or press the L shortcut key), and press ENTER
or click OK.
This time the new branch is inserted after the Use standard antibiotic
node. The two branches that were the children of the Use standard anti-
biotic node are now attached to the new chance node.
In this case, the new branch is added as a sibling of the selected, Use
standard antibiotic node. Choosing the Below radio option, instead,
would have added the new sibling below Use standard antibiotic.
Using the Insert Branch command at a node with no branches works just
like the Add Branches command, except that it adds one branch instead
of two.
Deleting branches
To illustrate the different ways the Delete Branch command can be used,
let’s now reverse the changes made using the Insert Branch command.
Tip:
The Delete Branch command is used in this situation for illustrative purposes.
The Undo command, covered later in this chapter, may be more efficient
when you need to reverse the sequence of changes you have just made.
The Delete Branch command is more flexible, however, as it allows you to
reverse changes that were made at any time in the past, and leave in place
more recent revisions.
s Select the blank node above the Use standard antibiotic node.
The selected node has been deleted. The tree again looks like the pic-
ture at the top of the previous page.
The next step is to remove the blank node inserted between the Use
standard antibiotic node and its original set of branches.
s Select the blank node to the right of the Use standard antibi-
otic node.
The deleted node’s children move one generation to the left, joining any
siblings of the deleted branch. To see another example of this, delete
the blank node to the left of the Use standard antibiotic node.
s Select the blank node to the left of the Use standard antibiotic
node.
The Rock Climber tree should now be back in its original state. If not,
you can either use the Undo command repeatedly, or close the file with-
out saving changes and then re-open it.
Reordering branches
The Reorder Branches command enables you to change the vertical
sequence of a node’s branches.
The resulting dialog box lists the branches of the selected node in order,
from top to bottom.
The order of the two options has been reversed; Use standard antibiotic
is now the bottom branch of the decision node.
Tip:
Besides text, tree nodes, and subtrees, other items that can be copied and
pasted in TreeAge Pro include influence diagram nodes, variable definitions,
and links with Excel. Items that can be copied from, but not pasted into,
TreeAge Pro include text reports, model images, and graph images.
Endnodes
The Cut, Copy, and Clear Node commands will be available only if you
have selected a single endnode (i.e., any node without branches, except
the root node). Once a endnode has been cut or copied to the active tree
clipboard, it can be pasted to any node.
® To copy an endnode:
s Choose Edit > Copy Node. Or, choose Edit > Copy… and
select the Node option in the Copy Options dialog.
® To paste an endnode:
s Choose Edit > Paste Node. Or, choose Edit > Paste… and
select the Node option in the Paste Options dialog.
After being pasted, the copied node remains on the active tree clip-
board, and can be pasted at additional locations. It will remain on the
clipboard until a different node (or subtree) is copied, or until TreeAge
Pro is closed.
® To cut an endnode:
s Choose Edit > Cut Node. Or, choose Edit > Cut… and select
the Node option in the Cut Options dialog.
If you wish to delete the selected node without placing it on the clip-
board, it is possible to use the Edit > Clear Node command. This com-
mand works identically to the Options > Delete Branch command.
Subtrees
The ability to copy single endnodes may be of relatively limited use-
fulness, but the ability to duplicate larger tree structures can be quite
useful. In many trees, some alternatives will be structural identical or
closely similar, differing perhaps in particular probabilities or payoffs.
Even within a single alternative’s portion of a tree
® To select a subtree:
Note:
Although the subtree’s root node is highlighted along with the selected sub-
tree, it will not be part of any subsequent operation on the subtree (i.e., the
subtree root node will not be copied or cut).
® To copy a subtree:
s Choose Edit > Copy Subtree (or Edit > Copy…, and select
Subtree in the Copy Options dialog).
Once copied to the clipboard, the subtree can be pasted to any node —
one with or without branches, in the same tree or a different one.
® To paste a subtree:
s Choose Edit > Paste Subtree (or Edit > Paste…, and select
Subtree in the Paste Options dialog).
Tip:
A copy of a subtree, while on the clipboard or after it is pasted, has no con-
nection to the original subtree. See Chapter 21 for a discussion of clones,
where copies of a subtree remain linked to the original, master subtree.
® To cut a subtree:
This will cause the subtree (but not the subtree’s root) to be removed
from the tree and placed on the clipboard. As with a copied subtree,
when a subtree is cut to the clipboard, the Paste Subtree command
becomes available.
The Clear Subtree command is the only way to delete more than one
node at a time. It remove the subtree without placing it on the clipboard.
® To clear a subtree:
The contents of the currently active tree clipboard can be viewed (but
not modified) by choosing Edit > Show Clipboard. The Paste Subtree
command pastes the contents of the currently active tree clipboard.
Before cutting, copying, or clearing text, you must select the targeted
letters, numbers, or words.
s Either use the mouse to: A) click and drag from one end of the
desired selection to the other; or B) click before one end of the
selection, and then shift-click after the other end.
Once the text is selected, then you can choose the appropriate command
from the Edit menu:
s Choose Edit > Cut Text. Or, choose Edit > Cut… and then
select Text in the Cut Options dialog box.
The Copy and Cut commands both place the selected text on the clip-
board. The text on the clipboard can then be pasted into any TreeAge
document, or into another program.
Tip:
The Cut, Copy, Paste, and Clear commands can also be accessed by
right-clicking on the selected text and choosing the command from the
quick menu.
The Paste Text command can be used to insert text or formulas both
place the selected text on the clipboard. This text can then either be
pasted into any TreeAge document, or into another program.
s Choose Edit > Paste Text. Or, choose Edit > Paste… and then
select the Text option in the Paste Options dialog box.
The Edit > Clear Text command can be used to delete the selected text
without placing it on the clipboard. The Clear Text command works
identically to simply selecting text and pressing the DELETE key or the
BACKSPACE key.
The Undo item in the Edit menu reports what kind of change is the next
one that can be undone. If the last action taken was to cut a node, the
topmost command under the Edit menu will read Undo Cut Node.
If you go back too far in undoing modifications to the model, you can
use the Redo command, also found in the Edit menu. The Redo com-
mand essentially allows you to undo previous Undo action(s).
Warning!
The Revert to Saved command warrants careful use, as it cannot be
undone.
TreeAge Pro will prompt you to verify that you really want to clear all
the changes you have made to the tree since it was last saved.
The next chapter covers a variety of options for controlling the layout,
formatting, and contents of decision trees.
In this chapter:
s Select the event node and choose Options > Insert Branch….
s With the new node selected, choose Options > Change Node
Type..., select the Label type, and click OK.
You could also change an existing endnode to a label node, and then
use the Add Branch or Insert Branch command to add the one allowed
branch to the label node. A node with more than one branch cannot be
changed to a label node.
For calculation purposes, a label node behaves like a decision node with
one branch, or a chance node with one branch having a probability of
1.0. The value of the label node is simply the value of the node immedi-
ately to its right.
Node comments
Node comments Detailed comments can be assigned to the branches of a node and saved
with the tree. Unlike note boxes (see below) and branch labels, node
comments are hidden (not displayed on the face of the tree). Nodes that
contain comments will be display a small flag.
Node comments are particularly useful for recording the basis on which
probability assignments were made for the branches of a chance node.
s Once you have entered the node comments, choose File >
Close to return to the tree window.
In the tree window, the node at which you entered a node comment is
identified by a small red flag. This flag will not appear when the tree is
printed, or when the Export or Copy Special commands are used to save
or export a picture of the tree.
s Select Edit > Preferences... and choose the Node Display cat-
egory.
The open node comments can be printed. You may also print preview
the node comments.
The font used to display and print the open node comments can be
changed by choosing Display > Font.
Using note boxes and arrows, you can provide the model’s audience
with an overview of the whole model, or specific nodes or subtrees.
s With the mouse, click and drag somewhere in the tree window.
Make the box large enough to hold the text you wish to enter.
The font of the active note box can be changed. Each note box can use a
different font, but all text within a single note box uses the same font.
To see what the note box will look like when printed, unselect it.
s Choose Edit > Preferences, and select the Notes & Arrow cat-
egory.
s Start with the mouse pointer inside the note box, showing the
text cursor. Slowly move the mouse pointer towards any edge
of the box, stopping as soon as the cursor changes to an arrow.
s With the arrow cursor, click on the box’s edge with your
mouse.
s Click and drag on an edge of the note box, rather than a corner,
and move the box to the desired location.
s Choose Edit > Clear Note or Cut Note (or choose Cut Note
from the right-click menu).
The Copy Notebox and Paste Notebox commands can be used to dupli-
cate a selected note box.
You will be prompted to select the node to which you want to bind your
note.
The bound note box will be aligned directly above the selected node,
and will move with the node as the tree structure changes.
Tip:
Pressing the TAB key will move the text cursor from a bound note box to its
node’s branch line.
Creating arrows
You can draw arrows in conjunction with annotating a tree. Arrows are
typically used to associate an unbound note with one or more nodes.
® To draw an arrow:
s Click and drag with the mouse; start from the point where you
want the arrow to begin, and release the mouse button where
you want the arrow to point.
You can change the location of the arrow by clicking and dragging its
line. It is possible to change the length and position of the arrow by
clicking and dragging the endpoints of the arrow.
Tip
To ensure that an arrow is drawn strictly horizontally or vertically, hold down
the SHIFT key as you draw the arrow or change the location of one of its
endpoints.
This chapter covers a wide variety of options for controlling the layout,
formatting, and appearance of trees. Some of these features apply
to calculated values displayed following roll back, while others affect
display of the tree’s structure.
In this chapter:
® To collapse a subtree:
s Select a node with visible branches, and choose Display > Col-
lapse Subtree.
The subtree emanating from the selected node is hidden and a plus sign
(+) is displayed in its place, to the right of the node. The plus sign will
also appear in place of the hidden subtree in printouts and exported
images of the tree. Collapsing a subtree does not affect calculations.
The branches of the selected node will be displayed, but any subtrees
attached to these branches will remain hidden and plus signs displayed
in their place.
s Select a node.
To reverse the effects on the tree, simply un-skip generations at the node
which skips a generations.
s With the tree rolled back, right-click on the node whose roll
back box you want to hide.
s From the pop-up quick menu, choose Hide roll back box.
This setting will be saved with the tree. A hidden roll back box can be
redisplayed by right-clicking on the node and choosing Hide roll back
box again (to unselect it).
The functions of the top three roll back preferences are described in
Appendix C. The use of the different settings for Roll back calculates —
Expected values, Path probabilities, Payoffs only, and Maximin — are
also explained there.
The example model used in this section is the Terminal Columns tree,
found in TreeAge Pro’s Tutorial Examples subdirectory.
• payoffs
• individual components of a complex payoff formula
• path probabilities
• scenario (i.e., terminal node) numbers
Clicking on the ellipses button (…) to the right will open dialog with
tools for building the expression. (The use of variables and formulas is
covered in Chapter 13.)
If roll back does not provide a calculation that you are interested in
(a common one is the contribution each end node makes to the total
expected value), it may be possible to do the calculation in Excel using
the output from roll back columns. It is possible to copy the table of roll
back columns as tab-delimited text, and paste it into a spreadsheet.
s Roll back the tree, then choose Edit > Copy Special….
The names of the end nodes are included as the first column in the table.
The display of roll back columns can be turned off in the Terminal
Node/Columns preferences, without deleting the list of columns.
The tree’s payoffs can be displayed in boxes, even when the tree is not
rolled back.
The text you enter for terminal node numbering must use the caret (“^”)
as a placeholder for the node number. The caret can be used alone or
with additional text, as in Outcome ^. The terminal node number and
text will be displayed whether or not the tree is rolled back.
s Choose Edit > Preferences, and select the Tree Display cat-
egory.
For instructions on aligning specific nodes in the tree, see the section at
the beginning of this chapter.
s Click on the bottom branch’s text label, to the left of the first
word in the label. Press ENTER one or more times, inserting car-
riage returns until you have created sufficient white space
s Check the option labeled Minimize empty space. You must first
ensure that Align endnodes is not selected.
The graphic shown below illustrates how TreeAge Pro compresses the
display of the tree.
If the display of your tree has problems with the Minimize empty space
setting. One caveat to the use of this preference was mentioned in a pre-
vious section, and there are a number of other potential problems with
its use:
s Choose Display > Font... (or click the Font tool bar button).
If a node is selected, this will only change the font of the node descrip-
tion, on the branch to the left. If the selected node is a branch of a
chance node, the font used for the probability is modified separately.
s Hold down the CTRL key and click on a node that has branches;
this will select the node’s subtree.
The Node Font button will change the branch text font for nodes sub-
sequently created in the tree. It is also applied to existing nodes in the
active tree, with the exception of selected nodes and subtrees at which
you have individually changed the font.
The Prob Font button will change the probabilities font for the active
tree. Like the Node Font, this is used for new nodes and existing nodes
in the active tree, with the exception of nodes and subtrees at which you
have individually changed the probability field font.
The EV Font button allows you to change the font for roll back boxes
displayed upon roll back of the active tree.
The Variables Font button allows you to change the font for variables
displayed beneath nodes in the active tree, if you elect to display full
variable definitions in the tree (see Chapter 13).
Like other preferences, font settings can be saved as defaults for subse-
quent trees. Simply check the box entitled Save settings as default (on
the right-hand side of the Preferences dialog) and click OK. When you
close the Preference dialog, the active tree’s preferences will be saved
on the computer and will govern the font settings of new trees that you
create. (Note that all preferences will be saved, not just those in the
Fonts page.)
CHAPTER 12
CHAPTER 12: MORE TREE-BUILDING TOOLS
In this chapter:
Tips:
• Find/Replace is not recommended as a way to change a variable’s name.
Instead, change the variable’s properties via the Variables and Tables
dialog (see Chapter 14).
• To select all nodes with a specific characteristic, such as a word in their
name, try the Options > Select If… command, covered in Chapter 8.
• Changes made using Find/Replace cannot be undone, even while the
dialog is open. After performing a replacement, reverting to an older
version of the tree file may or may not be able to reinstate the text.
s Enter text in the Find What box, choose the desired Match…
options, and select one ore more search location(s).
s Click the Find Next button to begin the search at the root
node. If a match is found at a node, the node is selected and the
result reported.
Clicking the Replace All button will repeat the Find Next and Replace
operations until the tree is fully traversed.
Clicking the Start Over button resets the search back to the root node.
If the Match whole word only option is checked, TreeAge Pro will not
search for partial word matches. If the Match case option is checked,
matching text must have the same combination of upper and lower case
letters as that specified by the user.
Tip:
Once a number is entered in the tree, it is interpreted and stored as a pure
number, without text elements (i.e., decimal, thousands separator, and K/M/B
characters). If numbers are always entered with the correct format for the
current operating system, the tree can always be opened and analyzed on
any computer, under any regional settings.
s In the tree, choose Edit > Preferences…, and select the Other
Calc Settings category.
These settings will apply when this particular model is opened, modi-
fied, or analyzed on any computer, no matter what the operating sys-
tem’s regional numeric settings.
Note:
The bulk replacement of separators is permanent, and cannot be undone.
For this reason, it is strongly recommended that you save the tree (and even
save a copy of the tree) before performing a bulk replacement.
s Drag the pointers around the edge of the wheel until the sizes
of the section match your best assessment of the relative likeli-
hood of outcomes.
s If the selected node has three or more branches, you will see
a check box named Keep proportions. If selected, ratios are
maintained on each side of the pointer you move.
The Probability Wheel works whether or not you have already assigned
probabilities to the branches. If you have assigned probabilities,
they will be used as initial values for the wheel. The chance node can
have up to seven branches; each branch will be assigned its own colored
portion of the wheel.
It is recommended that you save a copy of your tree before forcing the
path at a node, so that you can easily recover the tree’s original state.
The decision node will reappear with an arrow inside it. The arrow will
point upward if that decision node has been reset for maximization, or
downward if the node has been reset for minimization. If you reverse
the optimal path for an entire tree in which the optimal path of one or
more nodes has been individually changed, the arrows in all of the indi-
vidually changed nodes will reverse, signifying that they remain differ-
ent from the rest of the tree.
The chapters in Part III focus primarily on representing uncertain tree parameters using
variables and distributions, and performing sensitivity analysis and Monte Carlo simulation.
The last chapter in Part III provides information on storing analyses that you may need to
repeat frequently and that require a complicated setup procedure (like sensitivity analysis
and Monte Carlo simulation).
Chapter 19 in Part IV covers the use of variables in creating complex cost formulas.
In this part:
CHAPTER 13
INTRODUCTION TO VARIABLES
AND SENSITIVITY ANALYSIS
This chapter provides a basic tutorial on the use of variables and one-
way sensitivity analysis in decision trees. Subsequent chapters cover
TreeAge Pro’s many useful tools for working with variables, as well as
more complex, multi-way and probabilistic sensitivity analysis.
In this chapter:
Tip:
Sensitivity analysis can be used to look also for errors in complex formulas,
which might be indicated if changing the value of a parameter (even one that
is certain) does not have the anticipated effect on calculations.
The basic uncertainty is that, at the time of the decision, the investor
cannot know what the price of the equity will be in one year. A simple
probability distribution — a chance node with three branches — rep-
resents a range of possible changes in the risky investment’s value.
Assuming that you have a mix of different expert opinions about the
risky investment, it would be useful to be able to perform sensitiv-
ity analysis on the related parameter uncertainties. The extreme, 10th
and 90th percentile values in the payoff distribution — a $600 decline
or $500 rise in value — are logical candidates for sensitivity analysis.
Another option is to vary the probabilities.
The tutorial in this chapter shows how to prepare a tree for sensitivity
analysis, how to perform a one-way sensitivity analysis, and how to
interpret the results. Chapter 15 covers multi-way sensitivity analysis
and tornado diagrams. Chapter 16 covers the use of probability distribu-
tions and Monte Carlo simulation to analyze models with complex or
numerous uncertainties.
When building complex models, variables are often used from the
outset. The investment decision tree has already been completed using
numeric payoffs and probabilities, however, so this tutorial will take a
different course, replacing existing numeric values with variables.
Tutorial Notes:
Some procedures explained in this chapter are not required steps for using
variables in the investment tree. Lines starting with the ccharacter are
required tutorial steps; other instructions start with the s character.
TreeAge Pro will alert you if try to use an invalid variable name.
Variable names are not case-sensitive. For example, the names probUp,
PROBUP and probup are equivalent; prob_UP would be a different vari-
able, however, since it includes an extra character.
Tip:
A common method of setting up variables which is not illustrated in this
chapter is to create and define lists of variables before creating the structure
of the tree and using the variables.
c Open the Stock Tree created in Chapter 2. Or, locate the copy
of this file included in the Tutorial Examples\_backup\ subdi-
rectory of the TreeAge Pro program directory.
c Select the Large increase terminal node and press the TAB key
to edit the probability. Or, simply click with the mouse in the
probability editor, below the branch line.
c Press TAB (or click outside the node) to have TreeAge Pro
check the changes you made to the probability expression.
c Check the box labeled Define numerically (at root), and enter
the baseline value of 0.3 (or 30%) in the Value box. Optionally,
you can enter a description for the variable; the sensitivity anal-
ysis range can be defined later, at the time of analysis.
The name “prob_extreme” has been added to the list of recognized vari-
ables names in the tree, and it has been assigned a default numeric value
of 0.3 at the root node.
c Press TAB (or click outside the node) to update the probability
for this branch.
In this case, TreeAge Pro does not prompt you to create the variable
prob_extreme, since the tree already includes a variable with this name.
If you do not see prob_extreme in the variables list, choose the New…
command to add the variable to the tree and define it at the selected
node. If prob_extreme already appears in the list, choosing its name
from the quick menu list will open a window to enter a definition. Using
this method to define variables will be described in this chapter.
s In the dialog that appears, type pay_up for the new vari-
able’s name, and click OK or press ENTER.
The variable pay_up has been defined, but it has not yet been referenced
in the appropriate tree calculation: the payoff at the Large increase node.
Complete this step now.
s Delete the existing expression, the numeric 500, and either type
pay_up or select the variable from the list labeled Variables.
Click OK or press ENTER.
Now let’s add a second payoff variable, for the Large decrease termi-
nal node. We’ll create a new variable called pay_down to represent the
payoff (loss) of this scenario. This time, we’ll use the Variables and
Tables dialog.
s In the Properties dialog for the new variable, enter the name
pay_down. Check the option labeled Define numerically (at
root) and enter -600 in the Value box.
The payoff at the Large decrease node still needs to be updated, to use
the variable pay_down.
Note:
Both the right-click menu and the Variables and Tables dialog can be used to
define a variable at a node other than the root node. When you are learning
how to use variables for the purposes of sensitivity analysis in TreeAge Pro,
however, it is recommended that you make all numeric definitions at the
root node. This will help avoid errors during sensitivity analysis, and when
making changes to the definitions.
s Open the Three Variables tree you created in the previous sec-
tion (or find the copy of this file called Three Vars found in the
Tutorial Examples subdirectory).
Tip:
If you specified a low and high value in the variable’s Properties dialog
when it was created, that range will be shown in the Sensitivity Analysis
setup dialog. Otherwise, the baseline value will be shown for both low and
high values.
s Type 0 for the Low value, and 0.5 for the High value.
TreeAge Pro should immediately begin the analysis. If the analysis were
a long one, you could monitor its progress in the status bar at the bottom
of the TreeAge Pro window. When it is complete, a graph is displayed.
Tip:
If the trend of a line in the graph does not make intuitive sense, this may
indicate a problem with the definition or use of the variable in the model.
The analysis text report can be opened either by clicking the Text
Report button, or by choosing Graph > Text Report.
In the graph, at every threshold point a dashed line drops down to the
horizontal axis.
In this analysis, the threshold is not close to our two best estimates, 0.25
and 0.3, suggesting that the model is not very sensitivity to this particu-
lar uncertainty.
The only aspects of the threshold legend which can be modified (indi-
rectly) are the two numeric formats; if you change the numeric format of
either axis, the format of the corresponding item in the threshold legend
will be adjusted automatically. None of the threshold legend text may be
directly changed, as these are calculated values. Threshold information
may be hidden by deselecting the Options dialog check box labeled Dis-
play Threshold Values. This will remove all dotted lines and the entire
threshold legend.
The sensitivity analysis graph will not recognize a threshold if the opti-
mal strategy is the same at both ends of the interval, but changes back
and forth within the interval. The likelihood of this error can be reduced
by increasing the number of intervals, thus reducing their width.
Tip:
A more sophisticated, non-graphical form of threshold analysis is described
in Chapter 15. This chapter also includes more information on one one-way
sensitivity analysis and other kinds of sensitivity analysis.
In this chapter:
By changing the report options, you can control what is included in the
report. For example:
The Calculator/Evaluator
It is often useful to know how a formula, such as a variable definition,
will calculate at a specific node. The Calculator/Evaluator is designed
expressly for this purpose. It will perform any calculation you enter
as if it were part of a payoff or probability calculation occurring at the
selected node during an analysis. References to tables and functions can
be included.
If the expression can be calculated at the selected node, the result will
be displayed.
If you click the Show Nodes button, TreeAge Pro will activate the tree
window and reselect the node on which the slider is operating.
Tip:
For another kind of manual sensitivity analysis, see the information on stored
analysis sequences in Chapter 18.
If you know the first few characters of the variable name you wish to
insert, you can optionally type them prior to choosing Values > Insert
Variable (or using the keyboard shortcut CTRL+i). If only one variable
name matches what you have typed so far, that variable name will be
inserted automatically (without displaying the Insert Variable dialog).
The Variable Definitions window can be resized. Simply click and drag
an edge of the window to adjust its size; click and drag on the title bar
of a window to move it.
While working in the Variable window, the Variables and Tables dialog
can be opened by clicking on the V= toolbar button, or by choosing
Values > Variables and Tables.
Beneath the lists of regular node definitions the window will display
any globally-defined names — tracker variables, or distributions that
have a variable-type name assigned to them. Double-clicking on a
named distribution will open the Distributions dialog.
If you paste into a spreadsheet, you can make changes to definitions and
then copy the two columns (names and definitions) to be pasted back
into TreeAge Pro’s Variable Definitions window.
If a variable in the pasted list does not yet exist in the tree, it will be cre-
ated.
The Variables and Tables dialog is not always the most efficient way to
create and define variables. It is, however, a powerful and flexible tool.
This section describes a number of tasks possible only in the Variables
and Tables dialog:
s Hold the CTRL key while clicking, one after another, on each of
the variables to be selected
s Click on the first variable in a group and hold down the SHIFT
key while clicking on the last variable.
The selected variables can then be deleted, or defined (in which case
separate Define Variable windows will be opened for each variable).
s To remove the definition from the node, click the Delete Defi-
nition button.
Deleting a definition of a variable does not delete the variable from the
tree. It is possible for the variable to be removed from the tree alto-
gether, along with any definitions you have created for it.
While deleting a variable from the tree removes all definitions of the
variable from the tree, references to the deleted variable will not be
removed from payoffs, probabilities, and other variable definitions.
If such formulas are not corrected, your model may generate an error
message upon calculation. See Chapter 12 for information on using the
Find/Replace command to search for a variable’s name in the tree.
One common use of the Properties dialog is for renaming a variable (as
an alternative to deleting a variable from the tree and creating a new one
with the desired name).
s Select the existing variable in the Variables and Tables list and
click the Properties… button.
The name change will cascade throughout the tree, updating all defi-
nitions of the variable, as well as all references to the variable.
Each variable has three basic text properties: the variable name, a short
description, and a long comment. The variable’s name must conform
to naming rules, as described in Chapter 13. The short description is
optional; it is used in graphs. The long comment can be used to hold
notes that memorialize a variable’s meaning or sources.
The basic properties group also includes a check box labeled Show in
Tree, which is checked by default. If you clear the check box, the defi-
nitions of this variable will remain hidden when variable definitions are
displayed in the tree (a tree preference).
Low and high values entered in the sensitivity analysis section of the
dialog will be used as the suggested range for the variable in sensitivity
analysis setup dialogs.
The linked variables will now be listed to the right of the Correlations
button, with plus or minus symbols indicating the type of correlation.
The identical correlation will show in the properties of the two corre-
lated variables. The correlation can be modified or removed from either
variable’s Properties dialog.
® To remove a correlation:
Refer to the Function Helper and Appendix D of this manual for a full
list of functions available in TreeAge Pro.
In this chapter:
Your goal when learning to use variables for sensitivity analysis should
be to avoid ever having to use this dialog, as it may be difficult to avoid
making errors in choosing which definitions should be varied in the sen-
sitivity analysis. The solution, in this case, is to delete one of the defini-
tions of pay_up.
Following this guideline will also help you avoid errors in non-sensitiv-
ity analyses. For example, in the version of the investment tree shown
on the previous page, changing the definition of pay_up at the root node
will have no impact on payoff calculations. TreeAge Pro will use only
the definition of a variable that is closest to the node being calculated, a
terminal node in this case. This point is critical to understanding how to
use variables in TreeAge Pro.
For a variable used in a payoff, TreeAge Pro looks for a definition start-
ing at the terminal node. In the case of a variable used in a branch’s
probability, the search for a definition begins at that branch.
While this version of the investment tree will roll back correctly, it
is not well-formed for sensitivity analysis. The variable “return” is
defined four times, once for each scenario. For this reason, performing
a sensitivity analysis will not be straightforward.
Tornado diagrams
A tornado diagram is a set of one-way sensitivity analyses brought
Tornado diagrams together in a single graph. It can include any number of the variables
defined in the tree. In the resulting graph, a horizontal bar is gener-
ated for each variable being analyzed. Expected value is displayed on
the horizontal axis, so each bar represents the selected node’s range of
expected values generated by varying the related variable. A wide bar
indicates that the associated variable has a large potential effect on the
expected value of your model.
The graph is called a tornado diagram because the bars are arranged in
order, with the widest bar (the most critical uncertainty) at the top and
the narrowest one at the bottom, resulting in a funnel-like appearance.
The example tree Airline Problem is ready for a tornado diagram. The
model is a simple cost function, each of whose inputs may be varied to
see how each may affect the expected value.
s Select the decision node and choose Analysis > Sensitivity >
Tornado Diagram.
If you click any bar once and hold down the mouse button, you will
see the input and output range for that parameter. The input range is the
range over which you varied the associated variable. The output range is
the resulting range of expected values when the variable is varied.
If you double-click on a bar, you will see the full line graph as it was
generated from the sensitivity analysis. All relevant threshold informa-
tion will be included.
You may turn off the display of individual bars in the analysis. Select
Graph > Show/Hide (when the graph window is in front) to indicate
which bars should be displayed.
Tip:
Because setting up the tornado diagram analysis can be time consuming,
you may want to store the setup information for reuse when you want to run
the analysis again; see Chapter 18 for details on stored analyses.
Adding the SpreadSqr values to calculate a net risk value, two addi-
tional measures of uncertainty are then calculated for each variable.
The names of the correlated variables in a given group will not be dis-
played in the tornado diagram itself. If you single-click the bar repre-
senting those parameters, the names and input ranges of all correlated
variables in the group will be shown.
s Select the root node, and choose Analysis > Sensitivity >
Two-Way.
Tip:
Use two-way analysis only when the two variables are independent. If the
two variables are a correlated pair, be sure to turn off the correlation.
Isocontours
Isocontour lines can be setup in any two-way sensitivity analysis graph
comparing two alternatives. An isocontour represents, for the combi-
nations of variable values along the line, a constant marginal or incre-
mental value of the topmost branch of the decision node. (A threshold
To add custom isocontours, click the Options button or select Graph >
Options while a two-way sensitivity graph (comparing two options) is
active. Select the Isocontours tab, and enter the incremental values to
use for isocontours.
Labels are not automatically created for isocontours; label the lines
manually, using the Graph > New Label… command described in Chap-
ter 6.
Tip:
Adding only a 1000 isocontour, for example, will not show lines representing
both +1000 and -1000 incremental values; you need to add both 1000 and
-1000 values to the list of isocontours in the graph to see both the +/- 1000
isocontours in the graph. Negative value isocontours, in this context, merely
indicate that the comparator has changed from the topmost option to the
bottom branch.
Use the Animate button or the scroll bar to cause the third variable to
cycle through its range, interval by interval. At each frame you will see
a snapshot of the three-way analysis, showing you how the two-way
analysis of the first two variables is affected by varying the value of the
Threshold analysis
Threshold analysis This specialized form of sensitivity analysis offers the ability to search
more thoroughly and accurately for threshold information. The result of
this analysis is a detailed, textual description of how the optimal strategy
is affected by changing the value of a single variable across a designated
range.
Tolerance
The tolerance is stated in the same units of value as the variable in
question; it is not a percentage. The tolerance is related to the value of
the variable, not to expected value. Thus, entering a tolerance of 0.1
means that the actual location of any threshold will be within plus or
minus 0.1. For example, if TreeAge Pro indicates finding a threshold at
Var=0.391, this means that the threshold definitely occurs somewhere
between 0.381 and 0.401. Because TreeAge Pro applies linear interpo-
lation after it meets your tolerance, you can expect the actual reported
value to be even more accurate than the tolerance.
The designated tolerance has a second function. TreeAge Pro uses this
value as a basis for determining the number of decimal places (not sig-
nificant digits) to specify in the result. The number of decimal places
displayed will be one greater than the number of decimal places speci-
fied in the tolerance. Assume, for example, that TreeAge Pro finds
a threshold at 0.459033333. If the tolerance had been set at 0.1, the
threshold value would be reported as 0.46. If, instead, the tolerance
were set at 0.01, the threshold would be displayed as 0.459.
Non-linearity
A sensitivity analysis may indicate multiple threshold values. However,
this series of changes in policy will be identified correctly by TreeAge
Pro only if the thresholds appear in different intervals in the first itera-
tive pass. Since linear interpolation is used to find thresholds in a sensi-
tivity analysis, only one threshold can be found per analysis interval.
For example, suppose that two thresholds exist in the same analysis
interval, with optimality switching between the same decision options.
Since the same policy is optimal at both ends, notwithstanding the inter-
vening thresholds, TreeAge Pro will assume that no thresholds occur in
that interval. There is no way to avoid this problem entirely. TreeAge
Pro could subdivide a range into 100 intervals and still miss policy
changes within an interval if the same optimal policy is specified at both
ends. Even if different strategies are optimal at either end of an interval,
and TreeAge Pro identifies a threshold in that interval, it is still possible
that one or more additional thresholds in that same interval will have
been missed.
Initially, TreeAge Pro will subdivide the given range into a number of
intervals. The number of intervals searched relates to the non-linearity
radio buttons as follows:
• Low: 4 intervals
• Medium: 8 intervals
• High/Don’t Know: 12 intervals.
As the calculation proceeds, the progress bar shows how far over the
given range TreeAge Pro has searched. If a threshold value is found, the
bar will slow down considerably, but it will move more quickly over
intervals in which no threshold value is found.
The dialog box specifies a single interval throughout which the optimal
policy is consistent. The term “EV at threshold” refers to the expected
value when the variable in question is given the value at the top of the
interval being described. The “Prev” and “Next” buttons can be used to
view each of the other policy intervals.
If the node you select prior to performing the sensitivity analysis is not
a decision node, TreeAge Pro will assume that the results should be
presented as a single line. This will represent the changing expected
value of the scenario rooted at the selected node. (Healthcare module
users: Note that this option is not available for cost-effectiveness sensi-
tivity analyses, which must be performed at a decision node.)
Correlated variables
Correlating/linking Linkages (i.e., perfect positive or negative correlations) between pairs
of variables can be specified, for use during sensitivity analysis. These
variables during value linkages are set up in the Properties dialog box (see the section
sensitivity analysis Variables and Table) for either member of a correlated pair, by clicking
on the Correlations... button. (See Chapter 13 for instructions on defin-
ing the sensitivity analysis and other properties for a variable.)
s Select the root, decision node and choose Analysis > Sensi-
tivity Analysis > One-Way….
CHAPTER 16
In this chapter:
First-order trials have somewhat limited use with most models (with
Markov models:
the major exception of Markov models). One possible use of simulation
For information on using 1st-order
simulation trials with Markov trials in a regular tree is to replace any chance node with a parameter-
models and tracker variables, refer ized probability distribution (e.g., sampling an outcome from a normal
to the TreeAge Pro Healthcare distribution, or any other continuous or discrete sampling distribution).
module documentation.
For example, in the investment decision tree, the risky investment’s
chance node could be replaced with a distribution representing either
a continuous range of outcomes, or a discrete distribution just like the
existing three-branch chance node. This can also be accomplished with-
out simulation trials, using TreeAge Pro’s DistKids( ) function; these
advanced uses of distributions in modeling are covered in Chapter 22.
The goal is to change the payoff of the Large increase terminal node
from a point estimate of 500 to a Normal distribution with a mean of
500 and a standard deviation of 100.
In TreeAge Pro, distributions that you define are stored in a list in the
tree and assigned an integer index and, optionally, a name (like a vari-
able name). A distribution can be used in a tree calculation either by
referencing it by name, or by using the Dist(n) functions, where n is the
distribution’s integer index.
Tip:
If you are in a tree window, instead
of a payoff dialog, choose Values
> Distributions to open the Distri-
butions dialog for adding or editing
distributions.
If you defined the Name property of the new distribution, this will be
inserted into the payoff expression. Otherwise, TreeAge Pro will create
a reference like “Dist(1)”. The Dist() function in TreeAge Pro is equiva-
lent to the DistSamp() function in TreeAge Pro 4.0 and earlier versions,
with the integer index of the distribution entered inside the parentheses.
The new definition of the pay_up variable should not change expected
value calculations (including sensitivity analysis), because the expected
value of the Normal distribution (its mean) is the same as the original
numeric definition of pay_up.
Keep in mind that Monte Carlo simulation with sampling can also be
performed at nodes other than decision nodes.
Saving the simulation output will allow you to share the complete
results with other TreeAge Pro users, or to generate graphs and reports
Clicking the Export button will output the complete list of simulation
results directly to a text file. For simulations with more than 1000 rows
of results, you must use this method to export the entire tabulated simu-
lation results for import into graphing or statistical analysis software.
Clicking the Text Report button will display the list of distribution
sample values and corresponding tree recalculations; the text report is
limited to displaying 1000 rows. Like other text reports, the simulation
report dialog or individual columns can be resized, and the text informa-
tion can be copied to the clipboard or saved to a text file.
Clicking on the Graph button lets you choose from among a variety of
TreeAge Pro’s built-in graph types. For all simulations, probability dis-
tribution histograms can be displayed for the model calculations, as well
as for any sampling distributions.
® To seed a simulation:
It is generally preferable to recalculate EVs for the model for each set
of randomly sampled parameter values (except in the case of certain
Markov models). Depending on the complexity of the model, perhaps
1,000 or more first-order trials would have to be averaged to approach
the EV, making first-order simulation computationally inefficient.
Note that each time you perform a simulation, this setting will reset
to the default behavior (using expected values to select optimal paths
before the simulation begins).
In this chapter:
Tables can also be used to represent values that should vary over time
or other “dimensions.” See the TreeAge Pro Healthcare module docu-
mentation for examples of time-dependent probability lookup tables in
Markov models.
Creating tables
TreeAge Pro stores tables separately from the tree (with the exception
of tree/table packages, described at the end of the chapter). A tables
has one index column and anywhere from 1 to 512 columns of values.
A table can effectively include up to approximately 30,000 rows of
numeric values (variables and formulas cannot be entered in a TreeAge
Pro table file). Values in the index column need not be consecutive inte-
gers.
There are two steps in the building a new table. First, you must create
an empty table, giving it a name just as you would for a variable. Then,
numbers must be entered in the table, either by pasting in an entire table
or by entering one index/value pair at a time.
The Table Properties window will prompt you to enter two names for
the table. The internal name serves the same purpose as a variable name,
and must follow the naming guidelines for variables. Although the
s Choose Values > Variables and Tables…, and select the appro-
priate table from the list.
If the selected table is currently empty, an Add Table Entry dialog (see
below) will automatically be opened over the Table window.
s In the Table window, choose Table > Add Table Entry… and
assign a new index/value pair.
The Table window’s Table menu includes commands for adding, delet-
ing, or modifying entries (one row at a time).
Usually, the preferred method for entering values into a table is to copy
the rows of table indexes and values from a spreadsheet or text editor,
and then paste it into the Table window. This is the only way to create or
edit tables with more than one column of values.
Before copying a table from a spreadsheet, you must ensure that the
selected index and value cells do not have any text or text formatting
(i.e., are free of currency symbols and parentheses, for example). The
copied region cannot include empty columns or rows.
s If the paste operation works, the Table window will open dis-
playing the new contents of the table.
The Paste Table operation will overwrite any current values in the table.
From within the Table window, it is also possible to choose Edit > Paste
Table.
If the Paste Table command is not available (grayed out), or does not
work as expected, ensure that the copied spreadsheet cells are format-
clean and that the other conditions described above have been met.
Column headings can be copied into a TreeAge Pro table along with the
numeric content of a table. Simply include the row of headings in your
initial selection, as shown at left, prior to copying. The title of the index
column must start with the word ”Index,” but the value columns do not
have title name restrictions.
s In the Table window, choose Edit > Copy Table to place the
table contents on the clipboard in tab-delimited format.
TableName[ index ]
For instance, you might create the simple table shown at left for use as a
distribution representing the cost of surgery. As you can see, the surgery
is most likely to cost $1000, with approximate 10th and 90th percentile
values of $800 and $1600, respectively.
s Choose Values > Distributions… to open the Distributions
dialog, and click New… to add a distribution. In the Distribu-
tion Picker dialog, click on the Table distribution button.
s From the list of tables, select the name of the probability dis-
tribution table you created. Click OK to close the Distribution
Picker dialog.
To use a random sample from the Table distribution in the tree, simply
refer to it in the same way as you would refer to any distribution (as
described in the previous chapter): use either the distribution’s name or
the Dist(n) function using the distribution’s index.
Sample values will only be drawn from exact table entry indexes,
regardless of which lookup method you specify.
The mean value of the Table distribution will be used as the distribu-
tion’s expected value in non-Monte Carlo calculations.
In the table, the possible values are placed in a value column (unlike the
Table distribution, above), while the index column is used to number the
entries in the table. You can then sample from the table using a uniform
sampling distribution over the range of table indexes; use the integer
form of the Uniform distribution (to return only integers in the index
range).
s Paste your data set into a TreeAge Pro table, using consecutive
integer indexes in the index column and the data set’s values in
the value column.
s For the low value, enter the lowest integer index from your
table (i.e., 0 or 1). For the high value, enter the highest inte-
ger index from your table. Click OK to close the Distribution
Picker dialog.
The actual reference in a tree formula should look something like the
following:
TableX[Dist(1)]
where “TableX” is the name of the custom distribution table, and inside
the square brackets is the reference to the Uniform distribution. During
a second-order simulation, the Uniform distribution will be resample
within its range, causing different rows from TableX to be drawn ran-
domly, with essentially equal likelihood if done correctly.
TableX[Dist(1); 2]
If you want to transfer a tree that uses tables to another computer, then
you can either: A) use TreeAge Pro’s File > Export… command to
create a “package” that contains the tree as well as its required table
files; or B) manually copy the table files from the source computer’s
TreeAge Pro Tables directory to the destination computer’s Tables sub-
directory.
The Tables Used report also includes a second listing of the names of
tables referenced in the tree, but missing from the Tables subdirec-
tory. If you receive a tree sent from another computer, but are unable to
calculate it because of errors related to missing tables, the Tables Used
report will allow you to copy a list of both found and missing tables.
Each table also has an option called “Index off edge is error.” If you
leave the option unchecked in a table that uses truncation or inter-
polation, a reference to a row index outside of the table’s range will
Tip:
The selection of lookup method does not affect which value column is used
in a reference to a table with more than one value column. There is no
interpolation between values in adjacent values columns. Only exact column
indexes can be used in references to multi-column tables.
All of TreeAge Pro’s graphs can be saved and reopened for later
viewing. Alternatively, the settings used to perform any analysis in
TreeAge Pro can be stored. This chapter provides instructions on saving
and using stored analyses, and on creating stored analysis sequences.
In this chapter:
s Choose Analysis > Storage > Save Last. You must choose this
menu item before doing another analysis, as TreeAge Pro has
temporary storage for only one set of analysis parameters.
The instructions TreeAge Pro needs to perform the identical analysis are
stored in the tree (the results of the analysis are not).
s From the list, select the analysis you wish to duplicate, and
click the Copy button. Close the Maintain Analyses dialog.
s Then, either in the initial Save Analysis dialog or, later, when
editing the stored analysis from the Maintain Analyses dialog,
click the Template… button.
s Select a graph template from the list, and click OK to attach the
template to the stored analysis.
A separate copy of the graph template is included with the stored analy-
sis. If you change or delete the original graph template, the copy in the
stored analysis will not be affected.
To change the template stored with an analysis, reopen the Choose Tem-
plate dialog from the Maintain Analysis dialog, and select another tem-
plate or detach the current template by clicking the None button.
The Maintain Analyses dialog box has some features which may be par-
ticularly useful when you are working on a Run-time custom interface.
The Run-time user of your tree can be presented with the same list of
analyses that appears in the Run Analysis dialog box.
You can use the Move Up and Move Down buttons in the Maintain
Analyses dialog to change the displayed order of the stored analyses.
To see how the user’s Run Analysis dialog box will look, pull down the
Options menu, and select Show Custom Interface.
Using TreeAge Pro Interactive, you can build custom analyses that are
more complex than those built into TreeAge Pro, even using the analy-
sis storage and sequencing features.
s After storing the analysis, choose Analysis > Storage > Main-
tain Analyses. In the Maintain Analyses dialog, click the New
Sequence button.
The stored analyses listed in the Maintain Analyses dialog will also
show up in the list on the left of the Sequence Stored Analyses dialog,
shown on the following page. Note that existing sequences cannot be
used in a new sequence, and will not be included in the list of available
analyses.
s In the dialog, select a variable from the list, and enter a value
or expression with which to redefine the variable. Click OK to
add the variable definition to the end of the sequence.
Once you are certain you have the correct sequence of analyses and def-
initions, you can store the new sequence. Note that once a sequence has
been stored, it cannot be directly modified.
Chapter 18: Storing Analyses and Analysis Sequences 237
® To save the sequence in the tree:
s Select the sequence from the list of stored analyses, and click
the Run button.
If a formula is specified in the Set Variable dialog and either (A) the
Evaluate immediately option is not checked, or (B) Evaluate imme-
diately is checked but definitions are not found at the root node for all
variables used in the formula, TreeAge Pro will not create a numeric
definition of the variable in question. Instead, a text definition of the
variable will be created at the root node using the specified formula.
Tip:
The Set Variable dialog can also be used to assign a random value to a
variable between analyses, using the Dist() function described in Chapter
16. A sequence can be created that includes a Set Variable command like
pCancer = Dist(n; 1). Immediate evaluation of this expression between
analyses will result in a random numeric definition of the variable.
Let’s say that you will create a sequence in which the numeric value of
the variable Var1 is changed between analyses. The numeric definition
Next, set up the rest of the sequence. At the end of the sequence, reset
Var1 to its original, pre-sequence value by adding the definition “Var1
= BK_Var1” with the Evaluate immediately option checked. This will
redefine Var1 at the root node with its original numeric value, 7.5, as
stored in the variable BK_Var1.
The chapters in Part III provide information on using variables and distributions in decision trees,
primarily to represent uncertain values when performing sensitivity analysis and Monte Carlo
simulation on these variables. It also provides information on storing analysis instructions,
making it easier to perform analyses that require a complicated setup procedure.
In this part:
• Chapter 21, "Large Trees: Using Clones, the Explorer View, and Links"
In this chapter:
However, the new drug actually halts fewer infections over its shorter
course of treatment, which results in a higher number of amputations.
Based on the experience of your medical center, you estimate the costs
and probabilities and put them into a decision tree, shown below.
Here are the component costs that are used to calculate total cost for
each scenario:
parameter value
Regular antibiotic $500
New antibiotic $500
Inpatient cost per day * $1,000
Foot amputation $5,000
Foot prosthesis $2,000
Loss of foot, physical therapy $10,000
Leg amputation $10,000
Leg prosthesis $10,000
Loss of leg, physical therapy $25,000
Life saving measures $10,000
(* To calculate the basic cost of the hospital stay associated with the
various scenarios, the number of inpatient days for each is also esti-
mated and multiplied by the per diem cost.)
The numeric cost payoffs specified for each outcome in the Cost For-
mula tree have been hand-calculated using a formula combining the
appropriate costs for each particular scenario, including costs of hospi-
talization, drugs, surgery, prosthetics, physical therapy, and other care.
Much of the work required to make the tree more flexible has already
been accomplished. All necessary variables have been created in the
tree, and each has at least one definition. The remaining tasks to be done
in the tree are:
All terminal nodes should now indicate that no payoff has been
assigned. Now, update all the terminal nodes to use Total_Cost as the
formula for payoff #2.
s Choose Edit > Select If..., select the node type category, and
Terminal (or, position in tree = right-most). Click OK. (See
Chapter 8 for more on the Select If dialog.)
At this point, although the tree can calculate without causing errors, it
will not calculate costs correctly because most of the components of
Total_Cost are actually set to zero.
Let’s examine the tree to see where and how variables are currently
used and defined in the tree, and where definitions need to be added or
modified.
Tip:
There are two important exceptions to the right-to-left search rule. One
involves the recursive definitions of variables, which will be covered at the
end of this chapter. The other exception involves the evaluation of tracker
variables; refer to the Healthcare Module documentation for details.
The tree fragment below illustrates how and where to add definitions of
the variables used in the Total_Cost formula (other solutions are pos-
sible, as will be seen later in this chapter).
All payoffs in the tree reference the same variable, costX, which has no
default definition. The decision node’s topmost subtree, labeled Good
Recursion, illustrates a valid recursive definition. When calculating the
payoff of the first terminal node in the Good Recursion subtree, labeled
For the purposes of the current terminal node payoff calculation, costX
is now identified as a recursively defined variable. The search for addi-
tional definitions of costX is now continued one node to the left, at the
Good Recursion node. There, the non-recursive definition costX=10 is
found, the search is complete, and the payoff calculation can be carried
out.
Select the terminal node labeled High in the Good Recursion subtree,
and choose Analysis > Expected Value. The calculated value is 20.
Look at the second branch of the decision node, labeled Bad Recur-
sion. In this subtree, when either terminal node’s payoff is evaluated,
TreeAge Pro’s variable definition search locates a recursive definition.
In both cases, the search for additional definitions is started one node to
the left, at the Bad Recursion node. No non-recursive definition of x has
been made there or at the root node. Therefore, if you try to calculate
the Bad Recursion subtree, an error message will be shown. To see this,
select the Bad Recursion node or either of its terminal nodes and choose
Analysis > Expected Value command.
Complex recursion
Other variables may be referenced in a recursive definition. To see
how TreeAge Pro’s variable definition search works with a combina-
tion of recursive and non-recursive variables, open the Multi-Variable
Recursion tree from the TreeAge Examples subdirectory. To better
explain this complex example, the text will illustrate the incremental
changes in the payoff calculation formula during TreeAge Pro’s variable
definition search.
All payoffs in the Multi Variable Recursion tree use the same vari-
able, costX (payoff = costX). When the terminal node labeled Z is
evaluated, the variable definition search finds the recursive definition
costX=costX+costZ at the terminal node (payoff = costX + costZ).
Before a recursive search for costX is continued one node to the left,
TreeAge Pro looks for a definition for costZ. The variable costZ is eval-
uated as a normal variable, which means that the search for a defini-
tion of costZ is started at the node being calculated, the terminal node
Z. A normal right-to-left search locates the non-recursive definition
costZ=1000 at the root node (payoff = costX + 1000).
Users of the Excel module also have the option of creating a fully-
linked influence diagram from a spreadsheet; see the Excel module
documentation for details.
In this chapter:
Excel Add-in:
Users of the TreeAge Pro Excel module have two additional, easier options
for setting up dynamic links. Dynamically-linked influence diagrams can be
automatically imported from a spreadsheet. Or, all of the steps required to
set up dynamic links with a tree can be performed using the TreeAge menu
in Excel. See the Excel module user’s manual for more details.
s Select the cell (or range of cells), click in the Name box
(shown at left), type a one word name (like a TreeAge variable
name), and press the ENTER key to save the name.
If a cell (or range of cells) already has a name defined, it will appear in
the Name box when the cell (or range of cells) is selected.
Tips:
The other way to assign names to cells in the Excel spreadsheet is by select-
ing the cell (or range of cells) and choosing Insert > Name > Define…. The
dialog displayed is used to manage existing names in the spreadsheet.
The link will be displayed in the list of outputs from Excel. Any number
of outputs can be pasted into the tree, so each is assigned a numeric
index. As is explained below, this integer index will be used in the
Bilink() function to reference the appropriate output cell’s value in tree
calculations. Along with the output link index, the cell’s name and cur-
rent value are displayed.
Pasting the first dynamic output link will automatically fill in the
required Excel Source File item, at the bottom of the Dynamic Links
dialog. All outputs and inputs must be to cells in this one file; the cells
can be located on any of its worksheets, however.
The source file can also be selected manually. For example, if the path
or name of the spreadsheet changes, all the link outputs and inputs can
be pointed to the new spreadsheet by changing the source filename.
s Open the Dynamic Links dialog. Under the Excel Source File
section, either edit the name manually or click the Browse…
button and search for the file.
s Open the Dynamic Links dialog, select a link output, and click
the Properties… button.
In our example, however, we need the Cost output cell to return differ-
ent values for each terminal node. To accomplish this, we will connect
the Num_days and Per_diem variables to the two cells that are inputs to
the Cost output cell. Each terminal node will have different definitions
of these input variables, and will therefore receive a different calculated
value from the Cost output cell.
c For the second pair, select Per_diem for both the variable and
cell, then click OK to return to the Dynamic Links dialog.
The list in the Inputs to Excel section will show each linked variable
and input cell pair, along with the cell’s current value.
c The Bilink tree already has the variable Cost assigned to each
payoff. Now, select the root node and define Cost equal to
Bilink(1).
Tip:
If the link is to a range of cells, the Bilink() function‘s index argument is followed
by two more integer arguments — the row and column of the desired cell within
the range. For example:
Bilink(1; 10; 2)
will retrieve the value from row 10, column 2 of link #1’s region of cells.
Once the dynamic link is created, all calculations will utilize the link-
age, not just roll back.
Once the dynamic link is set up, even if the spreadsheet is closed when
you try to calculate the tree, TreeAge Pro can start Excel and open the
spreadsheet automatically. If the a named, linked cell is moved within
Tip:
When building a tree in TreeAge Pro, the ability to link to cells in a spread-
sheet offers a powerful and flexible means of viewing and modifying values
in the tree. However, a complex tree making use of links will not calculate as
rapidly as a model which does not use links. Also, analyzing a tree making
use of the Bilink() function requires that the linked spreadsheet always be
present.
s In the DDE Links dialog, press the Paste Link button, and note
the index of the newly created link. (If the Paste Link button is
unavailable after copying a source item, refer to the section on
link requirements, below.)
Changing the location of the client tree will not break the link, as long
as the server document is still accessible. However, if the location or
name of the server document, worksheet, or cell reference has been
changed, the link will be broken, and you must update the link using
the Link Properties dialog.
If you need to change many links’ paths at the same time, use the
Replace Directories dialog. With the Replace Directories dialog, you
can quickly update the path property of some or all of the links in the
active tree. TreeAge Pro will find all occurrences of the search text in
the selected source documents’ paths, substituting the new path string
you specify. This can be particularly useful if you create multiple links
to a spreadsheet, and then have to move the spreadsheet to a different
directory, drive, or computer.
s In the Links dialog, select all the links with a common path
element to update, and then click on the Replace… button.
Note that changing the location of the client tree will not affect the link,
as long as the server document is still accessible.
The Copy Link button in the Links dialog box enables you to duplicate
one or more client-side DDE links from one tree to another. In the
Links dialog of the original tree, select the links that you would like
to pass to another tree and click the Copy Link button. Then, open the
Links dialog box in the other tree and choose Paste Link.
Tip:
Users of the TreeAge Pro Excel module can use the TreeCalc() worksheet
function to dynamically set a cell’s formula to a node’s expected value.
Each application handles its own client-side DDE links differently; con-
sult the application’s documentation for details.
When using DDE, both documents must be open for updating to work
predictably. If the client document is closed when you roll back the
tree, it will not receive these newly calculated values.
If you are unable to arrange all linked cells on a single, top-most work-
sheet, then you should ensure that both the spreadsheet and tree are
open whenever you make changes to values or formulas in the spread-
sheet. Linked cells not in the top worksheet will only be updated in the
tree when the spreadsheet is recalculated while the tree is open.
This chapter focuses on a number of features in TreeAge Pro that can minimize
the difficulties involved in working with very large trees.
In this chapter:
CHAPTER 21: TOOLS FOR LARGE TREES: CLONES, THE EXPLORER VIEW, AND LINKING
Chapter 21: Tools for Large Trees: Cloning, the Explorer View, and Linking 267
Working with Very Large Trees
Working with very The tutorials in the manual focus on the construction and analysis of
simple, small models. The trees that you build on your own may be
large trees
much larger, including hundreds or thousands of nodes.
There are reasons to keep trees as simple as possible. Not only are
larger trees potentially more difficult to maintain and update, but you
also risk losing the tree’s usefulness in graphically communicating your
model. Although there is no substitute for keeping a model as simple
and focused as possible, TreeAge Pro offers many features designed to
avoid or minimize some of the problems associated with large, complex
models.
There are several software features, covered already in this manual, that
can speed up the processes of creating and updating large trees. These
include:
There are also a number of modeling features in TreeAge Pro that can
reduce the working size of tree structures. This chapter covers two of
those features: using cloned (rather than copied) subtrees; and link-
ing multiple trees. Cloning, in particular, is a very powerful feature.
Efficient use of clones in a model might result in a highly complex tree
being created using only dozens of nodes and a handful of clone copies,
while without clones the same tree might have thousands of editable
nodes that must be updated.
The same menu commands are available no matter which view you are
using to navigate through a tree. While the main tree editing view is
richer in functionality, the Explorer view has a number of specialized
capabilities.
s Click on the plus (+) sign to the left of a node symbol to dis-
play its hidden branches.
Chapter 21: Tools for Large Trees: Cloning, the Explorer View, and Linking 269
A node without a plus or minus sign to the left has no branches/subtree.
s Press and hold down the CONTROL key, then click and drag a
node with branches to another node.
The Explorer view can be made wider, in order to view more text or
generations of nodes, or narrower, in order to make more room fro the
main tree view.
s Place the cursor on the bar separating the Explorer view and
the tree window, and click and drag the bar to the left or right.
Cloning subtrees
Cloning subtrees In addition to being able to duplicate existing subtrees using the Copy/
Paste Subtree commands, it is also possible to create clones of subtrees
(within a single tree). The basic difference between attaching clones and
pasting copies is that a copied/pasted subtree can be edited; these copies
do not automatically update when changes are made to the original.
Clone copies, on the other hand, are linked dynamically to the original,
master subtree, and are not directly editable.
A clone copy always automatically takes its structure and other contents
from its clone master (unless the relationship is explicitly broken).
Chapter 21: Tools for Large Trees: Cloning, the Explorer View, and Linking 271
s Provide a short, descriptive name to identify this clone master.
If the preference to display clone copies is turned off (see
below), this name will appear next to the root node of each
attached clone copy.
Clone masters are also assigned a numeric index, to appear next to the
clone master node.
Once the clone master has been created, the next step is to attach clone
copies at appropriate node(s).
Changes made to the name and index properties of the clone master will
not break the linkage with clone copies.
s From the list, select the appropriate clone master, and click on
the Destroy button.
If you have attached clone copies based on a master subtree which you
are going to destroy, but you wish to replace the clone copies with regu-
lar (i.e., unlinked and editable) copies, you should individually detach
each clone copy.
You will be given the opportunity to leave a regular copy of the master
subtree when a clone copy is detached. If you need to change which
Chapter 21: Tools for Large Trees: Cloning, the Explorer View, and Linking 273
clone is attached at a particular node, detach the current clone copy and
specify that you do not want to keep an editable copy of the cloned sub-
tree at the selected node.
Nesting clones
An important aspect of clones is the ability to nest clone masters. In
other words, a single subtree may be comprised of multiple, independent
clone masters, and also include various clone copies, as well. The tree
shown below has three, nested clone master subtrees. Clone masters 1
and 2 include nested clone masters and copies.
When clone copies are hidden, just the name of the clone master is dis-
played to the right of the node where the copy is attached. Hiding clone
copies does not affect calculations in any way. Hidden clone copies will
be updated when changes are made to the clone master.
Chapter 21: Tools for Large Trees: Cloning, the Explorer View, and Linking 275
A common by-product of reducing tree size by hiding clone copies is
enhanced clarity. The essential features of the replicated subtree may be
understood by examining the clone master, which is the only instance
of the subtree that is displayed. In addition, the cloning linkages within
the model, which might otherwise be missed, are clearly visible, as each
clone copy indicates the master to which it is linked.
Note:
In DATA 3.5 and earlier versions, clone copy nodes were saved to disk,
potentially resulting in a very large file – as large as the same tree created
without clones. TreeAge Pro saves only the information needed to regenerate
the clone copies. In addition to reducing tree file size, this change speeds
up saving and closing files.
Turning this setting on also hides existing clone copies, if not already
hidden using the tree preference described earlier in this chapter. It also
temporarily disables the commands used to create new clone masters
or attach new clone copies. To create new clones, you must turn off the
suppression of clone updating.
Tip:
Simply hiding clone copies using the Tree Display preferences is not the
same as suppressing clone updating.
The Node() function’s arguments are used to pick a node in the tree and
a type of calculation to perform at that node. The function syntax is:
Node(attribute; method; branch list…)
Chapter 21: Tools for Large Trees: Cloning, the Explorer View, and Linking 277
Setting attribute to 0 disables the calculation and returns a value of 0;
setting it to an integer greater than 0 performs the node calculation.
(See the Healthcare module documentation for information on appropri-
ate settings for the attribute argument in cost-effectiveness trees.) The
Global() function can be used to update values in the “master” subtree,
if necessary, before it is recalculated; see Appendix D for details on
using the Global() function.
The branch list is a series of branch numbers used to pick a node to cal-
culate. At least one branch number must be specified, to select a branch
of the root node. To select a branch of that branch, add a second integer
to the list (and so on). The numbering of a node’s branches starts at 1,
for the top branch.
Nested trees
Nested trees For some trees, it may be possible to divide the model into multiple
parts through the use of separate, linked trees. By nesting trees – design-
ing one master tree and one or more subsidiary trees to feed into it – you
can segregate some events and keep each tree more manageable than a
single large tree that models everything.
See the information on the Node() function, above, for a possible alter-
native to the use of nested trees.
After creating the subsidiary tree, simply create a link to its expected
value utilizing DDE; see Chapter 20 for information on creating links.
With the link information on the clipboard, the dynamic link between
trees can be created.
s Choose Edit > Copy Special..., and paste the link (using
Edit > Paste Link) into the probability field of the node in the
master tree.
Rather than referencing the link directly in the probability field, a vari-
able can be created in the master tree to represent the primary outcome’s
probability. That variable can be then be defined default for the tree
using the link reference.
When the master tree is calculated, it will evaluate the branch prob-
ability using the last available expected value from the subsidiary tree.
Changes made to the subsidiary tree will be reflected in the master tree’s
Chapter 21: Tools for Large Trees: Cloning, the Explorer View, and Linking 279
calculations through this probability. Both trees must be open when the
subsidiary tree is recalculated, in order for the master tree to update the
link value.
In this chapter:
You are urged to employ this option cautiously, only after giving careful
consideration to the potential hazards of turning off the error checking.
As precautions against unintended use, TreeAge Pro will not save this
preference as a default setting for new trees, and will prompt you to
confirm this preference each time a tree using it is opened.
Note:
Non-coherent probabilities are not compatible with microsimulation (first-order
trials), but can be used in probabilistic sensitivity analysis using expected
value calculations.
Rolling back the tree shows the mean values of the probabilities, which
are simply the normalized alpha parameters.
Note:
In TreeAge Pro 2004, simulation text reports and graphs report only the first
sampled Dirichlet probability. However, it is possible to use either a tracker
variable or TreeAge Pro’s Global() matrix function to store and report each
sampled probability. For example, to create a table of a branch’s sample
values, wrap the Dist() function reference in the Global() function, as in:
Global( _sample; branch; Dist(1; branch))
See Appendix D for more details on using the Global() function, including
how to dynamically save a text file of the Global matrix.
TreeAge Pro offers two methods for combining the specific advan-
tages of a chance node and a sampling distribution. The more flexible,
dynamic option involves use of the DistKids() probability function at a
chance node, as described in this section. The other option, the Options
menu’s Distribute Children command, is covered in the next section.
The behavior of the function during any calculation (not just Monte
Carlo simulation) is to randomly sample n values from the selected dis-
tribution, creating n virtual branches (each with equal probability, 1/n,
and each assigned a randomly sampled value). The value of the chance
node is the average of the values of the n replicates of the tree structure
to the right, with each replicate calculated using a sample value for the
parameter.
Roll back displays the single visual chance node branch with a proba-
bility of 1/n, where n is the number of branches specified in DistKids().
In most cases, you will probably want to accept the default setting, to
assign each node an equal segment from the full range of the distri-
bution. If you click Equal Ranges, TreeAge Pro will calculate the prob-
ability to be used for each branch. However, you may instead assign
each node an equal probability. If you do so, TreeAge Pro will calculate
the value of the distribution for each node, as described below.
You may also drag the handles which separate the nodes to create a
custom allocation of the distribution.
TreeAge Pro assesses the probability for each branch by finding the area
beneath the curve over the node’s range. The value of the distribution
variable at a given branch is the midpoint of that node’s range. In some
circumstances, the probabilities of the branches may not add to 1.0 due
to rounding error. If so, slight manual corrections to the calculated prob-
abilities will avoid an error message when you try to calculate the tree.
BAYES’ REVISION IN
DECISION TREES
This chapter shows how, in the tree window, TreeAge Pro can assist
you in performing the calculations that implement probability revision
using Bayes’ theorem.
In this chapter:
The decision probabilities are so named because in the real world, they
are the probabilities upon which decisions are based. These are also
sometimes called posterior (or a posteriori) probabilities.
Note that the structural limitations specified above apply only at the
time of using TreeAge Pro’s automatic Bayes’ revision command. After
TreeAge Pro calculates and inserts the decision probabilities, you may
refine the structure of your model to include asymmetries or interme-
diate events, including decisions interposed between the evidence and
hypothesis nodes. The structural requirement allows TreeAge Pro to
decipher the natural structure of your problem during the probability
revision calculations.
If you use variable names for the probabilities that you enter, you can
easily perform sensitivity analysis on these parameters. It is also pos-
sible to enter numeric probabilities.
After you have completed the entry of probabilities, TreeAge Pro will
create an additional set of variables representing the revised prob-
abilities to insert into your tree. These variables are automatically set to
hide their definitions (at the test node)
Tip:
If you tell TreeAge Pro that you have sensitivity and specificity informa-
tion for the test in question, you will need to indicate which evidence node
represents a positive test result and which hypothesis node represents the
presence of the condition for which you are testing.
Let’s get started with an example of Bayes’ revision in the tree window.
s Open the file Oil Drilling Bayes, found in TreeAge Pro’s Tuto-
rial Examples subdirectory.
No Open Closed
Structure Structure Structure
Given Dry 0.6 + 0.3 + 0.1 = 1.0
Given Wet 0.3 + 0.4 + 0.3 = 1.0
Given Soaking 0.1 + 0.4 + 0.5 = 1.0
Take a moment to examine the structure of the Oil Drilling Bayes tree.
The extra decision node at the root will be explained later. The chance
node closest to the root node has three branches representing the pos-
sible results of the seismic soundings. The results of the test are the first
event in the tree. The ultimate condition of interest is the amount of oil
that can be extracted, and this uncertainty is represented by the three
subtrees with the branches Dry, Wet, and Soaking.
TreeAge Pro will prompt you to create the new variable pDry.
After the last required expression is entered, TreeAge Pro will define
another set of variables, at the selected test node, to hold the formulas
for the decision probabilities.
s With the test chance node still selected, choose Values > Show
Variable Definitions Window.
The window should show a list of definitions like that on the next page.
You may later perform sensitivity analysis on any of the variables you
created to represent underlying quantities, both prior probabilities and
likelihoods. You should not perform sensitivity analysis directly on the
decision probabilities created by TreeAge Pro and used in the chance
node branches. Analyzing the prior and likelihood probabilities, instead,
will work correctly.
In the Oil Drilling Bayes tree, you can select No Structure, Open Struc-
ture, and Closed Structure, one at a time, and choosing Options > Insert
Branch. Choosing to insert a branch to the right of each will create new
chance nodes.
Any variables already created in the tree may be selected from the pop-
up menu and inserted into the expression.
Tip:
If, as in the example, the test node is an internal node, entering both a new
variable name and a numeric value in the Bayes’ revision dialog, and then
giving the new variable a numeric value in the Properties dialog, will create
definitions in two places: at the selected test node and at the root node of
the tree. The root node definition will, of course, be overridden in the Bayes
subtree by the Bayes node definition. The risk is that the modeler may change
the value at the root node definition, but not at the Bayes node definition,
resulting in incorrect calculations.
In this chapter:
To make this game more interesting, assume that your uncle complicates
matters by offering an alternative opportunity. The alternative is also a
coin flip. Under this one, you will receive $50,000 if you are correct, but
you will have to pay him $5,000 in the event you lose on the coin flip.
There will be only a single coin flip; it is up to you to choose between
the two. As you will see, it may not be wise to base your decision solely
on traditional expected value calculations. The tree below models your
uncle’s offer.
As the tree illustrates, there are two lotteries. Both provide the same
(50 - 50) odds of winning, but they have different outcomes. You must
choose one of them. On the basis of expected value, you should choose
lottery #2. Its expected value ($22,500) is more than four times that of
lottery # 1 ($5,500).
However, what about the risk posed in lottery #2 that you could actually
end up losing $5,000? At least in lottery #1 there is no risk of being out-
of-pocket – you are guaranteed to win something. How one responds to
the downside risk posed by lottery #2 involves a subjective analysis of
the decision maker’s aversion to risk.
Note:
Risk preference functions can be used only if the calculation method is set
to Simple.
Most decision makers are risk-averse to some degree. They are willing
to pay a premium, small or large, to avoid risk. Their certainty equiv-
alent for any lottery will be lower than the lottery’s expected value. In
contrast, a risk-seeking decision maker is one whose certainty equiv-
alent for a lottery is higher than the lottery’s expected value. The risk
taker is willing to pay a premium in order to participate in the lottery.
There are two types of curves, or risk functions, which TreeAge Pro can
use. The first is called the constant risk-aversion function. It is calcu-
lated by using the formula:
U( x) = 1 − e− x / R
What is the most you would invest under these circumstances? This
amount is referred to as your risk preference coefficient.
Tip:
To extend the range of payoffs used in building the risk preference function,
add a zero probability event somewhere in the tree with the highest (or
lowest) possible value to represent in the function.
After entering the non-constant risk function, it can be graphed from the
Analysis menu; the graph’s text report will show the values used in the
function.
s Select the root node and choose Analysis > Payoff Range, to
ensure that your model calculates correctly (to create the risk
preference function, TreeAge Pro must determine the range of
potential payoff values).
Other options
Risk preferences can also be set up via the Preferences dialog box. From
there you may turn the risk preference function on or off, and enter the
risk preference functions.
If you are using the constant risk-aversion preference function, you may
perform a one-way sensitivity analysis on the risk preference coef-
ficient. At the bottom of the list of variables specified in the sensitivity
analysis dialog box will appear Risk Preference Coeff. If you select this
“variable,” your analysis will graph the effect of varying the coeffi-
cient’s value.
For further reading on risk preference, refer to the general texts on deci-
sion analysis listed at the end of Chapter 1.
This chapter describes TreeAge Pro InteractiveTM and the TreeAge Pro
2004 Run-time version, both of which are designed to make it possible
to distribute decision trees beyond the community of TreeAge Pro users.
Using TreeAge Pro 2004, you can quickly create a simple interface
for your tree which can be shared via the Run-time version. TreeAge
Pro Interactive, on the other hand, is a powerful software component
that can be used to integrate any tree with a wide variety of custom
interfaces, including: Excel macros; stand-alone Visual BasicTM or
FlashTM applications; and Internet-based applications hosted on
Windows servers.
In this chapter:
Chapter 25: TreeAge Pro Interactive and TreeAge Pro Run-Time 309
Developing TreeAge Pro Interactive™ applications
Developing TreeAge Pro TreeAge Pro Interactive is an ActiveX control used to integrate TreeAge
InteractiveTM applications Pro decision trees with web sites, databases, spreadsheet macros, and
custom applications. With TreeAge Pro Interactive, it is possible for
applications such as browsers, spreadsheets, and Visual Basic programs
to view, update, and analyze trees created in TreeAge Pro.
Technical information
TreeAge Pro Interactive is a separate software component available
from TreeAge Software which allows trees to be integrated with stand-
alone Windows applications, as well as multi-user applications, includ-
ing Windows web server applications. In a web environment, since all
processing can be done on the server side, there is no restriction on the
choice of operating system or browser used to access the model, making
TreeAge Pro Interactive useful for worldwide distribution of models.
Chapter 25: TreeAge Pro Interactive and TreeAge Pro Run-Time 311
Creating Run-time custom interfaces
Creating Run-time custom The Run-time version of TreeAge Pro offers another means of distribut-
interfaces ing decision analyses to clients (or others in your organization). It has
all of the analysis capabilities of TreeAge Pro, but no model-building
features. Using TreeAge Pro’s built-in Custom Interface designer, in a
matter of minutes a simple interface can be set up to allow users of the
Run-time software to interact with your model. Low-cost licenses of the
Run-time software can be purchased from TreeAge Software, Inc. and
downloaded by the end user.
Run-time custom interfaces are useful for projects which do not require
either TreeAge Pro Interactive's Internet/intranet capabilities, or the high
level of control over interface customization possible with Visual Basic
and other programming tools. All customization is done in TreeAge
Pro and stored in the tree. Simplified input windows allow for changing
selected parameters and performing preset analyses.
How it works
The first step, of course, is building the necessary model or models in
TreeAge Pro. Designing a Custom Interface for one of your trees is
quite simple:
The Basic mode is primarily for clients who do not need (or should not
be allowed) to see the tree directly. You may optionally permit them to
view the tree structure, but all menu items will be disabled.
When a Basic mode file is opened with the run-time version of TreeAge
Pro, a gray window (the “Basic Client Window” or “BCW”) with sev-
eral buttons will appear. The two most important are the Change Values
and Analyze buttons. By clicking on the Change Values button, a client
can change specified parameters in your model by entering the new
values in a simple list, without having to select the appropriate node and
then open the Define Variable window. The Analyze button will bring up
a list of analyses prepared (i.e., stored) by the model builder for use by
the client.
The Extended mode is for clients who are more savvy about decision
trees. When an Extended mode file is opened with Run-time TreeAge
Pro, the tree is in full view. In contrast to the Basic mode, where a single
Change Values dialog applies to the entire tree, each node in the tree can
have its own Change Values dialog box for changing model parameters
locally.
Chapter 25: TreeAge Pro Interactive and TreeAge Pro Run-Time 313
In either mode, stored analyses created by the model builder may be run
by the client. In the Extended mode, it is also possible to allow clients
to run certain of their own analyses, since the model builder can decide
which Analysis menu items are to be disabled and which are to remain
active.
Tip:
Remember to maintain backup copies of your original tree, without the
Custom Interface features. The Custom Interface becomes a permanent
part of a tree file.
If you opt to allow clients to change the active calculation method, they
will see a pop-up menu in the interface that will allow them to select
from the items you enter in this dialog. The client’s current selection
for calculation method does not affect the list of stored analyses, so you
must indicate for each stored analysis any dependence on a specific cal-
culation method.
Chapter 25: TreeAge Pro Interactive and TreeAge Pro Run-Time 315
The list in the top-left corner of the dialog shows all variables with
default definitions. At the bottom is the list of parameters that clients
will see. To move a variable from the top list to the bottom list, use your
mouse to select the variable in the top list and click the Add button. This
will open the Add Parameters dialog, shown below.
The description, comment, low value, high value, and default (baseline)
value displayed initially in the Add Parameters dialog for a variable are
taken from the variable’s Properties dialog (see Chapter 13 for details),
but can be changed and are maintained separately from the regular set
of variable properties.
• Description: The text you enter here will be seen by the user
in the Change Values dialog, instead of the variable’s name.
If you have previously entered a short description for the
variable (in the Properties dialog), that description will be
used by default.
• Comment: If you have entered a longer comment for the
variable (in the Variable Properties dialog), the user will see
a button labeled with a “?” to indicate that more information
is available for a particular parameter.
• Low/High values: These specify the range of values that
you will allow clients to enter.
• Default value: The client always has the option of resetting
a given parameter to this default value. Note that the default
value is not used initially. When a client first opens the
model, the initial values are those that are saved in the tree.
If you allow clients to save the tree, whenever the tree is
reopened, the initial values used are those that were saved,
not the specified default values.
• Allow probability wheel: If the low and high values are 0
and 1, you may allow clients to enter this parameter by using
the wheel. Unlike the wheel when it is called directly from
the tree window, this option will work only on one value at
a time. Thus, if you have a chance node with more than two
branches whose probabilities you would like to allow users
to change, you have little control over the coherence of the
probabilities.
Chapter 25: TreeAge Pro Interactive and TreeAge Pro Run-Time 317
• Integer values only: If this box is selected, only integers
will be allowed. Otherwise, any real number in the specified
range is accepted.
• On/off switch: If you select this option, clients will not see a
numeric editor in the Change Values dialog. Instead, a check
box will be displayed with the name you enter. The client’s
selection will be stored as 1 if the check box is selected, and
0 if it is cleared. The default value must be 0 or 1 to indicate
the initial state of the check box.
Every analysis available in the Analysis menu may be stored for use
from the Basic Custom Interface except Graph Risk Preference Func-
tion, Show Optimal Path, Verify Probabilities, and Roll Back. If you
set the Basic Options so that the user can see the tree, they will have
the option of running any of these analyses from the Analysis menu.
In order to deactivate the Analysis menu when the tree is displayed, the
designer must temporarily switch the tree to extended interface mode
and disable the Analysis menu items there.
To view the Basic Custom Interface, simply select Options > Show
Custom Interface. This will activate the BCW. As a designer, you will
always have access to the Show Tree button, even if you have not
enabled this option for your clients. To fully test the interface, open the
tree using a purchased Run-time version of TreeAge Pro.
From the Design Custom Interface dialog, press the Extended radio
button to begin designing the interface. Press the Extended Parameters
button, and you will see a list of all variables in your tree.
A variable will be ready for use in the Extended Custom Interface if all
of the following apply:
• it is shown in the tree;
• it has an assigned range of values (the low and high
values will be used to check the validity of the user’s
input);
• it has a short description; and
• it is not a Monte Carlo tracker variable.
You may verify these characteristics (or set them) in the Properties
dialog box, which you can access by pressing the Properties button
either here or in the Define Values dialog box. If all of the above crite-
ria are met, a "+" symbol will appear in the Ready for ECI column in
the list box of the Extended Custom Interface Parameters dialog. How-
ever, the only definitions of that variable which may be modified by cli-
ents are those which are numeric.
If, for example, the variable TestCost is designated Ready for ECI, cli-
ents will be able to use the Change Values dialog box (described below)
to modify any numeric definition of TestCost. Any instances where
TestCost is defined in terms of another variable, or where the definition
consists of an expression, will not be modifiable.
These limitations are not necessarily imposed when the user runs analy-
ses directly from the Analysis menu, if you so permit in the Options
dialog, discussed above. For example, if you permit the client to select
Analysis > Sensitivity Analysis..., the client will be able to run a sensi-
tivity analysis on any tree variable.
Chapter 25: TreeAge Pro Interactive and TreeAge Pro Run-Time 319
In addition, clients may be allowed to perform their own analyses, as
described above.
The probability wheel can be very useful in the Extended Custom Inter-
face. In order to enable its use at a particular chance node, you must
ensure that at least one branch has a probability stated as a variable that
has been prepared for the Extended Custom Interface. (This variable
need not be shown in the tree.) Clients using Run-time TreeAge Pro will
not be able to change the storage location for probability values. See
Chapter 12 for detailed instructions on using the probability wheel.
Chapter 25: TreeAge Pro Interactive and TreeAge Pro Run-Time 321
322 Part IV: More Tree-Building Tools and Options
Part
Part IIIV
WORKING WITH INFLUENCE
DIAGRAMS
The two chapters in Part V detail TreeAge Pro’s influence diagram interface. These chapters
cover the basics of influence diagrams as well as advanced topics such as asymmetry, Bayes’
revision, and EVPI.
See the TreeAge Pro Excel module documentation for information on converting a spreadsheet
into a fully-linked influence diagrams.
In this part:
In this chapter:
Bayes’ revision
TreeAge Pro’s implementation of influence diagrams includes some
features that simply are not available in the tree window. Influence dia-
grams can, for example, automatically calculate posterior probabilities
using Bayes’ revision with multiple sequential tests (the tree window’s
implementation of Bayes’ revision can handle only a single test). More-
over, TreeAge Pro’s implementation of Bayes’ revision is handled more
intuitively in the influence diagram window. For example, in the tree
window, you must perform Bayes’ revision prior to modeling any inter-
vening decisions. Since this restriction does not apply to influence dia-
grams, several steps in the model-building process can be avoided.
Tip:
The no-forgetting principle of arcs simply states that if a node precedes a
decision, it must also precede all subsequent decisions. Thus, the infor-
mation is remembered at all subsequent decision points. In TreeAge Pro,
no-forgetting arcs are not required, so long as you draw an arc from each
decision or chance node to its immediate successor decision node. However,
in order to avoid confusion when sharing your model with others, you may
want to include arcs to all subsequent decisions.
Asymmetry
Asymmetry This topic was covered initially in Chapter 3. If you have not worked
through the tutorial in that chapter, it may be helpful to do so now.
Node variables
Each node in an influence diagram can represent a parameter in your
model’s calculations. TreeAge Pro will automatically generate a con-
forming variable name from the node name when you first create it. You
will be able to modify the variable name at any time. See Chapter 13 on
variable naming rules in TreeAge Pro.
s Select the node, and choose Variable from the right-click pop-
up menu (or from the Diagram menu in the main menu bar).
Setting this flag will prevent the node’s variable from being defined in
the tree. As a result, the node’s variable will not be available for use in
the payoff formula, and the node will not be available for value-con-
ditioning by another node (no arc pointing to the node may indicate a
“values” influence type).
s Select the node, and choose Variable from the right-click pop-
up menu (or from the Diagram menu in the main menu bar).
Every influence diagram must contain a final value node for assigning
final outcomes. The use of intermediate value nodes is optional.
If you opt to assign a formula to a value node, that formula will actually
be defined at the root node of the converted tree.
s Select the value node, and choose Diagram > Variable… (or
choose Variable… from the right-click pop-up menu).
s Enter the formula in the editor. You may use the Insert pop-up
menu to select variables from nodes which directly influence
the value node.
s Select the value node, and choose Diagram > Variable (or
choose Variable from the right-click pop-up menu).
Deterministic nodes
A deterministic node is useful for including a parameter which has a
single, fixed value in your model, even if your estimate is uncertain.
You have the option of assigning not only a numeric value to a deter-
ministic node, but also a range of possible values for future sensitivity
analysis.
The first red diamond node, at the top of the mini-tree, will be selected
initially. A selected node will have its diamond filled in and its name
drawn in bold. Only red-diamond nodes may be selected. When a node
in the mini-tree is selected, the text editor in the right part of the dialog
becomes active. The information you enter in the text editor will be used
for the selected node.
To select another node in the tree, you may use any of the following
methods:
• click directly on the node in the mini-tree;
• use the Prev/Next buttons to select the next node in the indi-
cated direction; or
• hold down the CONTROL key and press either UP ARROW or DOWN
ARROW.
To view more or less of the mini-tree, use the Zoom pop-up menu (dis-
played with a magnifying glass icon) or resize the window itself.
s Type the name of the variable in the text box and click the
Define… button.
You are urged to use variables in the editor box rather than assign-
ing numeric values directly. These variables may be defined either in
the editor box (as just described) or at a separate deterministic node.
Entering variable names directly in the editor (regardless which method
you use to define the variables) will encourage you to assign differ-
ent variable names to different outcomes, such as “CostLow” and
“CostHigh,” making it very simple to perform sensitivity analysis on
your parameters. (See Chapter 13 for more on this subject.)
If, instead, you enter numeric values directly, you run the risk of having
multiple numeric definitions of the same node variable. In other words,
the node’s main variable will be defined at each branch with each of the
different numeric values in turn; this will cause analysis problems later.
Probability wheel
The probability wheel is available when editing probabilities for a
chance node with at least two but not more than seven outcomes. The
probability wheel and its use are described in Chapter 12.
s In the mini-tree window, select the node which will use the
link. From the Tools pop-up menu, select Paste Link.
The link will be stored in the influence diagram window. You may edit
the link using the Links dialog in the Edit menu. When you convert
the influence diagram into a tree, the links will be copied and included
as DDE links. When the value changes in the external application,
TreeAge Pro will update it in both the influence diagram and the con-
verted tree.
Miscellaneous
Miscellaneous Node description
Nodes in the influence diagram may be annotated. This annotation is not
carried over to the converted tree. Select the node you wish to annotate,
and choose Diagram > Description. In the Node Description dialog,
both the node name (as it displays in the window) and the hidden anno-
tation may be changed.
Aligning nodes
When your influence diagram is ready for presentation, you may
wish to align nodes so that arcs appear perfectly straight. To
accomplish this, select those nodes you wish to align, and choose
Display > Align.
If you vertically align the centers of your nodes, then arcs between
them will be drawn perfectly horizontally. If you horizontally
align the centers of your nodes, then arcs between them will be
drawn perfectly vertically.
Arc operations
You may curve a selected arc by dragging its square handle. To
straighten a curved arc, select Diagram > Straighten Arc.
To flip a selected arc’s direction, choose Diagram > Flip Arc. Any
asymmetry specified in the arc will be lost, as the direction of influence
has been reversed. This operation is primarily graphical; it does not per-
form intelligent reassignment of probability or value information. How-
ever, careful arc-flipping can help you calculate EVPI in the converted
trees. See Chapter 5 for more on EVPI.
Arcs may not be cut and pasted like other objects, because the infor-
mation stored in an arc is specific to the nodes that the arc connects. If
you copy two nodes linked by an arc, then the arc will be copied (and
pasted) with the nodes. To eliminate a selected arc, choose Edit > Clear
Arc as described in Chapter 3.
In this chapter:
• Clones.................................................................................... 346
• Sub-models............................................................................. 346
If you set up your tests properly in the influence diagram window, you
will not need to use the Bayes’ revision tool in the tree window, as all of
the revised probabilities’ formulas will have been created for you.
A copy of the tree built in the following tutorial can also be found in
TreeAge Pro’s Tutorial Examples subdirectory, with the name “Bayes
ID”. You may want to check your results against that file after working
through the tutorial.
This chapter assumes you are familiar with how TreeAge Pro converts
influence diagrams into trees, as discussed in Chapters 3 and 26.
These values are called the prior probabilities; they represent the preva-
lence of this kind of fault in machines of this type. Next, enter the test
node probabilities.
s Create two arcs, one from Maintenance to Value and the other
from Machine Condition to Value.
Since the purpose of this example is to work through the steps needed
for Bayes’ revision, you can skip the process of assigning values at the
value node. If, however, you wish to view the calculated probabilities in
the converted tree, prior to doing the conversion you might indicate that
the value node has a formula of 0 or 1. This will at least allow TreeAge
Pro to perform roll back.
The only arcs are from Machine Condition to Test Result, and from Test
Result to Maintenance.
In cases such as this one – where the order of conversion will be oppo-
site to the arc flow between two chance nodes – TreeAge Pro will auto-
matically apply Bayes’ revision when the influence diagram is con-
verted into a tree, as illustrated below.
Converting the influence diagram into a tree (or viewing the enumerated
values at the Value node) will allow you to view the resulting asym-
metry.
Another type of situation where asymmetry may affect the Bayes’ revi-
sion structure is if there is an earlier decision whether or not to utilize
the test.
The hard part comes next. In order for TreeAge Pro to be able to per-
form its probability revision calculations, you must provide all the infor-
mation identified in the tree fragment.
It is possible to specify asymmetry in the arc from Test1 to Test2 if, for
instance, Test2 should not be used if Test1 is negative.
EVPI can be calculated in the tree structure by inverting the time order
of a chance node and a decision node. Under normal circumstances, the
outcome of the chance node is not known before the decision is made.
For EVPI calculations, we assume that the outcome is known before the
decision.
A meaningful value of EVPI requires that there be arcs from both the
decision node and the chance node to the final value node.
Revising the influence diagram in this way may result in some nodes
becoming unnecessary. For instance, if there is an imperfect predictor
of the chance node in question, it will become irrelevant in the presence
of a perfect predictor. TreeAge Pro will not automatically remove these
nodes for you, but they will not affect calculations in the converted tree.
To create a clone, select a node and choose Edit > Create Clone. You
may also destroy all clones of a node by selecting Edit > Destroy
Clones when the clone master is selected.
Sub-models
Sub-models If you have a number of nodes which belong to the same logical group,
you may find it helpful to put them into a sub-model. This can greatly
simplify the printed and screen display of your model.
The new node represents the sub-model; it is possible to name the sub-
model as you wish. Even though a sub-model is displayed as a node in
the diagram, it has no functionality of its own, except as an organiz-
ational tool. Double-clicking on the sub-model node will open a new
document window displaying the collapsed nodes.
APPENDICES
• Appendix A, "Changes from DATA 3.5, DATA 4.0, and DATA Professional"
• Appendix C, "Preferences"
In this appendix:
Dynamic linking to Excel – The Edit menu now includes a Links sub-
menu, with a new Dynamic Links command. Dynamic links and the
Bilink() function are designed to replace both bi-directional and DDE
links, and are the default format for new links. Dynamic links are more
reliable, faster, and easier to setup and maintain than old DDE and
bi-directional links. (The optional Excel module allows you to create
dynamic links without leaving the spreadsheet.) See Chapter 20.
Tree Explorer view – The tree window now includes a compact tree
view side by side with the regular tree view. The Explorer view makes it
easy to navigate in very large models, and includes cut/copy/paste sub-
tree functionality. See Chapter 21.
Tables Used report – This report now can be exported, including the
contents (column titles, indexes, and values) and properties of all tables
referenced in the tree. See Chapter 17.
Tree Explorer window – The tree window now includes a compact tree
view side by side with the regular tree view. The Explorer view makes it
easy to navigate in very large models, and includes cut/copy/paste sub-
tree functionality. See Chapter 21. (In DATA Professional)
Dynamic linking to Excel – The Edit menu now includes a Links sub-
menu, with a new Dynamic Links command. Dynamic links and the
Bilink() function are designed to replace both bi-directional and DDE
links, and are the default format for new links. Dynamic links are more
reliable, faster, and easier to setup and maintain than old DDE and
bi-directional links. (The optional Excel module allows you to create
dynamic links without leaving the spreadsheet.) See Chapter 20.
Exporting JPEGs – The File > Export dialog includes an option to save
pictures of TreeAge Pro files as JPEGs. See Chapter 4.
Tables Used report – This report now can be exported, including the
contents (column titles, indexes, and values) and properties of all tables
referenced in the tree. See Chapter 17.
This appendix describes each of the major elements of the TreeAge Pro
window: the tool bar, the status bar, and the main menus.
In this appendix:
File > New Values > Show Variables Window create new arc
File > Open Values > Define Values create new decision node
File > Save Values > Probability Wheel create new chance node
File > Print Options > Change Node Type create new deterministic node
File > Print Preview Analysis > Probability Distribution create new value node
File > Convert Analysis > Sensitivity Analysis > One-Way
Display > Font Analysis > Sensitivity Analysis > Two-Way
Navigation button
The navigation tool bar button acts as a toggle between two modes of
using the arrow keys in the tree window. When navigate mode is active
(i.e., the button is down), the arrow keys will change which node is
selected. For instance, if a single node is selected, and you press the left
arrow key, TreeAge Pro will select the parent of the selected node.
When navigate mode is not active (i.e., the button is up), the arrow keys
operate on the text insertion cursor. It is possible to use the arrow keys
to maneuver the node selection even when the navigation button is up.
This requires holding down the CONTROL key when using the arrow keys.
In all windows other than the tree window, arrow keys operate on the
text insertion cursor.
2. When the software being used is the run-time version, this area will
display “RUNTIME.” The text also displays when the full version is
being used with the “Mimic run-time” option, as set in the Options
menu.
3. This area displays the text “RISK” when the active tree is set to
calculate using a risk preference function, rather than using expected
values.
4. The current calculation method for the active tree is displayed in this
area. For example, if the tree is set to calculate cost-effectiveness, with
payoff 2 used for cost values and payoff 1 used for effectiveness values,
this area will display “C/E, 2/1.”
The status bar will also display a progress indicator when a long analy-
sis is being run. Because this is such a useful indicator, it is desirable to
leave the status bar visible at all times.
Edit menu
Edit menu Undo
This command permits you to reverse (undo) your most recent action
if, for example, you issued the wrong command or made a mistake in
typing or tree construction. In the case of typing or text formatting, this
command will reverse multiple, consecutive changes. See Chapter 17
for more information.
Redo
Re-executes the most recently undone action.
Cut…
Cuts the selected portion of the active window onto the clipboard. This
can result in one of several different actions, depending on the context.
For example, if a tree window is active, the Cut command will read,
depending on the context, “Cut Node” (when no branches emanate
from the selected node), “Cut Subtree,” “Cut Variables,” “Cut Note,”
or “Cut Text.” When it is not clear whether node text or a portion of the
tree is to be affected, the command will read “Cut...” and will be fol-
lowed by an appropriate dialog box. A node (together with the branch
leading to it) or a subtree is cut to the active tree clipboard (see below).
Switching the active clipboard does not make any immediate or auto-
matic changes to either your model or the contents of the four clip-
boards.
Show Tree Clipboard
Displays the contents of the currently active tree clipboard. No editing
may be performed in the Tree Clipboard window.
Preferences…
Displays the main Preferences dialog box. See Appendix C for more
information.
Numeric Formatting…
Allows you to change the presentation of numeric values in trees and
graph windows. See Chapter 5 for more information.
Options menu
Options menu Select Subtree
If the currently selected node has branches, this option causes the entire
subtree rooted at this node to be selected. This is useful in cutting or
copying a subtree, which requires selection of the entire subtree. It can
also be used to select the tree (i.e., the subtree emanating from the root
node), prior to copying the tree to the clipboard, either in TreeAge Pro
format or for export in bitmap/metafile format.
Select If…
Allows you to select nodes using a rule. For instance, you may select
all terminal nodes, or all nodes at which a particular variable is defined.
See Chapter 8.
Find…
Searches for (and replaces, if desired) specified text in the tree window.
See Chapter 12.
Node Comment…
Allows you to assign an annotation to the branches of the selected node.
This feature is often used to record the reasons underlying probability
assignments. See Chapter 10.
Graph menu
Graph menu Text Report…
Displays the numerical data which underlie the graph in the active
window. These data may then be exported for further analysis or graph-
ing in a spreadsheet, statistics, or database program. See Chapter 6.
New Label…
Adds a new, custom label to the active graph.
Show/Hide…
Allows you to hide certain pieces of information from the selected
graph. You may hide lines in a line graph or bars in a tornado diagram.
Distribution Statistics…
Displays the basic statistical values associated with a distribution graph.
Line to Table…
Converts a line in an active line graph into a table.
Table menu
Table menu Add Entry…
Adds a new entry to the open table. See Chapter 17.
Edit Entry…
Edits the index/value associated with the selected entry in the open
table. See Chapter 17.
Delete Entry
Deletes the selected entry in the open table. See Chapter 17.
Graph Table
Displays the contents of the open table as a line graph.
Properties
Edits the properties (name, file name, lookup method) for the open
table. See Chapter 17.
PREFERENCES
In this chapter:
In the tree window, the list of available categories is divided into three
parts: Calculation Preferences, Display Preferences, and Other Pref-
erences. In the influence diagram window, two headings are shown
– Influence Diagram and Other Preferences.
Changes to the settings apply automatically to the then active tree (or
influence diagram). You also have the option of having the current pref-
erences, including any changes, saved as the default settings. This will
automatically apply to all new tree or influence diagram documents, but
not to previously created documents. If you want to establish the new
settings as a default, click the check box at the lower right of the dialog
box.
Note that the Save settings as default checkbox relates to all prefer-
ences, not merely those in view in the then open Preferences dialog cat-
egory.
If you select Simple, calculations performed on the active tree will be based on a
single payoff. The other three calculation methods involve multi-attribute modeling,
in which multiple criteria will be involved in the calculations.
Use payoff TreeAge Pro allows you to assign up to nine payoffs at each terminal node. This is
where you specify which payoff or payoffs are to be used in calculating the then
active tree. The options available will depend on the calculation method chosen
above.
If the Simple calculation method is active, this option will permit you to select a
single payoff. If Benefit-Cost is active, you must specify two active payoffs, one for
benefit and the other for cost.
Set weightings… If the Multi-Attribute calculation method is active, you will have to set weightings
for each of the attributes, up to four, that you want TreeAge Pro to use in its cal-
culations. As a result, the Use payoff drop-down list box will be replaced by a Set
weightings… button.
Optimal path is There are two option buttons: High and Low. You should select High when your
tree is to be calculated on the basis of profits, income, cash flow, or other criterion
that should be maximized. Select Low where less is better, such as when the payoff
is based on costs, or any other quantity which should be minimized.
Keep in mind that separate settings of this flag are maintained for the multi-attribute
calculation method and, for the Simple calculation method, each of four possible
payoff/attribute sets and each of the three multi-attribute methods, has its own set-
ting for this flag.
Enable payoffs… TreeAge Pro allows you to activate fewer than all nine payoffs, in order to simplify/
clarify the Enter Payoff dialog and the multi-attribute Weightings dialog.
Numeric format The Numeric Format… button is used to set the format used to display calculated
values. As with the Optimal Path setting, there are individual numeric formatting
options for each Simple payoff, and each multi-attribute method. See Chapter 5 for
more information on numeric formatting.
Fast roll back Normally, a progress indicator will display in the status bar while a tree is rolling
back. Selection of the Fast roll back option will suppress this display, resulting in
speed increases of up to 100%, depending on the size and complexity of the tree.
With either option, you may cancel calculations by pressing ESC.
Roll back calculates The four roll back calculation options are described in Chapter 11.
Risk preferences
Option Description
Use risk preference When this box is checked, TreeAge Pro’s calculations will be based on a risk
function function rather than expected value. If this option is dimmed, a risk preference func-
tion has not previously been entered for the active tree. See Chapter 24.
Constant risk aversion When this option is selected, calculations will be based on a constant risk aversion
function, rather than expected values.
Non-constant risk When this option is selected, calculations will be based on a non-constant risk aver-
sion function, rather than expected values.
Enter… There are two Enter buttons, one for a constant risk aversion function and the other
for entering a non-constant risk aversion function. These two functions and their dif-
ferences are described in Chapter 24.
Terminate Markov By setting this option, you indicate that the termination conditions should be
Monte Carlo ignored during Monte Carlo simulations of a Markov process. See the Healthcare
simulations on entry module documentation for more information.
into absorbing state
Allow probabilities When this option is checked, calculations will not stop with errors when a chance
to not sum to 1.0 node’s branches do not sum to 1.0. See Chapter 22 for important information on
this settings, and its sub-options.
Calculate comple- When this option is checked, TreeAge Pro will fill in the last probability in a set of
mentary probabilities branches emanating from a chance node, so long as all the other probabilities
automatically on branches emanating from that node are wholly numeric (i.e., no variables are
used).
Allow terminal node It is possible to have TreeAge Pro treat the branch description at a terminal node as
name to act as that node’s numeric payoff value.
numeric payoff using this feature.
Boxed If you have chosen to always display payoff names, this option lets you choose
whether the payoff names should be enclosed in a box. This option relates only to
tree display prior to roll back; during roll back, calculated values are always boxed.
Automatic node If this option is on, terminal nodes will display the custom text entered in the field.
numbering Use the ^ (caret) symbol in the text to represent the scenario number.
Show terminal TreeAge Pro can show terminal nodes using any of the three methods shown.
nodes as Triangles are the default (and standard) method. Diamonds are used to
indicate the parallelism between terminal nodes in a tree and value nodes in an
influence diagram. Lines are for those applications when you do not want any
symbol displayed to the right of a final outcome.
Show columns Selecting this option will allow you to display custom columns of values to the right
of the rolled-back tree. Clicking the Set… button opens the Terminal Node Columns
dialog, where you can choose the calculated values (including expected and mar-
ginal values, as well as custom calculations) and formats you want. See Chapter 11.
Show definitions, When this setting is selected, long definitions will be clipped to the natural
Expand node to fit…, length of the node. Options are: to force node lengths to expand to fit the
Wrap at: N x branch…, definitions or wrap definitions at a fixed width; and to show Markov quantities
Show Markov… — termination conditions, rewards, and Markov bindings — in the tree.
Add branches at… This option enables you to control whether additional branches are to be added
above or below existing branches. The Insert Branch command under the Options
menu provides additional flexibility in this area. See Chapter 14 for more infor-
mation.
Minimize empty space Use of this option produces a “compressed” version of your tree. No vertical space
is wasted. Because each node no longer has its own horizontal “slice” of the tree
display, this option may not be used with Align endnodes. See Chapter 11.
Align endnodes Forces all terminal nodes to line up at the rightmost edge of the tree.
Branch lines at Normally, branch lines are drawn at whatever angle is needed to provide the most
right angles direct connection from one node to the next. When this option is on, all branch lines
are drawn vertically, then horizontally, rather than obliquely.
Hide clone-copy Suppresses the display of clone-copy subtrees; display of clone masters is not
subtrees affected. When this option is selected, only the name of the clone is displayed to the
right of the copy node. Use of this option can dramatically reduce the physical size
of your tree. See Chapter 21.
“Skeleton” tree… This setting allows an abstract view of the tree to be displayed or printed, with
space inserted between generations, and collapsed subtrees being completely
hidden. Used in combination with the Minimize empty space and Hide clone-copy
settings, this creates a highly compact view of the tree. See Chapter 11.
Prob Font This option enables you to select the font used in the probability fields of the active
tree, in both the rolled-back and unrolled-back state. This allows you to clearly dis-
tinguish between probability variable names and adjacent node descriptions.
EV Font This option enables you to select the font used in the expected value boxes gen-
erated during roll back. It also applies to other information which is not user-edit-
able and is displayed next to a node, such as clone names when clones are hidden,
or payoff names when Always show payoff names is selected.
Variables Font This option enables you to select the font used to display the definition of variables
when that option is selected in the Variables Display page of the Preferences dialog.
Arrowhead Size When your tree contains one or more arrows, this option enables you to choose
whether they should be drawn with large, medium or small arrowheads. Your selec-
tion will apply to every arrowhead in the active tree.
Arrow Line Style When your tree contains one or more arrows, this option enables you to choose
whether they should be drawn with solid, dashed or dotted lines. Your selection will
apply to every arrow in the active tree.
Hide node texts When this option is on, the display of all textual information in the tree window is
suppressed. Use this flag to get a picture of the structure of your tree.
Hide probabilities only When the Hide node texts option is off, this option is available. The display of prob-
abilities is suppressed in the tree window, while all other textual information is vis-
ible. Use this flag to temporarily simplify the display of complex trees with many
uncertainties.
Show page headers If this option is on, the screen display of the tree will include any page header or
in tree window footer that will be included in a printout of the tree.
Center in page This is one of two ways in which it is possible to determine the location of docu-
ments in printouts. This option will apply only to documents which are sized to fit
on a single page. When selected, the printout of the one-page document will be cen-
tered on the page. If more than one page is required for the printout, selecting this
option will have no effect. The alternative method of positioning the tree or graph in
a printout is described in Chapter 9.
Printing zoom factor This option enables you to store a percent reduction/enlargement factor with each
document. This scaling factor is document-specific. Note also that it is indepen-
dent of any scaling specified under Page Setup. Thus, if your printer driver allows
scaling via the Page Setup command, you run the risk of applying one percentage
against another.
The printing zoom factor is also independent of the screen-display zoom factor, set
in the Display > Zoom commands.
Page Header After clicking this button, you will be able to set the page header and footer infor-
mation for the active tree.
Allow TrueType If this option is on, font-selection dialogs will allow you to select only TrueType
fonts only fonts, which print and display identically. This selection will not affect fonts you
have already selected.
Use printer for sizing Whenever the tree must be resized (such as after you add nodes or change a branch
description), TreeAge Pro must calculate the width and height of each body of text.
However, the screen and printer do not always agree on the exact amount of space
needed. Selecting this option may improve the quality of either the printed output,
or the screen display, eliminating problems such as a branch description overlapping
the node symbol.
If you have a slow printer driver, you may find that selecting this option causes an
slowdown in screen redraw. If this happens, you may want to turn on this option
only when ready to print.
Select Left to right, if you would like nodes on the left of the influence diagram
converted before nodes on the right; or select Top to bottom if you would like nodes
toward the top of the influence diagram converted before nodes toward the bottom.
These options apply only after all other rules have failed to determine the proper
node ordering.
Optimal path While no calculations actually occur in the influence diagram window, you may set
this flag to avoid having to reset it in the tree each time you convert the influence
diagram. See Calculation Method preferences, above, for details.
Numeric format This is also carried over to the converted tree. You may enter your numeric for-
matting preferences to avoid reentering it each time you convert to a tree.
If you opt for a fixed node size, you may indicate the size of the text area in the
lower area of the dialog. Drag the corner handle to the appropriate size allocated to
the text of a node; TreeAge Pro will add extra space for the node’s border.
Show in window Deselect this option to suppress screen display of structure-only arcs altogether. You
will not be able to select these arcs for editing until you reselect this option.
Print If this option is selected, structure-only arcs will print with the rest of the influence
diagram.
Dotted Select this option to force structure-only arcs to display or print as dotted lines,
rather than as straight lines.
Arc font This font is used for the comments of all arcs in the influence diagram. You may not
set the font for a single arc comment individually.
This chapter provides a detailed listing of the operators and functions available
in TreeAge Pro 2004.
Functions that take one or more arguments are sensitive to user errors. See
Chapter 14 for information on using the Function Helper to set up functions
correctly, and the Calculator/Evaluator to test expressions that use functions.
In this appendix:
Arithmetic operators
These operators perform arithmetic on the values that surround them.
TreeAge Pro uses the traditional syntax for expressions, known as infix
notation. For example, an expression that adds three and seven would be
written 3 + 7, rather than 3, 7 +.
Symbol Example Explanation
+ x+y Addition. Returns the sum of x and y.
- x-y Subtraction. Returns the difference between x and y. (Also used
for negation, i.e., to denote negative numbers.)
* x*y Multiplication. Returns the product of x and y.
/ x/y Division. Returns the quotient of x and y.
^ x^y Exponentiation. Returns x to the yth power.
() x*(y+z) Grouping. Returns the product of x and the sum of y and z. In
any expression, there must be an equal number of left and right
parentheses.
Relational operators
These operators return a true or false value, depending on the veracity
of the expression in which they appear. A true value is represented by a
numeric 1, a false value receives a numeric value of 0.
Other valid forms of this syntax can be created by substituting “>=” for
“>” or “<=” for “<” (for example, expressions of the form “y <= x <
z” and “y >= x >= z” are valid). These are the only valid substitutions,
though (for example, expressions of the form “y < x > z” are not valid).
Failure to follow these rules when creating relational expressions of
this kind will likely result in unintended calculation results.
Logical operators
Three logical operators are also available: logical AND, logical (inclu-
sive) OR, and logical NOT. AND is represented by the ampersand (&),
OR by the vertical bar (|), and NOT by the exclamation mark (!).
Operator precedence
In most situations, you will not need to know the details of which
operators bind most tightly. However, when formulas do not appear to
calculate correctly, you should check this section to see if precedence is
a factor.
A + B * C + D
A quick check of the precedence list on the next page indicates that
multiplication has higher precedence (binds more tightly) than addition.
TreeAge Pro will therefore interpret your expression as:
A + (B * C) + D
The table below lists the operators available in TreeAge Pro in order of
precedence. Operators with higher precedence will bind more tightly.
Adjacent operators having the same precedence value will be applied
from left to right.
Operator Character Precedence Value
Unary minus (e.g., “-30,000”) - 8
Logical “Not” ! 8
Exponentiation ^ 7
Multiplication * 6
Division / 6
Addition + 5
Subtraction - 5
Comparators <, <=, >=, >, =, <> 4
Logical “And” & 3
Logical “Or” | 2
Parentheses () 1
Brackets [] 1
Function argument separator ; 1
Notice that parentheses are at the bottom of the list. This simply means
that the operators inside the parentheses will bind tightly to stay within
the parentheses. They are your most useful tool for indicating your par-
ticular precedence requirements.
In the tree window, use the Function Helper (see Chapter 14) for help in
assigning the correct parameters in the proper order.
Arithmetic functions
In the arithmetic functions listed below, “e” represents the base of the
natural logarithm, or approximately 2.718.
Function Explanation
Abs(x) absolute value of x
Average(LIST) arithmetic mean of a list
Ceiling(x) smallest integer larger than x
Exp(x) “e” to the xth power
Floor(x) greatest integer smaller than x
GammaFn(x) (n-1)! for small positive integers; approximation otherwise
Int(x) integer component of x
Ln(x) natural (base “e”) logarithm of x
Log(x) base 10 logarithm of x
Max(LIST) maximum, or highest value, of a list
Min(LIST) minimum, or lowest value, of a list
Modulo(x; y) remainder of x divided by y
Prod(LIST) product of a list
Root(x; y) yth root of x
Round(x) x rounded to the nearest integer
Sqrt(x) square root of x
Stdev(LIST) standard deviation of a list of numbers.
Sum(LIST) sum of a list
Tip:
Performing a sensitivity analysis on a variable used as the index of the
Choose() function, from 1 to the number of list items, can show the impact
on calculations of the different values specified in the list.
These functions are particularly sensitive to user errors. You are urged
to exercise great care when using them in your models. It is recom-
mended that you use the Calculator/Evaluator feature, located under
TreeAge Pro's Values menu, to test expressions using these functions;
see Chapter 14.
See Chapters 16, 17, and 22 for information on using distributions in trees.
In this appendix:
Domain: -∞<x<∞
Parameters: Mean - ∞ < µ < ∞ , standard deviation σ > 0
Triangular distribution
Formula:
0 x < LowX or x >HighX
x − LowX
2 * ( HighX − LowX ) * LowX
LowX ≤″ xx ≤
″ Mode
Mode
f (x) = Mode − LowX
x − Mode
2 * ( HighX − LowX ) * 1 − Mode << xx ″≤ HighX
HighX
HighX − Mode
Domain: 0 ≤ pj ≤ 1 where Σ k
p
i =1 i
= 1.0
Parameters: α 1 , α 2 ,...α k , β = 1
Details: See Chapter 22.
Domain: x>0
Parameters: n > 0, θ > 0
Chi-Squared distribution
n −1 x
−
2
x e 2θ
Formula: f (x) = n n
(2θ ) Γ
2
2
Domain: x>0
Parameters: n > 0, θ > 0
Erlang distribution
Formula: f (x) =
(kλ )k x k −1 e − kλx
(k − 1)!
Domain: x>0
Parameters: k > 0, λ > 0
Exponential distribution
Formula: f (x) = λe − λx
Domain: x>0
Parameters: λ>0
Hyper-exponential distribution
2
Formula: f (x) = 2 λ p 2 e −2 λ p x + 2 λ (1 − p) e −2 λ (1− p ) x
Domain: x>0
Parameters: λ > 0; 0 < p < 1
Laplace distribution
x−a
1 −
Formula: f (x) = e b
2b
Domain: -∞<x<∞
Parameters: b > 0, - ∞ < a < ∞
Logistic distribution
ae − ( ax + b )
Formula: f (x) = 2
(1 + e ( ) )
− ax + b
Domain: -∞<x<∞
Parameters: a > 0, - ∞ < b < ∞
Maxwell distribution
x2
4x2 −α 2
Formula: f (x) = e
α3 ≠
Domain: -∞<x<∞
Parameters: α>0
Rayleigh distribution
−x2
Formula: f (x) =
x 2α 2
e
a2
Domain: x>0
Parameters: α>0
Weibull distribution
Domain: x>0
Parameters: λ > 0, k > 0
Domain: x = 0, 1, 2, …, n
Poisson distribution
λi
e−λ
Formula: P (x=i) = i!
Domain: i = 0, 1 , 2, …
Parameters: λ>0
TECHNICAL NOTES
In this appendix:
If the specified tables directory does not exist when TreeAge Pro is
opened, TreeAge Pro will ask if you want to create the directory.
Any changes you make to the TABLE.DIR file will only be recognized
by TreeAge Pro the next time you start the program.
414 Appendices
These flags are invoked on the command line of the executable. To set
the command line, create a shortcut to TreeAge Pro – on the Windows
Desktop, for example. Then, open the shortcut’s Properties dialog, edit
the Target field (this shortcut can be renamed to reflect a tree being
opened).
Startup files
It is possible to designate the names of files to be opened at startup. The
names of these files are specified on the command line, in which case
the “-t” flag is automatically applied. If the file name, or any directory in
its path, contains spaces or punctuation, you must enclose the file name
in quotation marks.
Defining variables
You may automatically define variables in the specified tree upon
startup. For example, the target field of a shortcut icon in Windows
might read:
Startup size
If you are invoking TreeAge Pro from another program, such as Visual
Basic, you may pass the SW_MINIMIZE flag to the WinExec function.
TreeAge Pro will operate as a minimized icon, and will not display its
splash screen.
Influence diagrams
Here is an example of a command line with flags set to open TreeAge
Pro with influence diagrams as the default model type, with the startup
file MyInf.ind:
“C:\Program Files\TreeAge Pro\TreeAge
Pro.EXE” -i “c:\files\MyInf.ind”
416 Appendices
INDEX
W
weights 371. See also decision tree:
calculation preferences