Showing posts with label documentation. Show all posts
Showing posts with label documentation. Show all posts

Friday, January 20, 2012

What is a codebook?

A codebook provides information on the structure, contents, and layout of a data file. Users are strongly encouraged to look at the codebook of a study before downloading the data file(s).

While codebooks vary widely in quality and amount of information given, a typical codebook includes:

  • Column locations and widths for each variable
  • Definitions of different record types
  • Response codes for each variable
  • Codes used to indicate nonresponse and missing data
  • Exact questions and skip patterns used in a survey
  • Other indications of the content and characteristics of each variable

Additionally, codebooks may also contain:

  • Frequencies of response
  • Survey objectives
  • Concept definitions
  • A description of the survey design and methodology
  • A copy of the survey questionnaire
  • Information on data collection, data processing, and data quality

The following example illustrates the main components of a typical SAMHDA codebook using the National Survey on Drug Use and Health (NSDUH), 2012 (ICPSR 34933):

Title Page
Bibliographic Citation
Data Collection Description
Codebook Body

The body of a codebook describes the content of the data file. The following elements are generally included for each variable in the data file:

  • Variable Name: Indicates the variable number or name assigned to each variable in the data collection.

  • Variable Column Location: Indicates the starting location and width of a variable. If the variable is a multiple-response type, the width referenced is that of a single response.

  • Variable Label: Indicates an abbreviated variable description (maximum of 40 characters) that can be used to identify the variable. In some cases, an expanded version of the variable name can be found in a variable description list.

  • Missing Data Code: Indicates the values and labels of missing data. If 9 is a missing value, then the codebook could note 9=Missing Data. Other examples of missing data labels include REFUSED, DON’T KNOW, BLANK (NO ANSWER), and LEGITIMATE SKIP. Some analysis software packages require that certain types of data that the user desires to be excluded from analysis be designated as "MISSING DATA," (i.e.., inappropriate, unascertained, unascertainable, or ambiguous data categories). Although these codes are defined as missing data categories, this does not mean that the user should not or could not use them, if so desired.

  • Code Value: Indicates the code values occurring in the data for a variable.

  • Value Label: Indicates the textual definitions of the codes. Abbreviations commonly used in the code definitions are "DK" (Do Not Know), "NA" (Not Ascertained), and "INAP" (Inapplicable).

Where do I get information about the names and meanings of variables?

All variable information may be found in the study's codebook(s). For survey data, the codebook usually includes the variable question text.

What kind of documentation files do you provide?

SAMHDA data collections may contain the following documentation files:

  • Codebook: Information on the structure, contents, and layout of a data file. The codebook may also contain information on study design and methodology.

  • Data collection instrument: Original survey instrument or questionnaire.

  • User Guide: More detailed information about a particular collection, often provided by the principal investigator.

A data collection instrument is included in the documentation for a study. Can I use this instrument for my project?

Some instruments utilized as part of the data collection process for a project deposited with SAMHDA may contain whole or partial contents from copyrighted instruments. Reproductions of such instruments are provided as documentation for the analysis of the data in the associated collection. You cannot use a survey question from one of the SAMHDA studies in building your own survey without conducting further research on your part. The question may be part of a copyrighted instrument, and using it would be copyright infringement and/or plagiarism. Restrictions on "fair use" apply to all copyrighted content.

Circular 21 from the U.S. Copyright Office provides basic information on fair use and several important legislative provisions and other documents addressing reproduction of copyrighted materials by librarians and educators.

Why can't I print my PDF codebook?

Some versions of the Acrobat software can't properly manage PDFs created in older versions of the software. SAMHDA processors test documentation files to ensure compatibility with the latest version of the free Acrobat Reader. We suggest downloading the latest version of the free Acrobat Reader from Adobe's website.