Social security and risk sharing: the role of economic mobility across generations · Study