Code and some data for replicating some key results of my thesis