{ Analytica Model IntraTable_example, encoding="UTF-8" } SoftwareVersion 6.0.10 { System Variables with non-default values: } SampleSize := 1000 TypeChecking := 1 Checking := 1 SaveOptions := 2 SaveValues := 0 {!-50299|DiagramColor Model: 65535,65535,65535} {!-50299|DiagramColor Module: 65535,65535,65535} {!-50299|DiagramColor LinkModule: 65535,65535,65535} {!-50299|DiagramColor Library: 65535,65535,65535} {!-50299|DiagramColor LinkLibrary: 65535,65535,65535} {!-50299|DiagramColor Form: 65535,65535,65535} NodeInfo FormNode: 1,0,0,,0,0,,,,0,,,0 {!-50299|NodeColor Text: 62258,62258,62258} {!-60000|Attribute AcpStyles} Model IntraTable_example Title: IntraTable example Description: This is an example that appears on the page describing the IntraTable function. Author: Lonnie Chrisman~ Lumina Decision Systems Date: Fri, Oct 22, 2021 11:59 AM DiagState: 2,0,0,944,537,17 FontStyle: Arial,15 FileInfo: 0,Model IntraTable_example,2,2,0,0,W:\TestModels\IntraTable example.ana Index Level Title: Level Definition: [5,10,15] NodeLocation: 176,96,1 NodeSize: 64,24 Index Year Title: Year Definition: Sequence(2009,2010,0.25) NodeLocation: 176,152,1 NodeSize: 64,24 NumberFormat: 2,F,4,2,0,0,4,1,$,0,"ABBREV",0,,,0,0,15, Variable A Title: A Description: When using an IntraTable, you can refer to other cells by using the Slice and Subscript functions on the keyword Self, slicing or subscripting over the table indexes themselves. This table shows several examples. Definition: IntraTable(Level,Year)(~ 17,1+Self[@Year=@Year-1],2^Self[Year=Year-0.25],Sum(Self[@Year=@Year-k],k),Average(Self[@Year=@Year-k],k),~ 25,Self[@Year=@Year-1, Level=5],Self[@Level=@Level-1]^2,Self[Level=15, Year=2010],33,~ 73,14,sqrt(Self[Year=2009.25]),Self[Year=Year-0.5, Level=5],44) NodeLocation: 360,120,1 NodeSize: 64,24 DefnState: 2,536,75,841,331,0,DFNM ValueState: 2,653,452,650,231,,MIDM Aliases: FormNode Fo1679320899, FormNode Fo202925891 NumberFormat: 2,G,4,2,1,0,4,0,$,0,"ABBREV",0,,,0,0,2, Index k Title: k Definition: 1..3 NodeLocation: 176,216,1 NodeSize: 64,24 FormNode Fo1679320899 Title: A Definition: 0 NodeLocation: 352,192,1 NodeSize: 56,16 Original: A FormNode Fo202925891 Title: A Definition: 1 NodeLocation: 352,224,1 NodeSize: 56,16 Original: A Close IntraTable_example