Upload
kardra
View
229
Download
0
Embed Size (px)
Citation preview
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
1/41
Subscripting in Vensim 2:
Subscript Introduction, Selection,
Progression & Mapping, Subranging
Nathaniel Osgood
CMPT 858
March 22, 2011
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
2/41
A Common Pattern in Aggregate Models:
Lattice Structure
Unexposed Income
Decile 1 Education
Decile 1
Unexposed Income
Decile 2 Education
Decile 1
Unexposed Income
Decile 3 Education
Decile 1
Unexposed Income
Decile 4 Education
Decile 1Income Change 1
Education Decile 1
Income Change 2
Education Decile 1
Income Change 3
Education Decile 1
Unexposed Income
Decile 1 Education
Decile 2
Unexposed Income
Decile 2 Education
Decile 2
Unexposed Income
Decile 3 Education
Decile 2
Unexposed Income
Decile 4 Education
Decile 2Income Change 1
Education Decile 2
Income Change 2
Education Decile 2
Income Change 3
Education Decile 2
Education Rise FromDecile 1 to 2 for Income
Decile 1
Education Rise FromDecile 1 to 2 for Income
Decile 2
Education Rise FromDecile 1 to 2 for Income
Decile 3
Education Rise FromDecile 1 to 2 for Income
Decile 4
Unexposed Income
Decile 1 Education
Decile 3
Unexposed Income
Decile 2 Education
Decile 3
Unexposed Income
Decile 3 Education
Decile 3
Unexposed Income
Decile 4 Education
Decile 3Income Change 1
Education Decile 3
Income Change 2
Education Decile 3
Income Change 3
Education Decile 3
Education Rise FromDecile 2 to 3 for Income
Decile 1
Education Rise FromDecile 2 to 3 for Income
Decile 2
Education Rise FromDecile 2 to 3 for Income
Decile 3
Education Rise FromDecile 2 to 3 for Income
Decile 4
Income Levels
Education
Levels
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
3/41
Recall: A Means to Simplification:
Subscripting
We can simplify lattice structure by
subscripting the structure by (discrete) properties
This structure is then replicated for every subscript
combination
We can perform operations to create aggregate
totals from this disaggregated data
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
4/41
Recall: Reading a Subscripted Equation
Suggestion: Read as follows variable Total Populationfor a specific age group (member of AgeGroups),
ethnic group (member of EthnicGroups) and sex
(member of Sex) is just thesum of the non-
diabetic population for
that same age, ethnic
& sex group and of thediabetic population for
that same age, ethnic
& sex group
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
5/41
Recall: Vensim Model
Subscript control
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
6/41
Subscript Control Interface
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
7/41
Subscript Control Interface
The elements in this pane are those that will
be shown in graphs & tables
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
8/41
Subscript Control Interface
These controls add or remove elements whose
values should be displayed
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
9/41
A Key Piece of Functionality:
Subscript Control
The selected subset of subscripts are shown (here
All)
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
10/41
Subscript Control Interface
Maximum length subset of those selected are
shown
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
11/41
The elements in this pane are those that will
be shown in graphs & tables
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
12/41
Subscripts: Tables
The selected subset of subscripts
are shown
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
13/41
Subscripts: Graphs
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
14/41
Choosing Additional Tools (from Tools/Analysis Menu)
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
15/41
Histogram Tool
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
16/41
Displaying over Subscripts at the End
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
17/41
In Control Panel, Select All
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
18/41
Select all
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
19/41
Displaying Histogram Across Subscript Values
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
20/41
Setting Subscript
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
21/41
Displaying Statistics Across Subscripts
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
22/41
Subscript Control Interface
Can use this button to introduce a new
Subscript (i.e. stratification dimension)
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
23/41
Creating a New Subscript
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
24/41
Defining a New Subscripts Elements
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
25/41
New Subscript Appears in Subscript Control
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
26/41
Edit Subscript
Can use this button to edit the a subscript
(e.g. to add or remove elements)
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
27/41
Example Subscripted Stock: Youngest
Must consider birth flow in and aging to next
higher age group
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
28/41
For Middle Age Categories
Must Consider both aging in (from
previous category & aging out)
Uses
subscript
mapping
to findprevious
age
Category
to this
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
29/41
For Oldest Age Category
Must consider aging in , but there is no
aging out
Previous
age
category
ishard-
coded
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
30/41
Finding the Mapping
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
31/41
Finding among Variables
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
32/41
MiddleAgeGroup Subranges
(In Subscript Control)
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
33/41
Finding Middle Age Group Subrange
Definition
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
34/41
Subrange Definitions
M i D fi i i
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
35/41
Mapping Definition
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
36/41
Finding the Other Sex for a Given Sex
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
37/41
Using the Opposite Sex In an Equation
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
38/41
Clever Ways of Defining Flows
can lead to Fewer Equations
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
39/41
Definition of Aging
Fraction Leaving Each Year is Set to 0
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
40/41
Fraction Leaving Each Year is Set to 0
for Oldest Age Group
7/30/2019 Subscripting in Vensim 2 -- Introducing, Progressing Between, Mapping and Creating Subranges of Subscripts
41/41
Previous Age Group for Youngest Age Group is
Oldest So no Aging into Youngest Age Group