SlideShare a Scribd company logo
How to build a basic 
model with Analytica
Creating a new model
When you start up 
Analytica it shows 
an Object window for 
a new, untitled model.
Behind the Object 
window you see an 
empty Diagram window.
First you should 
enter a Title for 
your model...
Click in the Title field and give 
your model a decent name.
When you hit Alt + Enter or the 
Tab key or click somewhere outside...
...the Identifier field automatically 
changes to Car_cost_model based 
on the Title you keyed in.
...the Identifier field automatically 
changes to Car_cost_model based 
on the Title you keyed in. 
The Identifier is automatically 
created to match the first 20 
characters of the Title. 
You can change this 
manually if you want.
If you like, type in a 
description of your model...
...or add your name as the author. (If your computer does not auto-matically register your name)
When you're done, close 
the Object window...
...and start building your 
first model
Editing a diagram
But before we dive in let's 
first explore the tools you 
need in the tool bar.
When you create 
a new model the 
edit tool is selected 
by default.
You use the edit tool to 
create or change a model. 
When you create 
a new model the 
edit tool is selected 
by default.
When the edit tool 
is selected, a menu 
of icons is displayed 
in the node palette.
When the edit tool 
is selected, a menu 
of icons is displayed 
in the node palette. 
These icons represent the different 
node types and allow you to add 
nodes to the diagram.
Creating variable nodes
Now you're going to 
create variables in 
the Car Cost model.
The first variable 
you will create is 
for the cost of fuel.
Drag the Variable Node 
icon to a position in 
the influence diagram.
Type Fuel cost for 
the variable title.
Type Fuel cost for 
the variable title. As you build a model, you should 
choose descriptive titles for your 
variables. Descriptive variable 
titles remind you of the model’s 
logic and help others to under-stand 
how the model works.
Type Fuel cost for 
the variable title. Since Fuel Cost doesn't yet 
have a valid definition it's 
filled with a diagonal line 
pattern around its text.
Now you can repeat 
this and create some 
more variables that 
affect fuel cost...
Price per gallon 
of gasoline...
Number of miles 
driven each year...
Miles per gallon 
of gasoline...
And finally the 
driver’s age.
Saving your model
After that it might 
be a good idea to 
save your model.
After that it might 
be a good idea to 
save your model.
After that it might 
be a good idea to 
save your model. 
Analytica automatically saves each change you 
make to a backup file. If your computer should 
crash unexpectedly, you can recover your changes 
the next time you start Analytica. Even so, it’s a 
good idea to save your changes from time to time.
Deleting a variable
Sometimes you might want 
to delete a variable that 
you previously created.
In this example you realize 
that the driver’s age is 
not relevant to your 
understanding of the Fuel 
Cost variable.
When you hit Del or 
Backspace ⌫ after selec-ting 
the node, a confir-mation 
dialog pops up...
Click OK to confirm 
that you want to delete 
the selected object.
Moving nodes
When you create a model you 
should try to structure the 
layout to make the influence 
diagram easy to understand.
In this case you think that 
Fuel Cost will be derived from 
the other three variables. 
Therefore you want to re-arrange 
the diagram a little...
You move the 
Fuel Cost node 
to the right...
...and place the 
other variables 
to the left.
Editing variable titles
Now you decide 
that Mpg is still 
a little cryptic...
So you rename the node 
to Miles per gallon to 
make things clearer.
When you change the title of 
a node, Analytica asks you if 
you want the Identifier to be 
automatically changed as well.
When you change the title of 
a node, Analytica asks you if 
you want the Identifier to be 
automatically changed as well. 
You can change this behavior, 
to either turn off automatic 
updating of the identifier or to 
make it fully automatic, so 
that you are not asked.
Drawing arrows between nodes
One of Analytica’s most powerful 
features is its ability to show 
relationships between variables in 
the influence diagram.
Influence arrows are used to specify 
the dependencies between variables.
Because Miles per gallon 
influences the Fuel Cost, 
you want to draw an 
arrow connecting the 
two nodes.
Select the arrow tool 
to begin drawing arrows.
Click on the node 
where you want 
the arrow to start...
...and drag a line 
to the other node.
When you release the 
mouse button, the two 
nodes are now connected 
by an arrow, indicating 
that Miles per gallon 
affects Fuel Cost.
When you release the 
mouse button, the two 
nodes are now connected 
by an arrow, indicating 
that Miles per gallon 
affects Fuel Cost. 
When needed you can draw multiple 
arrows at once. Just hold down 
Control or Shift while selecting and 
drag the lines to the desired node.
Entering attributes into 
the Object window
Each variable (or other Object) has an 
Object window that lets you see and 
edit its Attributes, like its...
Each variable (or other Object) has an 
Object window that lets you see and 
edit its Attributes, like its... 
Identifier
Each variable (or other Object) has an 
Object window that lets you see and 
edit its Attributes, like its... 
Title
Each variable (or other Object) has an 
Object window that lets you see and 
edit its Attributes, like its... 
Units
Each variable (or other Object) has an 
Object window that lets you see and 
edit its Attributes, like its... 
Description
Each variable (or other Object) has an 
Object window that lets you see and 
edit its Attributes, like its... 
Definition
Each variable (or other Object) has an 
Object window that lets you see and 
edit its Attributes, like its... 
Inputs
Each variable (or other Object) has an 
Object window that lets you see and 
edit its Attributes, like its... 
Outputs
If you want to 
enter attributes for 
Annual Miles, first 
select the node...
...then either click the 
Object window button or just 
double-click the selected 
node on the diagram.
In the Object window you see that 
Analytica has already assigned an 
Identifier based on the Title.
In the Object window you see that 
Analytica has already assigned an 
Identifier based on the Title. 
Analytica assigns the identifier when 
the title is created. It uses the first 
20 characters of the title except for 
spaces or punctuation, which are 
replaced by underscores (_).
You can directly edit both 
the identifier and the title.
First, you change the 
variable’s identifier to 
a short abbreviation 
so that it can easily 
be used later in the 
definitions of other 
variables.
Then you type in 
miles/year as the Unit 
of measurement.
Then you type in 
miles/year as the Unit 
of measurement. 
Analytica uses the information 
from the Units field to label graphs 
or tables that use this variable; 
Analytica does not use it in any 
mathematical computations.
When you change the 
Title to Miles per year ...
...Analytica asks you if you want 
it to automatically change the 
identifier to match the new title.
...Analytica asks you if you want 
it to automatically change the 
identifier to match the new title. 
In this case you click No to 
keep the Identifier as Mpy.
Finally you enter 
a description for 
this variable.
Defining a variable as an explicit value
Analytica uses a wide range 
of variable types. For now 
we simply enter an explicit 
value for the variable.
Analytica uses a wide range 
of variable types. For now 
we simply enter an explicit 
value for the variable. 
Functional expressions and lists, 
for example, are described later 
in this tutorial.
As a first guess you 
put in a single number.
Click the Check button 
to accept your input.
Miles per year is no longer 
filled with a diagonal line 
pattern around its title. 
The clear node indicates 
that this variable now 
has a valid definition.
Defining a variable as a 
function of other variables
When one variable 
dependes on another 
variable, you must 
provide an expression 
that describes the 
relationship between 
the variables.
Since you've drawn 
arrows from other 
variables to Fuel Cost, 
their identifiers and 
titles appear in the 
variable's Inputs field.
Before you're going to define the functional 
relationship you do a little housekeeping and 
enter the Units and a Description.
Because fuel cost is equal to fuel price times 
miles driven, divided by miles per gallon, you 
will enter something equivalent to this into 
the Definition field.
When you click into the Definition 
field you can choose the Inputs 
from a popup menu.
When you click into the Definition 
field you can choose the Inputs 
from a popup menu. 
Variables that are not yet used in 
the definition are display in italics.
Alternatively, when you start typing 
a variable's name, Analytica's Expression 
Assist provides a list of Identifiers and 
Functions that start with the 
letters you typed.
Based on the definition you just entered, 
the value of Fuel Cost is calculated by 
multiplying the values of Fuel Price and 
Miles per year, and then dividing the result 
by the value of Miles per gallon.
Entering attributes using 
the Attribute panel
To calculate numerical 
results for Fuel Cost we 
still need to define the 
other remaining inputs.
Otherwise, if you would 
click the Result button, ...
...you would get an error 
message asking you if you 
want to edit the variables 
that are not yet defined.
When clicking YES the respective 
variable node will be selected on 
the diagram and you can edit 
its definition right in the 
Attribute panel below.
This is equivalent to opening the Object 
window and editing the Definition there.
If you find it more convenient 
to edit attributes using the 
Attribute panel, you can 
always click the Key icon to 
open or close the panel.
Defining a variable as a list
In Analytica it's easy to 
define an input not just as 
a single number but, for 
example, as a list of values.
This is especially useful 
when you want to 
perform WHAT-IF analyses. 
Input Output
In order to see how 
Fuel Cost is affected 
by Miles per gallon, you 
want to define this 
variable as a list.
Because it's alway good practice, you 
first enter a Description and the Units 
before you're going to define the variable...
Now you want to define 
it as a list of numbers 
between 20 and 50, by 
increments of 10.
From the Expression 
popup menu you choose 
List to enter a list of 
numbers.
Then type 20 in 
the first cell.
When you press Enter, 
Analytica automatically 
sets the next value 
using the default 
increment of 1.
Change the second cell 
to 30 and press Enter. 
Analytica automatically 
sets the next value 
using the increment 
implied by the first 
two values.
Now you have defined 
Miles per gallon as a 
range of values from 
20 to 50.
Now you have defined 
Miles per gallon as a 
range of values from 
20 to 50. 
Although the auto-fill feature makes 
it convenient to enter a simple linear 
sequence, you are free to edit the 
values as you please.
Viewing results in the Result window
Now that you have entered 
attributes and definitions 
for all variables it is time 
to see the result.
To do so, select 
the variable...
...and click the 
Result button.
The Result 
window appears.
Icons in the upper left 
corner of the Result 
window control the 
view mode.
Icons in the upper left 
corner of the Result 
window control the 
view mode. 
Graph view is the default. 
But you can change this 
in Preferences.

