Hi all,
When I run my RBC model, dynare shows that there are 4 forward looking variables but I have just 2 of them! I do not know what is the problem!!

There are 4 eigenvalue(s) larger than 1 in modulus
for 4 forward-looking variable(s)
The rank condition is verified.

I really appreciate it if someone can tell me why!
Thank you in advance.

Dear Mohamad,
Thank you for your reply.
This problem was solved. Unfortunately I can not run my model,but I send you the mod file. When I change some part of this model,I can run it, but, it does not show the effect of the shocks on c and t! Please give me some advice!

Your timing for the capital stocks is inconsistent. The law of motion uses the correct stock at the end of period timing while the production function and the marginal products use the wrong beginning of period timing. Moreover, the equation

l_T = (1+n)* l_T(-1) ;

will produce explosiveness in l_T. It seems you forgot to detrend the model.

Dear jpfeifer,
Thank you for your reply a lot.
I consider the l_T as a deterministic variable that has a deterministic growth rate(n) and do you mean that I should write it as: l_T = (1+n) l_T(-1)+ e ? Could you verify if this approach is correct or not?
Also, I use the equations in stationary form,by dividing variables by the growth rate. And What does this sentence mean: the equation l_T = (1+n) l_T(-1) will produce explosiveness in l_T? Could you please advise me?
the IRFs do not show the effect of shocks on c and t! I appreciate it if you can tell me the reason.

Dear jpfeifer,
Thank you for your reply a lot.
I consider the l_T as a deterministic variable that has a deterministic growth rate(n) and do you mean that I should write it as: l_T = (1+n) l_T(-1)+ e ? Could you verify if this approach is correct or not?
Also, I use the equations in stationary form,by dividing variables by the growth rate. And What does this sentence mean: the equation l_T = (1+n) l_T(-1) will produce explosiveness in l_T? Could you please advise me?
the IRFs do not show the effect of shocks on c and t! I appreciate it if you can tell me the reason.

The reason for not displaying results is that the Blanchard-Kahn conditions are not satisfied. Regarding the l_T equation: start at any value for l_T unequal to 0 and l_T will diverge to ± infinity. Even if you consider this as a deterministic trend, you still have to detrend all equations with this trend. Otherwise, there is no well-defined steady state around which to approximate.

Dear jpfeifer,
Thank you very much.
I have problem with detrending although I read the manual and userguid and benchmark_DSGE.pdf that is mentioned in the other posts!
let me explain everything that I did in one sentence:
(after changing the model a little bit)I derive the optimality conditions, stationarize the non-stationary variables and log-linearize the model, so this is my question: When I do not have labor as trend as before, how can I detrend the variables( using the deflator=n, it says Unknown symbol: n. that make sense because I have no n in the model )!
could you please verify how can I do this? or could you suggest some other documents?

Dear All,
(for the above model) I derive the optimality conditions, stationarize the non-stationary variables and log-linearize the model, so this is my question.
The question is whether I should detrend the model again (while I stationarize the variables then I linear the model) or not? if no , then why dynare says that There are 5 eigenvalue(s) larger than 1 in modulus
for 2 forward-looking variable(s),
and if yes, the second question about detrending is :
when I use the command var(deflator=n) this error was shown: ERROR: Unknown symbol: n !!!
While in the above model there is l_T = (1+n)* l_T(-1) ! and it is mentioned in the model that n is a paremeter!
And when I use the # sign for introducing the detrend variables in model section, it shows this error: Model local variable lam cannot be given a lead or a lag.
so what can I do?
I very appreciate it if some one can help me!

Dear jpfeifer,
Thank you very much indeed. It is a precious hint!
Just another question: would you please let me know if non-statinary model is the reason of this error: "Error: There are 5 eigenvalue(s) larger than 1 in modulus
for 4 forward-looking variable(s) "?
And I did some thing like that for calculating stationary variables manually : according the user guide, page 66 “when shocks are null, real variables grow with At (except for labor, Nt, which is stationary as there is no population growth)” I define that for example, y(t) = Y(t)/n^t , then linearize the model and enter it to the dynare (that is the model mentioned above)!
Now I am confused that if I made mistake or not! if yes, it means that I should calculate the growth rate for every variable manually separately and then I can stationarize every variable by this process,and then log- linearize the stationarize model. Am I right?
Thank you in advance,
Zahra

I am not sure I am following. Look at it this way:

is an explosive autoregressive process as the autocorrelation coefficient (1+n) is bigger than 1. This means that you made a mistake somewhere in your detrending.

The page you quote out of the user guide refers to observation equations in the context of estimation, not the normal model equations.

Dear jpfeifer,
Thank you a lot for your reply again,
yes you are right but I suppose that l_T has a deterministic trend, so it define like this: l_T = (1+n)*l_T(-1). If I stationarize the L_T like what you said in the previous post, I will have: l_T = l_T(-1), and after linearization I will have l_T=l_T(-1) again. Now this equation show that l_T grows at rate 0! Please correct me if I am wrong ! Should I use this equation: l_T = l_T(-1)?
Thank you in advance.

Go back to any intermediate macro textbook and look up how to transform the Solow model into intensive form. After detrending, there is no law of motion for labor in the model anymore.

Dear jpfeifer,
I change my model to omit the law of motion for labor from the model. Now dynare shows that there are 3 eigenvalues and 2 forward looking variables, and when I use the “model_diagnostics(M_,options_,oo_)” command, it does not show any thing! Does it mean that there are some co-linear variables in the model? If yes, how can I find that witch variables are co-linear? Could you please advise me?
Thank you a lot.
Here is my model:

No, if it does not show anything, there is most likely a timing error somewhere in your model. Usually, the best way to proceed is to strip down the model to the most basic version that is working and start rebuilding from there.

Thank you very much for your help.
And one another question, I think I found the problem, but there is no c and t in the IRF graphs again!
I would appreciate it if you could give me some advice.
thank you in advance.

If all variables except for a few show up in IRFs, it means that those variables are flat and do not move. If they are supposed to move, there still is a mistake in the model.

Thank you very much,
I will check it again.
Can a mistake in the model lead to this error that there are 3 eigenvalues and 2 forward looking variables?
thanks.