Input to SCHUR must not contain NaN or Inf

??? Error using ==> schur
Input to SCHUR must not contain NaN or Inf.

Where is my error?
Thanks for your help!
wangshuai.zip (24.7 KB)

Run model_diagnostics, which turns up:

[quote]MODEL_DIAGNOSTICS: The following endogenous variables aren’t present at the current period in the model:
zetalU
[/quote]

Hi Johannes,
This problem has been solved.But i had a new problem now. I got:

**All parameters are identified in the model (rank of H).

WARNING !!!
The rank of J (moments) is deficient!**

Where am I wrong?
Thanks for your help.

This is code and data.
wangshuai1.zip (31 KB)

Dear Professor.
I already fixed all problems.
Then i added the shock_decomposition(parameter_set =posterior_mode);
But i got ** “Reference to non-existent field ‘varobsr’.”**
Which command should I run?

This is new code and data.
wangshuai2.zip (18.5 KB)

[quote=“qing23185”]Dear Professor.
I already fixed all problems.
Then i added the shock_decomposition(parameter_set =posterior_mode);
But i got ** “Reference to non-existent field ‘varobsr’.”**
Which command should I run?[/quote]

Sorry.It is “Reference to non-existent field ‘varobs’.”

You cannot do

at the posterior mode when you do not estimate the model. Use the parameter_set=calibration option. You still need to define observables (which is the cause of the error message) and provide a datefile. Otherwise, there is no data on which to do the decomposition