Moments_varendo error


I am having trouble with the moments_varendo command. The error I get when I use the command is,

??? Subscripted assignment dimension mismatch.

Error in ==> conditional_variance_decomposition_mc_analysis at 70
p_mean(1,:slight_smile: = Steps;

I get this message when I have not specified the number of steps for the conditional variance decomposition.

Does anyone have any ideas on what is causing this?

I have %’ed out p_mean(1,:slight_smile: = Steps; in the conditional_variance_decomposition_mc_analysis file for now, but is there a better solution?


Please try to post the mod-file,