Simulation and estimation of macroeconomic models in Dynare - Madeira, J. (Handbook of research methods and applications in empirical macroeconomics, 2013)