Dear All,
I am facing the SVD error that many have ‘Input to SVD must not contain NaN or Inf.’
I have gone through the forum and read the answers to the same error message (for instance this thread and that one), and double checked that all variables and parameters are loaded from my file.
The steady state calculation gives six values very close to 0, but I also have tried manually assigning a steady state vector with all variables significantly different from 0, but the error stays.
From the previous posts, I understand that it is most likely due to a non computable equation like a division by 0 maybe due to a negative power. So I manually found out that changing the ^ to a + in line 127 removes the error. I guess that the error might be that the lagged C(+1) is zero. But I don’t understand why it is so.
Can someone please confirm my analysis and help me solve this issue? I attach my model file and the mat file that contains the steady states and parameters loaded by the model. I renamed the MAT file to "dsge1_ss.mat.txt" because I couldn't upload it otherwise. It needs to be renamed "dsge1_ss.mat" without .txt.
Thanks!