databank.forModel (+databank)
Create model specific databank
Syntax
db = databank.forModel(model, range, ___)
Input arguments
model [ Model ]
Model object for which the databank will be created;
range [ Dater ]
Date range on which the time series in the output
dbwill be created.
Output arguments
db [ struct | Dictionary ]
The output
dbwill contain a time series for each variable and shock, and a numerical values for each parameter. Each time series will be automatically prepeneded a sufficient number of periods before the start of the inputrangeto cover the model's initial conditions, and appended a sufficient number of periods after the end of the inputrangeto cover the model's terminal condition.
Options
__Deviation=false [ true | false ]
Deviation=falsemeans the time series in the outputdbcontain the steady-state lines;Deviation=truemeans the time series in the outputdbare filled with ones (for log-variables) or zeros (for other variables and shocks).
ShockFunc=@zeros [ function ]
Function used to generate shocks; each shock is then corrected for its std deviation currently assigned in the model object.
NumColumns=1 [ numeric ]
Number of columns created for each time series in the output
db; only works when the inputmodelobject has only one single parameter variant.
NumDraws=1 [ numeric ]
Number of columns created for each time series in the output
dbwith the time series for shocks randomly drawn than many times; only works when the inputmodelobject has only one single parameter variant; cannot be combined withNumColumns>1.
Description
Examples
d = databank.forModel(m, qq(2025,1):qq(2030,4));