Thanks Johannes.
It's true that the model is nonstationary, as the trend is I(2). Since the model is linear, I thought this would not be an issue as there is no need to perform an approximation around a steady state.
Regarding the size of the shocks, I don't think they are particularly relevant as I keep many standard deviations arbitrarily fixed at very low values in the code. Freeing those parameters in estimation would likely help generate smaller shocks.
Also, I noticed that the smoother results with the diffuse option depend on the ordering of the variables in that it gets correctly the trend of the first variable, and not those of the remaining ones. For instance, if you switch v1 and v2 in the data file, the smoother will keep generate a nice trend for v1 even though this is no longer the same variable. I don't understand this pattern as my prior would be that the ordering of the variables should not matter for the results.
Furthermore, I am pretty sure that this class of models can be estimated by likelihood-based methods using Kalman filtering (see eg.
http://www.stat.yale.edu/~lc436/papers/ ... rs1990.pdf). Do you think that Dynare is able to correctly perform such an estimation in levels and if yes, under which options?
Finally, I didn't get where you put the
v1=v1-v1(1);
v2=v2-v2(1);
v3=v3-v3(1);
command. You mention the mod file, but it generates an error when I try it...