i don’t know why dynare tells this problem : some variables are note used in the model bloc perhaps they are there

DSGE_vi.mod (3.1 KB)

The comment

```
*/Yss = 1;
Iss = 0.3*Yss;
rss = 1/betta -1;
Kss = Iss/delt;
Hss = (1/Kss^alfa)^(1/(1-alfa));/*
```

must be

```
/*Yss = 1;
Iss = 0.3*Yss;
rss = 1/betta -1;
Kss = Iss/delt;
Hss = (1/Kss^alfa)^(1/(1-alfa));*/
```

it’s always shows “undefined” for one variable

Either

```
rss = alfa*exp(a)*Kss^(alfa-1)*Hss^(1-alfa);
```

needs to be

```
ass=1;
rss = alfa*exp(ass)*Kss^(alfa-1)*Hss^(1-alfa);
```

Thank you Professor, one else , should you tell me what’s wrong in this model, there are four “NaN” with the model block

DSGE_M2_vf.mod (1.9 KB)

I want to assure that every shocks affect “C” , “Y” , “K” , and “L”, variables in this same model

DSGE_M2_vf.mod (1.9 KB)

Then you need to adjust the economic mechanism in your model. You built the model and you are the only one who should know its workings.

For starters, initialize all parameters:

Some of the parameters have no value (rho_nx, rho_alfa, omega_gi, omega_gc, omega_gr, Xss, Zss, rho_z)

Then check your initial values. For example, the one for `a`

must be 1, not 0.

Please professor, could you tell me what is the problem in this model, exceptionnally the bayes estimation?

export_dynv01_bayes.mod (3.2 KB)

There is a whole bunch of issues:

- Your model has a unit root. You need to set
`diffuse_filter`

. - Inspect your steady states. They do not make sense.
- Your observation equation is wrong as the mean of the data does not match the one of the model variable.
- You are neglecting parameter dependence.

Greetings Professor,

Should you please detect the matter in this model. Thank you

educ_dsge.mod (1.7 KB)

There are many issues.

- I first fixed a few syntax issues:

educ_dsge.mod (1.7 KB) - You are missing one equation, most likely for Z_t.
- You are entering your model in non-detrended form. As is, no steady state will exist.

Thank you Professsor