More Related Content

PPTX
java-Unit4 chap2- awt controls and layout managers of applet
PPTX
Geo gebra 2
PPTX
Excel solver
PPTX
Focusing on specific data by using filterss
PPTX
Geogebra 4
PDF
Using Align Palette Tutorial
PDF
Ajp notes-chapter-01
java-Unit4 chap2- awt controls and layout managers of applet
Geo gebra 2
Excel solver
Focusing on specific data by using filterss
Geogebra 4
Using Align Palette Tutorial
Ajp notes-chapter-01

What's hot (6)

ODT
Open Office Calc : Lesson 05
DOC
Autocad excel vba
PPT
WPF Graphics and Animations
PPT
Windows Programming with AWT
PPT
Excel2002
PPSX
Basic of Java Netbeans
Open Office Calc : Lesson 05
Autocad excel vba
WPF Graphics and Animations
Windows Programming with AWT
Excel2002
Basic of Java Netbeans
Ad

Viewers also liked (20)

PPT
CACN INVESTOR PPT
PDF
20160211 peru energia 2016 jml
PPT
03 litoszféra
PDF
Artikel-ModelAudit-2016-05
PDF
Unternehmensplanung wie sie sein sollte
PDF
Екатерина Малеева "Стандарт благоустройства улиц города Москвы"
PDF
What is 1st, 2nd, 3rd party data?
PDF
Analysis and Visualization of Real-Time Twitter Data
PPTX
Can Digital Data help predict the results of the US elections?
PDF
Digital Winners 2013: Aleksander stensby
PDF
Tip from IBM Connect 2014: Socialytics = Social Business, Big Social Data and...
PPTX
Analyzing social conversation: a guide to data mining and data visualization
PPTX
Influence mapping Toolbox Presentation London 2015
PDF
Business Models in the Data Economy: A Case Study from the Business Partner D...
PPTX
Data Driven PR: 8 Steps to Building Media Attention with Research
PPTX
Searching lexis nexis in power search mode
PDF
Unleashing Twitter Data for Fun and Insight
PPT
Text Analytics: Yesterday, Today and Tomorrow
PDF
Market Mix Models: Shining a Light in the Black Box
PDF
Topic and text analysis for sentiment, emotion, and computational social science
CACN INVESTOR PPT
20160211 peru energia 2016 jml
03 litoszféra
Artikel-ModelAudit-2016-05
Unternehmensplanung wie sie sein sollte
Екатерина Малеева "Стандарт благоустройства улиц города Москвы"
What is 1st, 2nd, 3rd party data?
Analysis and Visualization of Real-Time Twitter Data
Can Digital Data help predict the results of the US elections?
Digital Winners 2013: Aleksander stensby
Tip from IBM Connect 2014: Socialytics = Social Business, Big Social Data and...
Analyzing social conversation: a guide to data mining and data visualization
Influence mapping Toolbox Presentation London 2015
Business Models in the Data Economy: A Case Study from the Business Partner D...
Data Driven PR: 8 Steps to Building Media Attention with Research
Searching lexis nexis in power search mode
Unleashing Twitter Data for Fun and Insight
Text Analytics: Yesterday, Today and Tomorrow
Market Mix Models: Shining a Light in the Black Box
Topic and text analysis for sentiment, emotion, and computational social science
Ad

