Skip to content

Coding open-ended answers

Builds a codeframe of themes from open-ended responses, codes every answer with the model, sends uncertain codings to a review queue, measures AI–human agreement and creates one 0/1 variable per theme. Open it from AI › Tools › Code text.

For “Any other comments?” style questions with tens to thousands of answers, when you want theme frequencies, crosstabs of themes by group, or sentiment.

  • The model reads the answers, so this needs exposure level 3 and the variable on the full-column-access list (AI › Privacy). Columns flagged as personal data are refused, and e-mail addresses, phone numbers and ids inside answers are masked first.
  • Identical answers (ignoring case and spacing) are coded once. Coding runs in batches that are saved as they finish: Stop keeps the finished batches and Resume coding continues.
  • Codings with low confidence, codes outside the codeframe, answers with no code, and a 10 % quality sample go to the review queue. Your decisions always override the model’s.

The codeframe lists each theme with the number of cases that mention it. After review, the agreement line shows Cohen’s κ between the model and you, per theme (averaged) and for sentiment; κ above .80 is usually considered strong agreement, .60–.80 substantial. Exact match is the share of reviewed answers whose full set of codes agreed.

Report the coding procedure and its reliability, for example: “Responses were coded into seven themes with AI assistance (OrcStat, model llama3.1:8b); a human coder reviewed 64 responses, and agreement was κ = .84.” Analyse the theme variables like any multiple-response set.

Syntax: the theme variables are created with RECODE comment ('Too slow'=1) … (ELSE=0) INTO comment_c2. and grouped with MRSETS /MDGROUP NAME=$comment_themes … VALUE=1.


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.