Assume you are an incumbent local politician that can exert certain control on your local public savings bank. Would you try to increase lending before local elections to polish economic performance?
In their great article Electoral Cycles in Savings Bank Lending (JEEA, 2017) Florian Englmaier and Till Stowasser explore the degree of such electoral lending cycles using detailed German data and non-public banks as a control group. They also study related questions: For example, it does matter whether the election was fairly contested or not.
As part of his Master Thesis at Ulm University, Markus Reichart has created a very nice RTutor problem set that allows you to replicate key findings in an interactive fashion. He puts great emphasis in explaining in detail the underlying difference-in-difference structure that is fairly complex in the final analysis and also adds a nice own analysis about the role of the financial crisis. Like in previous RTutor problem sets, you can enter free R code in a web-based shiny app. The code will be automatically checked and you can get hints how to proceed.
You can test the problem set online on shinyapps.io
or locally install the problem set, by following the installation guide at the problem set’s Github repository:
Here is a screenshot of one of the plots you generate in the problem set:
(Yes, part of the problem set is a discussion of the parallel trends assumption. While one surely would not mind a bit more parallel development in the shown plot, the final regressions do add additional control variables. Also trends look more parallel if averaged across states.)
If you want to learn more about RTutor, try out other problem sets, or create a problem set yourself, take a look at the Github page
or at the documentation