Errors in RBC models

Hello everyone,

I am new to dynare and have to code a Real business cycle model for a course in university. However, I encounter some strange errors in the driver and I cannot figure out what the problem is. It says something about global variables, which I dont really understand.

I will attach the code and the driver and if someone could tell me what I should change that would be great.

Thank you very much in advance.

driver.m (7.1 KB)

HM.mod (2.8 KB)

Don’t do

clear all

and use predetermined_variables k;
HM.mod (2.8 KB)