Examples (CODEBOOK command)

CODEBOOK with No Additional Specifications

CODEBOOK.

The default output includes:

  • Variable information for all variables in the dataset, except for reserved system attributes.
  • Counts and percents for all categories of nominal and ordinal variables, labeled categories of scale variables, and multiple response sets.
  • Mean, standard deviation, and quartiles for scale variables.

Specifying Specific Variables, Variable Information, and Statistics

CODEBOOK Var1 Var3 [N] $Multvar
  /VARINFO LABEL MEASURE VALUELABELS MISSING
  /STATISTICS COUNT MEAN 
  /OPTIONS MAXCATS=10.
  • The results will only include information for the two specified variables and the one multiple response set.
  • Var3 [N] indicates that Var3 should be treated as nominal for summary statistics. This has no effect on the defined measurement level for the variable or the measurement level displayed in the results.
  • Dictionary information will be limited to variable label, measurement level, value labels, and missing values.
  • Only counts will be included for nominal/ordinal variables, multiple response sets and labeled categories of scale variables.
  • Only the mean will be included for scale variables.
  • For nominal/ordinal variables, multiple response sets, and labeled values of scale variables, MAXCATS=10 will suppress the display of value labels and counts if there are more than 10 unique, valid values.