Similar to How to Build a Basic Model with Analytica (20)

PPTX
Microsoft Excel Tutorial
PDF
At its most elementary, the syntax of Manipulate is clone of that of.pdf
PDF
Create a PivotTable to analyze worksheet data.pdf
PPTX
MS Excel 2013
PDF
Curve fitting
PPTX
MS Excel 2013.pptx
PDF
The Ultimate Guide to Ad5 e808 adobe audience manager business practitioner e...
PDF
111249-140817070204-phpapp02.pdf
PDF
Smart sketchgettingstartedguide4
DOCX
computer applications in business unit 3
DOC
Data Transformation
PDF
Concrete bent with_nonprismatic_cap_beam
PPTX
Making a Pie Chart
PPTX
SPSS How to use Spss software
PPTX
Libre Office Calc Lesson 2: Formatting and Charts
PPTX
SPSS PRESENTATION.PPT.pptx
PPT
Spreadsheets Introduction using RM Number Magic
PDF
Print16
DOCX
Click dimensions campaign automation
PPTX
Lesson 18 Creating Pivot Tables
Microsoft Excel Tutorial
At its most elementary, the syntax of Manipulate is clone of that of.pdf
Create a PivotTable to analyze worksheet data.pdf
MS Excel 2013
Curve fitting
MS Excel 2013.pptx
The Ultimate Guide to Ad5 e808 adobe audience manager business practitioner e...
111249-140817070204-phpapp02.pdf
Smart sketchgettingstartedguide4
computer applications in business unit 3
Data Transformation
Concrete bent with_nonprismatic_cap_beam
Making a Pie Chart
SPSS How to use Spss software
Libre Office Calc Lesson 2: Formatting and Charts
SPSS PRESENTATION.PPT.pptx
Spreadsheets Introduction using RM Number Magic
Print16
Click dimensions campaign automation
Lesson 18 Creating Pivot Tables

