Dear professor Pfeifer,
I added a portion of human capital to the program in Queralto’s paper Innovation, Productivity, and Monetary Policy . I added endogenous variables human capital(HC) and time for education(E), information shock(info).
I changed the equation 12 (turn exp(L) to exp(H)*exp(L); and the same change to eq.16, eq.37. I added equations 21 and 22.

When I simulate the model I get the following message:
esiduals of the static equations:

Equation number 1 : NaN
Equation number 2 : NaN
Equation number 3 : NaN
Equation number 4 : NaN
Equation number 5 : NaN
Equation number 6 : NaN
Equation number 7 : NaN
Equation number 8 : NaN
……

All equations are NaN
I wonder if there is a problem with the equation?

Do you have any tips on what might be causing this problem?

You are loading a parameter file you did not provide. Also, your model does not provide initial values for the steady state. Could it be that a steady state file is missing?

HC_endog_steadystate.m (5.1 KB)
Dear sir，I modified this file and the results show ‘The steadystate file did not compute the steady state’，do you have any suggestions?

Dynare does show you the equations with residuals. You need to focus on those. Given your changes in the model, you need to of course also adjust the associated steady state computations.