change_type

change_type — modify the type of declared variables/parameters

Synopsis

change_type ( var | varexo | varexo_det | parameters ) VARIABLE_NAME | PARAMETER_NAME [ [,] VARIABLE_NAME | PARAMETER_NAME ...] ;

Description

Changes the types of the specified variables/parameters to another type: endogenous, exogenous, exogenous deterministic or parameter.

It is important to understand that this command has a global effect on the .mod file: the type change is effective after, but also before, the change_type command. This command is typically used when flipping some variables for steady state calibration: typically a separate model file is used for calibration, which includes the list of variable declarations with the macro-processor, and flips some variable.

Example

var y, w;
parameters alpha, bet;
...
change_type(var) alpha, bet;
change_type(parameters) y, w;
    

Here, in the whole model file, alpha and beta will be endogenous and y and w will be parameters.