<< Creation and simulation of macroeconometric models Creation and simulation of macroeconometric models addsym >>

grocer >> Creation and simulation of macroeconometric models > addeq

addeq

add an equation to a model

CALLING SEQUENCE

model2=addeq(model,position,nameq,txteq,notransf)

PARAMETERS

Input

* model = a model tlist

* position = either a scalar, indicating where to add the equation or 'bottom' to add it at the bottom of the model or 'top' to add it at the top of the model

* nameq = a string vector, the names of the new equations

* txteq = a string vector, the texts of the new equations

* notransf = an optional argument: if given then the model is not transformed for simulation

Output

* model2 = a model tlist with the given equations added

DESCRIPTION

Adds equations to a model.

EXAMPLE

global GROCERDIR
// load the model small
load(GROCERDIR+'\data\small.dat')

// add the equation 'cb' to the model small, without recalculating all 
// stuff needed to simulate the model and save the result in a new model
// called small2
small2=addeq(small,'bottom','cb','cb=td_p6_d3-td_p7_d3','notransf')

AUTHOR

Éric Dubois 2018

Report an issue
<< Creation and simulation of macroeconometric models Creation and simulation of macroeconometric models addsym >>