Codebook to metadata
Reads a codebook and proposes variable labels, value labels, missing-value codes and measurement levels for the active dataset as a list of changes you accept or reject. Open it from AI › Tools › Codebook.
When to use
Section titled “When to use”When your data arrived without labels (CSV, Excel) but a codebook or questionnaire describes each variable.
Assumptions
Section titled “Assumptions”- Supported files: DOCX (paragraphs and tables), XLSX, CSV/TSV, TXT/Markdown, and PDF files. In the macOS app, scanned PDF pages are read by OCR (Apple Vision, on this Mac), as in the knowledge base. OCR text may contain errors: the changes it produced are marked OCR, so check them against the codebook. Elsewhere scanned pages are skipped and listed. PDFs whose fonts use custom encodings cannot be read: export the codebook as DOCX or TXT instead.
- A built-in reader handles the common layouts without a model: a table with Variable / Label / Values / Missing / Level columns, or “name: label” lines followed by code lines such as “1 = Male”.
- With Also let the model read it the codebook text (not your data) is sent to the model, with e-mail addresses and phone numbers masked. Only variables that exist in the dataset are accepted.
How to read the output
Section titled “How to read the output”The table lists one row per change: the variable, the field, the current value and the proposal, and whether it came from the built-in reader or the model. Problems (for example a text code for a numeric variable, or more than three discrete missing values) and codebook variables that are not in the dataset are listed above it. Untick what you do not want, then Prepare syntax creates one approval card.
Reporting (APA)
Section titled “Reporting (APA)”Nothing to report: metadata changes do not alter any statistic, but labelled output makes tables easier to read. Keep the codebook with your data archive.
Syntax: VARIABLE LABELS gender 'Respondent gender'. VALUE LABELS gender 1 'Male' 2 'Female'. MISSING VALUES income (998, 999). VARIABLE LEVEL gender (NOMINAL).
This page comes from OrcStat’s built-in help (the same text as in the app’s Help panel). To suggest a change, open an issue.