Harmonized ELSA End of Life Creation Code

The Harmonized ELSA End of Life version A dataset is created using data from the 33rd edition of the ELSA, released November 2020. 

Download the Harmonized ELSA End of Life Stata Creation Code.

To run the Harmonized ELSA EOL Creation Code in Stata:

  • From UKDS, download ELSA data.
  • Store all ELSA data files in one folder without any sub-folders on your computer. 
  • Edit lines 18-22 of the Stata Creation Code to list the folder location of the downloaded ELSA data and edit line 23 to list the folder location where you would like to save the Harmonized ELSA EOL dataset. 

If you would prefer to work with the Harmonized ELSA EOL dataset in a statistical package other than Stata, you can convert the Harmonized ELSA EOL Stata dataset using a program such as Stat/Transfer. If you do not have access to Stat/Transfer, you may be able to read the .dta dataset into your stat package using an “import” or “get” function. When reading a .dta dataset into another package, it is best to first save the dataset in a Stata version 12 format using the command saveold.