|
Chapter Contents |
Previous |
Next |
| The CORRESP Procedure |
The PROC CORRESP statement invokes the procedure. You can specify the following options in the PROC CORRESP statement. These options are described following Table 22.1.
Table 22.1: Summary of PROC CORRESP Statement Options
| Task | Options | ||
| Specify data sets | |||
| specify input SAS data set | DATA= | ||
| specify output coordinate SAS data set | OUTC= | ||
| specify output frequency SAS data set | OUTF= | ||
| Compute row and column coordinates | |||
| specify the number of dimensions or axes | DIMENS= | ||
| perform multiple correspondence analysis | MCA | ||
| standardize the row and column coordinates | PROFILE= | ||
| Construct tables | |||
| specify binary table | BINARY | ||
| specify cross levels of TABLES variables | CROSS= | ||
| specify input data in PROC FREQ output | FREQOUT | ||
| include observations with missing values | MISSING | ||
| Display output | |||
| display all output | ALL | ||
| display cell contributions to chi-square | CELLCHI2 | ||
| display column profile matrix | CP | ||
| display observed minus expected values | DEVIATION | ||
| display chi-square expected values | EXPECTED | ||
| suppress the display of column coordinates | NOCOLUMN= | ||
| suppress the display of all output | NOPRINT | ||
| suppress the display of row coordinates | NOROW= | ||
| display contingency table of observed frequencies | OBSERVED | ||
| display percentages or frequencies | PRINT= | ||
| display row profile matrix | RP | ||
| suppress all point and coordinate statistics | SHORT | ||
| Other tasks | |||
| specify rarely used column coordinate standardizations | COLUMN= | ||
| specify minimum inertia | MININERTIA= | ||
| specify number of classification variables | NVARS= | ||
| specify rarely used row coordinate standardizations | ROW= | ||
| specify effective zero | SINGULAR= | ||
| include level source in the OUTC= data set | SOURCE | ||
The display options control the amount of displayed output. The CELLCHI2, EXPECTED, and DEVIATION options display additional chi-square information. See the "Details" section for more information. The unit of the matrices displayed by the CELLCHI2, CP, DEVIATION, EXPECTED, OBSERVED, and RP options depends on the value of the PRINT= option. The table construction options control the construction of the contingency table; these options are valid only when you also specify a TABLES statement.
You can specify the following options in the PROC CORRESP statement. They are described in alphabetical order.
The "TABLES Statement" section provides a more detailed description of this option.
When you specify the FREQOUT option, you must also specify a WEIGHT statement. The cell frequencies in a PROC FREQ output data set are contained in a variable called COUNT, so specify COUNT in a WEIGHT statement with PROC CORRESP. The FREQOUT option may produce unexpected results if the DATA= data set is structured incorrectly. Each of the two variable lists specified in the TABLES statement must consist of a single variable, and observations must be grouped by the levels of the row variable and then by the levels of the column variable. It is not required that the observations be sorted by the row variable and column variable, but they must be grouped consistently. There must be as many observations in the input data set (or BY group) as there are cells in the completed contingency table. Zero cells must be specified with zero weights. When you use PROC FREQ to create the PROC CORRESP input data set, you must specify the SPARSE option in the FREQ procedure's TABLES statement so that the zero cells are written to the output data set.
The NOROW option can be useful when the rows of the contingency table are replications.
tables a b c;
you must specify NVARS=3 to read the table with a VAR statement.
The NVARS= option is required when you specify both the MCA option and a VAR statement. (See the section "VAR Statement" for an example.)
|
Chapter Contents |
Previous |
Next |
Top |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.