Social Science Surveys
This chapter introduces the extension package memisc, which is
specifically designed to address several of the challenges that were
discussed in the previous chapter. It shows how a the system memory can
be saved by importing subsets of variables and observations; how
variables can be renamed so that results are more easy to interpret; how
certain metadata can be used, that are not provided for by a basic R
installation, such as value labels and user-defined missing values. The
chapter also provides examples for more complex recodings of variables,
e.g. for the construction of Goldthorpe class categories for households
from ISCO-coded occupations of survey respondents and the creation of
codebooks.
Below is the supporting material for the
various sections of the chapter.
Social Science Surveys¶
This chapter introduces the extension package memisc, which is specifically designed to address several of the challenges that were discussed in the previous chapter. It shows how a the system memory can be saved by importing subsets of variables and observations; how variables can be renamed so that results are more easy to interpret; how certain metadata can be used, that are not provided for by a basic R installation, such as value labels and user-defined missing values. The chapter also provides examples for more complex recodings of variables, e.g. for the construction of Goldthorpe class categories for households from ISCO-coded occupations of survey respondents and the creation of codebooks.
Below is the supporting material for the various sections of the chapter.
Importing survey data¶
Importing data from the British Election Study in SPSS format
Importing ASCII format data from the American National Election Study
Recoding and other transformations¶
Recoding data from the British Election Study
Combining variables using case distinctions