More from Torsten Röhner (10)

PDF
Finance-01-2012-04_Seiten 72u73
PDF
Artikel-Planung-Unplanbares-2015-06
PDF
10 Golden Rules of Financial Modeling
PDF
Analytica: Beyond the spreadsheet
PDF
Financial Modeling with Analytica (Part 3 of 3)
PDF
Financial Modeling with Analytica (Part 2 of 3)
PDF
Financial Modeling with Analytica (Part 1 of 3)
PDF
syconomic: Wir entwickeln Modelle, aber nicht mit Excel
PDF
What if You Could See the Future of Your Business?
PDF
Unternehmensplanung 2.0 | Business Simulation by syconomic
Finance-01-2012-04_Seiten 72u73
Artikel-Planung-Unplanbares-2015-06
10 Golden Rules of Financial Modeling
Analytica: Beyond the spreadsheet
Financial Modeling with Analytica (Part 3 of 3)
Financial Modeling with Analytica (Part 2 of 3)
Financial Modeling with Analytica (Part 1 of 3)
syconomic: Wir entwickeln Modelle, aber nicht mit Excel
What if You Could See the Future of Your Business?
Unternehmensplanung 2.0 | Business Simulation by syconomic

Recently uploaded (20)

PDF
how_to_earn_50k_monthly_investment_guide.pdf
PPTX
EABDM Slides for Indifference curve.pptx
PDF
Lecture1.pdf buss1040 uses economics introduction
PPTX
The discussion on the Economic in transportation .pptx
PDF
NAPF_RESPONSE_TO_THE_PENSIONS_COMMISSION_8 _2_.pdf
PDF
Bladex Earnings Call Presentation 2Q2025
PPTX
Introduction to Essence of Indian traditional knowledge.pptx
PDF
Topic Globalisation and Lifelines of National Economy.pdf
PPTX
4.5.1 Financial Governance_Appropriation & Finance.pptx
PPTX
Antihypertensive_Drugs_Presentation_Poonam_Painkra.pptx
PPTX
Introduction to Customs (June 2025) v1.pptx
PDF
ABriefOverviewComparisonUCP600_ISP8_URDG_758.pdf
PDF
Bitcoin Layer August 2025: Power Laws of Bitcoin: The Core and Bubbles
PPTX
Introduction to Managemeng Chapter 1..pptx
PDF
caregiving tools.pdf...........................
PPTX
social-studies-subject-for-high-school-globalization.pptx
PPT
E commerce busin and some important issues
DOCX
marketing plan Elkhabiry............docx
PDF
Understanding University Research Expenditures (1)_compressed.pdf
PDF
Why Ignoring Passive Income for Retirees Could Cost You Big.pdf
how_to_earn_50k_monthly_investment_guide.pdf
EABDM Slides for Indifference curve.pptx
Lecture1.pdf buss1040 uses economics introduction
The discussion on the Economic in transportation .pptx
NAPF_RESPONSE_TO_THE_PENSIONS_COMMISSION_8 _2_.pdf
Bladex Earnings Call Presentation 2Q2025
Introduction to Essence of Indian traditional knowledge.pptx
Topic Globalisation and Lifelines of National Economy.pdf
4.5.1 Financial Governance_Appropriation & Finance.pptx
Antihypertensive_Drugs_Presentation_Poonam_Painkra.pptx
Introduction to Customs (June 2025) v1.pptx
ABriefOverviewComparisonUCP600_ISP8_URDG_758.pdf
Bitcoin Layer August 2025: Power Laws of Bitcoin: The Core and Bubbles
Introduction to Managemeng Chapter 1..pptx
caregiving tools.pdf...........................
social-studies-subject-for-high-school-globalization.pptx
E commerce busin and some important issues
marketing plan Elkhabiry............docx
Understanding University Research Expenditures (1)_compressed.pdf
Why Ignoring Passive Income for Retirees Could Cost You Big.pdf

