Harmonized KLOSA Creation Code

The Harmonized KLOSA version B dataset is created using data from the the KLOSA Wave 1, Wave 2, Wave 3, and Wave 4 data. 

***KEIS is in the process of restructuring the KLoSA data and has recently removed the English imputation files for Wave 2 and 3 and removed the imputation variables from the English Wave 4 main data.  KEIS has let us know that they plan to make those English imputation files available again in the future. For the time being you will not be able to generate the Harmonized KLoSA unless you downloaded the KLoSA data before the English imputation files for Wave 2 and 3 were removed and the the imputation variables were removed from the English Wave 4 main data. We plan to update the Harmonized KLoSA Creation Code as soon as KEIS re-releases these files.***

Download the Harmonized KLoSA Stata Creation Code.

To run the Harmonized KLoSA Creation Code in Stata:

  • Store the KLoSA data files on your computer (either SAS or SPSS versions).
  • Using Stat/Transfer or SAS or SPSS convert all SAS or SPSS datasets to Stata dataset format of the same name. Make sure to convert all variable names to lower case.
  • Edit lines 12 - 15 of the Stata Creation Code to list the folder location of the KLoSA data for each wave and edit line 16 to list the folder location where you would like to save the Harmonized KLoSA dataset. 

If you would prefer to work with the Harmonized KLoSA dataset in a statistical package other than Stata, you can convert the Harmonized KLoSA 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.