the Secondary Moment of BGG
				
Posted: 
Wed Apr 14, 2010 2:49 am 
				by dean0504
				Hey,guys!I got  the BGG code and modified the parameters.The programme can run succesufully,but dynare doesn't show me all the secondary moments of the variables,just some of the jump variables.Would you like to tell me what the reasons are and what should I do if I want the secondary moments of the full model? 
The attachment is my code.Thanks a lot!
                                                                               Dean
			 
			
				Re: the Secondary Moment of BGG
				
Posted: 
Thu Apr 15, 2010 9:54 am 
				by SébastienVillemot
				Hi
This is because there is a unit-root in your model. Some variables are not stationary, so the moments don't exist. You need to report the moments after detrending, for example using the HP filter like that:
- Code: Select all
 stoch_simul(irf=24, hp_filter = 5);
Best
 
			 
			
				Re: the Secondary Moment of BGG
				
Posted: 
Thu Apr 15, 2010 2:19 pm 
				by dean0504
				Thanks,man!It runs very well!Thanks a lot!