VALIDATEDATA
Screens variables, checks case identifiers and applies single- and cross-variable validation rules, optionally saving violation indicators.
Syntax
Section titled “Syntax”VALIDATEDATA [VARIABLES=varlist] [ID=varlist] [/VARCHECKS PCTMISSING=70 PCTEQUAL=95 PCTUNEQUAL=90 CV=0.001 STDDEV=0] [/IDCHECKS INCOMPLETE DUPLICATE] [/CASECHECKS REPORTEMPTY=YES|NO] [/RULE NAME='label' VARIABLES=varlist TYPE=RANGE|LIST|INTEGER|NOTMISSING MIN=n MAX=n VALUES=(v …) | LIBRARY=name ALLOWMISSING=YES|NO] [/CROSSRULE NAME='label' INVALID='expression'] [/CASEREPORT MINVIOLATIONS=1 CASELIMIT=100] [/SAVE EMPTYCASE INCOMPLETEID DUPLICATEID RULEVIOLATIONS INDICATORS].Synopsis
Section titled “Synopsis”| Kind | Procedure (reads data, produces output) |
| Body | main /SUBCOMMAND[=] … |
| Changes data | yes, undoable |
| Subcommands | /CASECHECKS, /CASEREPORT, /CROSSRULE, /IDCHECKS, /RULE, /RULESUMMARIES, /SAVE, /VARCHECKS |
| Menu | Analyze ▸ Data Preparation |
| Slot: Analysis Variables | 0+ variable(s); levels: nominal, ordinal, scale; types: numeric, string |
| Slot: Case Identifier Variables | 0+ variable(s); levels: nominal, ordinal, scale; types: numeric, string |
Specifications
Section titled “Specifications”- VARCHECKS: thresholds for the basic screens: percent missing, percent in the largest category, percent of single-case categories, minimum |CV| and minimum SD
- RULE: a single-variable rule (repeatable). Library rules: DICHOTOMY01, NONNEGINT, NONNEG, POSINT, LIKERT5, LIKERT7, PERCENT, PROBABILITY, NOTMISSING
- CROSSRULE: an expression that is true (1) for an invalid case (repeatable)
- SAVE: indicator variables: empty cases, incomplete or duplicate IDs, the number of violations, one per rule
Examples
Section titled “Examples”VALIDATEDATA VARIABLES=age sex ID=id /RULE NAME='Adult' VARIABLES=age TYPE=RANGE MIN=18 MAX=99 /CROSSRULE NAME='Pregnant male' INVALID='sex = 1 AND pregnant = 1' /SAVE RULEVIOLATIONS.- Missing values break a rule only with ALLOWMISSING=NO or TYPE=NOTMISSING.
- Rules are written in the command itself; there is no separate rules dictionary.
Related
Section titled “Related”DETECTANOMALY, IDENTIFY DUPLICATES, COMPARE DATASETS
Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.