Erreur de compilation

it is done here is the message that I receive:
Error using load_m_file_data_legacy
Some variables are missing (A B CNR CR G IG IP KG KP LNR LR PI R RB T TRANS U W Y tau_c tau_k tau_l)!

Error in makedataset (line 126)
DynareDataset = load_m_file_data_legacy(datafile, DynareOptions.varobs);

Error in dynare_estimation_init (line 553)
[dataset_, dataset_info, newdatainterfaceflag] = makedataset(options_, options_.dsge_var*options_.dsge_varlag, gsa_flag);

Error in dynare_estimation_1 (line 110)
dynare_estimation_init(var_list_, dname, [], M_, options_, oo_, estim_params_, bayestopt_);

Error in dynare_estimation (line 118)
dynare_estimation_1(var_list,dname);

Error in limsa.driver (line 667)
oo_recursive_=dynare_estimation(var_list_);

Error in dynare (line 281)
evalin(‘base’,[fname ‘.driver’]);

Does your data file contain proper variable names?

not really
I will send you my excel file and my git so you can clarify the problems
sal.mod (8.4 KB)
base DSGE.xlsx (12.0 KB)

Use sal.mod (8.4 KB)
Now you have the issue in

The problem is that you are observing all elements of

Yss*Y = Css*C + IPss*IP + IGss*IG + Gss*G;

thank you very much Professor Johaness, i will take a look at it

so I have to remove IPss or what?

Professor Johaness
I think my git is perfect
the main problem comes from my database the message that appears after launching the git is the following:
Error using makedataset
makedataset: I can’t find a datafile (with allowed extension m, mat, csv, xls or xlsx)!

Error in dynare_estimation_init (line 553)
[dataset_, dataset_info, newdatainterfaceflag] = makedataset(options_, options_.dsge_var*options_.dsge_varlag, gsa_flag);

Error in dynare_estimation_1 (line 110)
dynare_estimation_init(var_list_, dname, [], M_, options_, oo_, estim_params_, bayestopt_);

Error in dynare_estimation (line 118)
dynare_estimation_1(var_list,dname);

Error in henri_ngah.driver (line 517)
oo_recursive_=dynare_estimation(var_list_);

Error in dynare (line 281)
evalin(‘base’,[fname ‘.driver’]);

explain me step by step how I can insert the database i tried the three methods : import the data, generate the data and generate livee data.
here is my git and my database
base DSGE.xlsx (12.0 KB)
mohamedS.mod (8.0 KB)

my data contains the variables Y C G IG Sm IP
but I still get this massage!
Error using load_m_file_data_legacy
Some variables are missing (C G IG IP Sm Y)!

Error in makedataset (line 126)
DynareDataset = load_m_file_data_legacy(datafile, DynareOptions.varobs);

Error in dynare_estimation_init (line 553)
[dataset_, dataset_info, newdatainterfaceflag] = makedataset(options_, options_.dsge_var*options_.dsge_varlag, gsa_flag);

Error in dynare_estimation_1 (line 110)
dynare_estimation_init(var_list_, dname, [], M_, options_, oo_, estim_params_, bayestopt_);

Error in dynare_estimation (line 118)
dynare_estimation_1(var_list,dname);

Error in mohamedS.driver (line 636)
oo_recursive_=dynare_estimation(var_list_);

Error in dynare (line 281)
evalin(‘base’,[fname ‘.driver’]);

You again deleted the xls_range I previously added.

the problem is that matlab does not recognize the variables observed in my data

You are not listening carefully. You need to specify xls_range=D1:I22. Also, you need to provide the most recent files that cause issues. Your last upload has a totally different set of varobs.

excuse me really, if I understand well I just import the database without generating a git and I place rangeD1:I22 and I specify the varobs in the same estimation git that is in the same line?

proffesor Johaness excuse me really
I’ll pass you my recent git and excel sheet
please try to correct the problem
base DSGE.xlsx (12.0 KB)
mohamedSALIM.mod (8.0 KB)

You declared

varobs tau_c tau_l B;

as observed, but none of those is actually contained in the Excel file.

the variables in my excel sheet are Y C IG IP Sm G
I declared these last ones as varobs
but I still get the following message:
Error using load_m_file_data_legacy
Some variables are missing (C G IG IP Sm Y)!

Error in makedataset (line 126)
DynareDataset = load_m_file_data_legacy(datafile, DynareOptions.varobs);

Error in dynare_estimation_init (line 553)
[dataset_, dataset_info, newdatainterfaceflag] = makedataset(options_, options_.dsge_var*options_.dsge_varlag, gsa_flag);

Error in dynare_estimation_1 (line 110)
dynare_estimation_init(var_list_, dname, [], M_, options_, oo_, estim_params_, bayestopt_);

Error in dynare_estimation (line 118)
dynare_estimation_1(var_list,dname);

Error in mohamedSALIM.driver (line 635)
oo_recursive_=dynare_estimation(var_list_);

Error in dynare (line 281)
evalin(‘base’,[fname ‘.driver’]);

You need to be more careful in your work. That’s not what the code you uploaded does.

agree Professor Pfeifer
let’s try with this git and this base:
base_dsge_salim.xlsx (12.3 KB)
salim.mod (11.1 KB)

please try to modify it. Thank you very much and again I apologize for the inconvenience

You again deleted the xls_range and provided an incorrect name for the data file. See also

thank you very much Professor Johaness.

.

good evening professor
I have tried but I still can’t do it. Please try to complete my git if you don’t mind of course.
thank you very much for your attention

base DSGE.xlsx (12.0 KB)
salim.mod (11.2 KB)