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)
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.
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...
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.
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.
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.
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 (_).
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.
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.
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.
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.
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.
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.
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.