I am trying to replicate a Taylor Curve, which illustrates a trade-off between Output gap variance and Inflation variance. I found it in this article by M. Rubio (2020), but I couldn’t find any available replication code, and I struggle to replicate it by myself.

Would anyone be so kind as to point me in the right direction?

Thank you for such prompt response professor. I followed the guide you provided there and my model is now functional, but the results don’t make a lot of sense. For my TR, I get the following optimal values:

I am also trying to plot the TC, but the graph doesn’t seem to be ok either: