Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Export Variables and Data

An export collects the variables, data and statistics of chosen instruments into one folder, with a codebook in Word that describes them, ready to hand to a student or a collaborator or to open in other software.

Export

  1. On the Instruments page, tick the instruments you want and press Export. The dialog has three steps.

  2. Instruments: the ticked instruments. Add or remove any here.

  3. Datasets: every dataset that gives one of these instruments, laid out by wave and reporter. The datasets the page’s filters show start ticked. Tick a wave or a reporter to take all of its datasets; hover over a dataset to see which of the instruments it has. When one of the instruments describes a study’s participant roster (see IDs, Groups and Missing Codes), a box for that roster follows, ticked.

  4. Format: the list of what will be exported, what goes into the folder (Data, Statistics and Codebook, all ticked to start with) and how the data are laid out:

    • One file per dataset: a CSV file for each dataset, as in the data.

    • One table, a row per person (ID): one wide table across datasets, with the study and the ID as its first two columns, since IDs belong to their study. Each other column starts with its dataset’s name.

    • One table, a row per group: the same, with one row per group, such as a family. Shown when the project has a group.

    Untick Data for a codebook and variable list without any data, such as for someone deciding which variables to ask for.

  5. Press Export, then Open folder.

What is in the folder

The export writes a new folder in outputs/:

FileContent
variables.csvEvery item and score in each dataset: its study, wave, reporter, column, instrument, wording, type, options, allowed range and missing codes.
<dataset>.csv or data_by_<id or group>.csvThe data: the ID, group and date columns, the chosen items as they are in the data, and the scores labcatalog computes.
roster_<study>.csvA ticked participant roster: its ID, group and role columns and the columns its instrument describes, in a file of its own whatever the layout.
score_statistics.csvEach score’s n, mean, SD, range and α in each dataset, and ω when the window has fitted the factor models (empty otherwise).
item_statistics.csvThe same for each item.
codebook.docxA Word document for people to read and add to (see below).
manifest.jsonThe data files and checksums the export came from.

Open answers (text items) are listed in variables.csv but never exported, since they can identify people. In a wide table, a person or group that appears more than once in one file cannot be placed in a single row; the export leaves those rows out and says how many.

The codebook

codebook.docx describes what the export holds, so someone can use the data without opening labcatalog. It is written from the catalog each time; edit your copy freely, but change the instruments themselves in labcatalog and export again, as nothing flows back.

The project’s own fields (see Custom fields and tags) appear where they belong: a study’s under its description, a dataset’s, item’s or score’s as a column of its table, an instrument’s or administration’s beside the instrument’s other details. A field shows only when something in the export fills it in.