Thanks a lot for this post. I have a problem, though. If I try to save the results in a “mat” file by using this command
dynasave (OLGResults) w c1 s c2 r k c y;
I get this error message
Error using horzcat
CAT arguments dimensions are not consistent.
I have found out that the problem is caused by variable “s”; i.e. if I use the command
dynasave (OLGResults) w c1 c2 r k c y; // excluding “s”
it works fine.
However, in the former case (when I get the error) if I open the oo_.endo_simul file, the variable “s” is there, with the same (!) number of observations as the other endogenous variables.
Does any one have an idea of what is going on? What am I doing wrong?
Any help would be appreciated.