<< find_in_equations Creation and simulation of macroeconometric models rhs_minus_lhs >>

grocer >> Creation and simulation of macroeconometric models > model_setval

model_setval

enter the values of a coefficient or a parameter into a model tlist

CALLING SEQUENCE

model2=model_setval(model,names,vals)

PARAMETERS

Input

* model = a model typed list

* names = a vector of coefficients or parameters names

* vals = a real vector of the corresponding values

Output

* model2 = the original model tlist, filled with the values of the given coefficients

DESCRIPTION

Enters the values of a coefficient or a parameter into a model tlist.

EXAMPLE

global GROCERDIR;
// load the model small:
load(GROCERDIR+'\data\small.dat')
// set to 0.6 the value of the parameter p1d5s14 in model small:
small=model_setval(small,'p1d5s14',0.6)

AUTHOR

Éric Dubois 2018

Report an issue
<< find_in_equations Creation and simulation of macroeconometric models rhs_minus_lhs >>