All codes used in my dissertation are available here.