How to Build a Basic Model with Analytica

  • 1. How to build a basic model with Analytica
  • 3. When you start up Analytica it shows an Object window for a new, untitled model.
  • 4. Behind the Object window you see an empty Diagram window.
  • 5. First you should enter a Title for your model...
  • 6. Click in the Title field and give your model a decent name.
  • 7. When you hit Alt + Enter or the Tab key or click somewhere outside...
  • 8. ...the Identifier field automatically changes to Car_cost_model based on the Title you keyed in.
  • 9. ...the Identifier field automatically changes to Car_cost_model based on the Title you keyed in. The Identifier is automatically created to match the first 20 characters of the Title. You can change this manually if you want.
  • 10. If you like, type in a description of your model...
  • 11. ...or add your name as the author. (If your computer does not auto-matically register your name)
  • 12. When you're done, close the Object window...
  • 13. ...and start building your first model
  • 15. But before we dive in let's first explore the tools you need in the tool bar.
  • 16. When you create a new model the edit tool is selected by default.
  • 17. You use the edit tool to create or change a model. When you create a new model the edit tool is selected by default.
  • 18. When the edit tool is selected, a menu of icons is displayed in the node palette.
  • 19. When the edit tool is selected, a menu of icons is displayed in the node palette. These icons represent the different node types and allow you to add nodes to the diagram.
  • 21. Now you're going to create variables in the Car Cost model.
  • 22. The first variable you will create is for the cost of fuel.
  • 23. Drag the Variable Node icon to a position in the influence diagram.
  • 24. Type Fuel cost for the variable title.
  • 25. Type Fuel cost for the variable title. As you build a model, you should choose descriptive titles for your variables. Descriptive variable titles remind you of the model’s logic and help others to under-stand how the model works.
  • 26. Type Fuel cost for the variable title. Since Fuel Cost doesn't yet have a valid definition it's filled with a diagonal line pattern around its text.
  • 27. Now you can repeat this and create some more variables that affect fuel cost...
  • 28. Price per gallon of gasoline...
  • 29. Number of miles driven each year...
  • 30. Miles per gallon of gasoline...
  • 31. And finally the driver’s age.
  • 33. After that it might be a good idea to save your model.
  • 34. After that it might be a good idea to save your model.
  • 35. After that it might be a good idea to save your model. Analytica automatically saves each change you make to a backup file. If your computer should crash unexpectedly, you can recover your changes the next time you start Analytica. Even so, it’s a good idea to save your changes from time to time.
  • 37. Sometimes you might want to delete a variable that you previously created.
  • 38. In this example you realize that the driver’s age is not relevant to your understanding of the Fuel Cost variable.
  • 39. When you hit Del or Backspace ⌫ after selec-ting the node, a confir-mation dialog pops up...
  • 40. Click OK to confirm that you want to delete the selected object.
  • 42. When you create a model you should try to structure the layout to make the influence diagram easy to understand.
  • 43. In this case you think that Fuel Cost will be derived from the other three variables. Therefore you want to re-arrange the diagram a little...
  • 44. You move the Fuel Cost node to the right...
  • 45. ...and place the other variables to the left.
  • 47. Now you decide that Mpg is still a little cryptic...
  • 48. So you rename the node to Miles per gallon to make things clearer.
  • 49. When you change the title of a node, Analytica asks you if you want the Identifier to be automatically changed as well.
  • 50. When you change the title of a node, Analytica asks you if you want the Identifier to be automatically changed as well. You can change this behavior, to either turn off automatic updating of the identifier or to make it fully automatic, so that you are not asked.
  • 52. One of Analytica’s most powerful features is its ability to show relationships between variables in the influence diagram.
  • 53. Influence arrows are used to specify the dependencies between variables.
  • 54. Because Miles per gallon influences the Fuel Cost, you want to draw an arrow connecting the two nodes.
  • 55. Select the arrow tool to begin drawing arrows.
  • 56. Click on the node where you want the arrow to start...
  • 57. ...and drag a line to the other node.
  • 58. When you release the mouse button, the two nodes are now connected by an arrow, indicating that Miles per gallon affects Fuel Cost.
  • 59. When you release the mouse button, the two nodes are now connected by an arrow, indicating that Miles per gallon affects Fuel Cost. When needed you can draw multiple arrows at once. Just hold down Control or Shift while selecting and drag the lines to the desired node.
  • 60. Entering attributes into the Object window
  • 61. Each variable (or other Object) has an Object window that lets you see and edit its Attributes, like its...
  • 62. Each variable (or other Object) has an Object window that lets you see and edit its Attributes, like its... Identifier
  • 63. Each variable (or other Object) has an Object window that lets you see and edit its Attributes, like its... Title
  • 64. Each variable (or other Object) has an Object window that lets you see and edit its Attributes, like its... Units
  • 65. Each variable (or other Object) has an Object window that lets you see and edit its Attributes, like its... Description
  • 66. Each variable (or other Object) has an Object window that lets you see and edit its Attributes, like its... Definition
  • 67. Each variable (or other Object) has an Object window that lets you see and edit its Attributes, like its... Inputs
  • 68. Each variable (or other Object) has an Object window that lets you see and edit its Attributes, like its... Outputs
  • 69. If you want to enter attributes for Annual Miles, first select the node...
  • 70. ...then either click the Object window button or just double-click the selected node on the diagram.
  • 71. In the Object window you see that Analytica has already assigned an Identifier based on the Title.
  • 72. In the Object window you see that Analytica has already assigned an Identifier based on the Title. Analytica assigns the identifier when the title is created. It uses the first 20 characters of the title except for spaces or punctuation, which are replaced by underscores (_).
  • 73. You can directly edit both the identifier and the title.
  • 74. First, you change the variable’s identifier to a short abbreviation so that it can easily be used later in the definitions of other variables.
  • 75. Then you type in miles/year as the Unit of measurement.
  • 76. Then you type in miles/year as the Unit of measurement. Analytica uses the information from the Units field to label graphs or tables that use this variable; Analytica does not use it in any mathematical computations.
  • 77. When you change the Title to Miles per year ...
  • 78. ...Analytica asks you if you want it to automatically change the identifier to match the new title.
  • 79. ...Analytica asks you if you want it to automatically change the identifier to match the new title. In this case you click No to keep the Identifier as Mpy.
  • 80. Finally you enter a description for this variable.
  • 81. Defining a variable as an explicit value
  • 82. Analytica uses a wide range of variable types. For now we simply enter an explicit value for the variable.
  • 83. Analytica uses a wide range of variable types. For now we simply enter an explicit value for the variable. Functional expressions and lists, for example, are described later in this tutorial.
  • 84. As a first guess you put in a single number.
  • 85. Click the Check button to accept your input.
  • 86. Miles per year is no longer filled with a diagonal line pattern around its title. The clear node indicates that this variable now has a valid definition.
  • 87. Defining a variable as a function of other variables
  • 88. When one variable dependes on another variable, you must provide an expression that describes the relationship between the variables.
  • 89. Since you've drawn arrows from other variables to Fuel Cost, their identifiers and titles appear in the variable's Inputs field.
  • 90. Before you're going to define the functional relationship you do a little housekeeping and enter the Units and a Description.
  • 91. Because fuel cost is equal to fuel price times miles driven, divided by miles per gallon, you will enter something equivalent to this into the Definition field.
  • 92. When you click into the Definition field you can choose the Inputs from a popup menu.
  • 93. When you click into the Definition field you can choose the Inputs from a popup menu. Variables that are not yet used in the definition are display in italics.
  • 94. Alternatively, when you start typing a variable's name, Analytica's Expression Assist provides a list of Identifiers and Functions that start with the letters you typed.
  • 95. Based on the definition you just entered, the value of Fuel Cost is calculated by multiplying the values of Fuel Price and Miles per year, and then dividing the result by the value of Miles per gallon.
  • 96. Entering attributes using the Attribute panel
  • 97. To calculate numerical results for Fuel Cost we still need to define the other remaining inputs.
  • 98. Otherwise, if you would click the Result button, ...
  • 99. ...you would get an error message asking you if you want to edit the variables that are not yet defined.
  • 100. When clicking YES the respective variable node will be selected on the diagram and you can edit its definition right in the Attribute panel below.
  • 101. This is equivalent to opening the Object window and editing the Definition there.
  • 102. If you find it more convenient to edit attributes using the Attribute panel, you can always click the Key icon to open or close the panel.
  • 103. Defining a variable as a list
  • 104. In Analytica it's easy to define an input not just as a single number but, for example, as a list of values.
  • 105. This is especially useful when you want to perform WHAT-IF analyses. Input Output
  • 106. In order to see how Fuel Cost is affected by Miles per gallon, you want to define this variable as a list.
  • 107. Because it's alway good practice, you first enter a Description and the Units before you're going to define the variable...
  • 108. Now you want to define it as a list of numbers between 20 and 50, by increments of 10.
  • 109. From the Expression popup menu you choose List to enter a list of numbers.
  • 110. Then type 20 in the first cell.
  • 111. When you press Enter, Analytica automatically sets the next value using the default increment of 1.
  • 112. Change the second cell to 30 and press Enter. Analytica automatically sets the next value using the increment implied by the first two values.
  • 113. Now you have defined Miles per gallon as a range of values from 20 to 50.
  • 114. Now you have defined Miles per gallon as a range of values from 20 to 50. Although the auto-fill feature makes it convenient to enter a simple linear sequence, you are free to edit the values as you please.
  • 115. Viewing results in the Result window
  • 116. Now that you have entered attributes and definitions for all variables it is time to see the result.
  • 117. To do so, select the variable...
  • 118. ...and click the Result button.
  • 119. The Result window appears.
  • 120. Icons in the upper left corner of the Result window control the view mode.
  • 121. Icons in the upper left corner of the Result window control the view mode. Graph view is the default. But you can change this in Preferences.