Skip to content

Data Cleaning Assistant

Finds common data problems and proposes a fix for each one as syntax you can run, edit or dismiss. Open it from AI › Tools › Clean data.

Right after importing data, before any analysis: to catch repeated cases, duplicate ids, impossible values (an age of 150, a percentage above 100), codes without a value label, undeclared missing-value codes such as 99 or -9, text categories spelled several ways (“Lahore”, “lahore “, “LAHORE”), numbers stored as text, extreme outliers, constant and mostly empty variables.

  • Scan runs entirely in OrcStat and needs no model. The rules are heuristics: a value flagged as impossible or as a missing-value code may be legitimate in your study, so read each proposal before running it.
  • Plan with AI sends issue summaries (kinds, variables, counts) to the model and needs exposure level 1. Example values are sent only at level 2, and never for columns flagged as personal data.
  • Outliers and duplicate ids are only ever offered for review: nothing is changed automatically.

Each issue shows its severity, the number of affected values and a few examples. Fix turns the proposed syntax into an approval card; Review opens a read-only analysis instead. The AI plan adds a short summary with a badge: numbers verified means every count it mentions matches the scan; check numbers lists the ones that do not. Cards whose syntax fails the syntax check are marked invalid and cannot be run.

Describe the cleaning in your Method section, for example: “Two cases with impossible ages were set to missing, the code 999 was declared missing for income, and spelling variants of city were merged.” The syntax journal records every change for your appendix.

Syntax: the fixes use ordinary commands, for example IF (age < 0 OR age > 120) age = $SYSMIS., MISSING VALUES income (999)., RECODE city ('lahore '='Lahore'). and EDIT CASES DELETE CASES=3 17.


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.