How to draw samples from posterior predictive distribution

Hi Professor, I am reading the paper "Non-stationary hours in " and confusing about that how to generate the figure like

It seems that samples was drew from posterior predictive distribution. Then how to get the posterior predictive distribution and how draw samples from posterior predictive distribution? Could you please give me some hint? I am uploading the paper for your reference. Thank you so much. Looking forward to your reply.
J of Money Credit Banking - 2007 - CHANG - Non‐stationary Hours in a DSGE Model.pdf (787.2 KB)

Have a look at

Thanks so much for your help. But when I run the example mod file, I encountered the following error. Could you please help me to solve it?

Really looking forward to your reply. Thanks again!

Which Dynare version are you using?

Professor, I use Dynare 5.2. Does that work?

Thank you for your help.

In that case, you need tests/prior_posterior_function · 5.x · Dynare / dynare · GitLab