SAS Macro Programs for Statistical Graphics: CORRESP
$Version: 1.9 (2 Nov 2001)
Michael Friendly
York University
This version of the CORRESP macro is now obsolete.
See the CORRESP macro in Visualizing Categorical Data
CORRESP performs correspondence analysis on a table of frequencies
in a two-way (or higher-way) classification. The VAR= variables
list specify one of the classification variables. The observations
in the input data set form the other classification variable(s).
The coordinates of the row and column points are output to the
data set specified by the OUT= parameter. The labels for the
points are output to the data set specified by the ANNO= parameter.
See "Section 10.3.2" for details about
plotting the results and equating axes.
Parameters
- DATA=_LAST_
- Name of the input data set
- VAR=
- Column variables
- ID=
- ID variable: row labels
- OUT=COORD
- Output data set for coordinates
- ANNO=LABEL
- Name of the Annotate data set for row and
column labels
- ROWHT=1
- Height (in character cells) for the row
labels
- COLHT=1
- Height (in character cells) for the column
labels
The OUT= data set
The results from the analysis are saved in the OUT= data set. This
data set contains two character variables (_TYPE_ and _NAME_) which
identify the observations and two numeric variables (DIM1 and DIM2)
which give the locations of each point in two dimensions.
The value of the _TYPE_ variable is 'OBS' for the observations
that contain the coordinates for the rows of the table, and is
'VAR' for the observations that contain the coordinates for the
columns. The _NAME_ variable contains the value of ID= variable
for the row observations and the variable name for the column
observations in the output data set.