UCLA DomStat

Codebook (Data Dictionary)

When creating a database, it is important to create a codebook that identifies and explains the data. Below you will find database example #2 and its codebook.

Database Example #2

 

 

Codebook

 

 

When creating your own codebook, please consider some of these basic tips.

Variables

  1. Shouldn't start with a number
  2. Should be one word
  3. The more meaningful, the easier to remember
  4. Length can be as long as necessary (but preferably shorter)

Descriptions

  1. Complete description of the variable
  2. Can be the actual question posed in the questionnaire

Type

  1. Specify the type of variable (numeric, character, etc.)

Values or Characteristics

  1. If it is ordinal (such as a Likert scale, 1=always, 2=sometimes, 3=never)
  2. If nominal (such as ethnicity), specify what each number represents
  3. If numerical, list how many decimal places
  4. If applicable, list the minimum and maximum