Argentina's social security system: a dynamic microsimulation model for projecting its sustainability, adequacy and redistributive impact
Creators: name: Calcagno, Leonardo Eric
Publisher: name: Zenodo
Year: 2018
Subjects: microsimulation
dynamic
Argentina
Social Security
Pensions
Family benefits
Sustainabliity
Redistribution
Adequacy
Projection

description: Hello and welcome to my dynamic microsimulation model of Argentina's social security system. You will find in this Zenodo repository the following:<br>
    - The starting datasets, which you can also download as of 2019 from INDEC's website (the EPH surveys from the thrid quarter of 2003 to the first quarter of 2017).<br>
    - LIAM 2 version 0.12 windows 64 bits, which is the version that is compatible with my LIAM2 code. You can also download it (as of 2019) on LIAM2's website liam2.plan.be<br>
    - All the relevant SAS code for both importing these datasets, formatting them, calibrating the microsimulation model while also providing the starting datasets for the prospective and retrospective simulations. Keep in mind I used SAS Version 9.4. for this work.<br>
    - All the LIAM2 simulation codes, both prospective and retrospective, with the three starting datasets (2014_q2, 2014_q4 and 2015_q2), the four legislation scenarios (2018 legislation, 2017 legislation, 2015 legislation with permanent moratoriums and 2015 legislation without permanent moratoriums) and the three economic scenarios (central, low and high). There is also the csv output for the prospective simulations from where I take my results for analysing Argentina's social security economic sustainability, adequacy and redistributive impact.<br>
    - The csv calibration datasets for the LIAM2 simulations, including the alignment datasets and the globals.<br>
    - My PhD thesis. You can use it as a manual to actually understand what is going on with the simulations or see the results analysed.<br>
    - The excel files I used for extrapolating my results to Argentina's economy as well as making the different figures you can find in my thesis. Beware though, these files are uncommented.<br>
    - The life tables derived from INDEC's demographic projections, which are not actually publicly available (but were sent to me after I kindly asked for them by phone back in 2014).

You will need both SAS and LIAM2 to fully run this code. Still, the LIAM2 datasets formatted with SAS and which I use for my simulations are available in the Zenodo repository, so if you are only interested  on the dynamic microsimulation you can keep your kidney and skip the SAS part.<br>
 <br>
The overall execution order of the code is:<br>
    1- Run the SAS files until you export the datasets for the retrospective simulations.<br>
    2- Import the SAS files to LIAM2 and run the retrospective simulations. This will give you the simulated careers of EPHc respondents.<br>
    3- Run the SAS code to format these datasets for the prospective simulations, and export the datasets for the prospective simulations.<br>
    4- Run the prospective simulations, get the csv files with adequacy, redistributive impact and sustainability projections by legislative and economic scenario, make your figures / extrapolations and get the results.

This is licensed on creative commons. You can use bits of my code or the whole model for free if you want to, as long as you give me credit for it<br>
    (preferrably by quoting my PhD thesis).

I tried to comment the code and name the variables to make the code as clear as possible. If you have any questions or realise I forgot to put something important in the Zenodo repository, feel free to e-mail me at lcalcagno7 at gmail.com, contact me on github, or google me if all else fails. I am a native Spanish and French speaker as well as fluent in English, so you can use any of these languages to contact me.

I hope you will find here what you came for, and have fun!

<br>
Leonardo Eric Calcagno