Program codes for STATA, SPSS and R

Downloading and directories

All codes are saved with extension *.txt.
Save them with the appropriate extension *.do, *.sps, or *.R

Directories must be adjusted to the location of your data:

For example, a directory
global datadir "d:\work\sharew5_rel1-0-0"
global datadir "d:\work\SHARE\Wave2004\Data\sharew1_rel2-6-0"

must be changed to for example
global datadir "c:\soubory\SHARE\my_data"

Teaching materials (text in CZ]

Mendel University (April 2017) - presentation
Mendel University (April 2017) - SPSS


Program for working with easySHARE


Programs for codebooks for each wave:

Codebook for wave 2 in 2006
for wave 3 in 2008
for wave 4 in 2010
for wave 5 in 2012
Codebook for wave 6 in 2014

How to merge/join modules and longitudinal waves

Wave 1 (all countries, some modules)
Wave 2
(all countries, some modules)
Wave 3
(all countries, some modules)
Wave 4
(all countries, some modules)
Wave 5 (all countries, some modules)
Wave 6 (data for CZ, otherwise the file is too large)

Merging waves 1, 2, 3, 4 a 5
(all countries)

Merging waves 1, 2, 3, 4, 5 a 6 (data for CZ, otherwise the file is too large)


Syntax_SPSS_example for working with data
Syntax_SPSS_how to use dropoff

Syntax_SPSS_how to use NUTS
Syntax_SPSS_how to use imputations

Syntax merging modules and waves