Skip to content

DDI Codebook

This example shows how to document a small CSV file (four variables, five rows) using DDI Codebook 2.5.

Example CSV input

  • example.csv

  • id: record identifier

  • gender: coded as M / F
  • age: age in years
  • works_remote: 1 = usually works remotely (from home or elsewhere), 0 = usually works on site

Minimal DDI-Codebook 2.5 example

The XML below shows a minimal codeBook instance describing this file and its four variables. * example.xml