All Research Guides

Research Guide

Survey Data Analysis and Reproducible Export

Analysis-ready data starts while the questionnaire is being authored. Stable variable names, explicit recodes, recorded randomization, documented exclusions, and a versioned codebook prevent the cleanup file from becoming the study's undocumented source of truth.

A practical workflow

  1. 1

    Name variables before launch

    Use stable, meaningful names and explicit recodes that can survive wording changes and translations.

  2. 2

    Record design metadata

    Export treatment assignment, display order, conjoint profiles, endings, timing, and panel identifiers needed to reproduce the sample flow.

  3. 3

    Review quality without overwriting

    Keep raw responses intact and record exclusions, reasons, and reviewer decisions in a cleaning log.

  4. 4

    Generate code and documentation

    Export a codebook and starter scripts alongside native or tabular data rather than reverse-engineering labels later.

  5. 5

    Archive one replication package

    Bundle the instrument, flow diagram, data, codebook, analysis code, and provenance information under the same version.

Key design decisions

DecisionGuidance
Labels or coded values?Use coded values for analysis stability and keep labels in the codebook; never rely on column position to preserve meaning.
Wide or long data?Wide files are convenient for one-row-per-respondent models; repeated tasks often need a long table keyed by respondent and task.
Delete or exclude?Prefer reversible exclusions with recorded reasons. Delete only when retention is not lawful or the record should not exist.

Common mistakes

  • Renaming variables after collecting responses
  • Dropping randomized display information
  • Cleaning directly in the only raw-data file
  • Separating analysis code from the matching instrument version

Continue with a focused guide

Variable Names and Recodes

Create stable analysis fields before launch.

Export to Stata, R, and Python

Choose formats and preserve research metadata.

Codebooks and Starter Files

Generate documentation and pre-analysis scaffolding.

Review and Clean Responses

Apply quality decisions with an auditable log.

Export Study Documentation

Keep instruments, codebooks, and flow diagrams together.