IRIS Toolbox Reference Manual

run

Evaluate reporting equations (rpteq) object

Syntax

Outp = run(Q,Inp,Range,...)

Input arguments

Output arguments

Options

Description

Reporting equations are always evaluated non-simultaneously, i.e. equation by equation, for each period.

Example

Note the differences in the three output databases, d1, d2, d3, depending on the options 'dbOverlay=' and 'fresh='.

>> q = rpteq({ ...
    'a = c * a{-1}^0.8 * b{-1}^0.2;', ...
    'b = sqrt(b{-1});', ...
    })

q =
    rpteq object
    number of equations: [2]
    comment: ''
    user data: empty
    export files: [0]

>> d = struct();
>> d.a = tseries();
>> d.b = tseries();
>> d.a(qq(2009,4)) = 0.76;
>> d.b(qq(2009,4)) = 0.88;
>> d.c = 10;
>> d

d = 
    a: [1x1 tseries]
    b: [1x1 tseries]
    c: 10

>> d1 = run(q,d,qq(2010,1):qq(2011,4))

d1 = 
    a: [8x1 tseries]
    b: [8x1 tseries]
    c: 10

>> d2 = run(q,d,qq(2010,1):qq(2011,4),'dbOverlay=',true)

d2 = 
    a: [9x1 tseries]
    b: [9x1 tseries]
    c: 10

>> d3 = run(q,d,qq(2010,1):qq(2011,4),'fresh=',true)

d3 = 
    a: [8x1 tseries]
    b: [8x1 tseries]