PROC FREQ assigns a name to each table that it creates. You can use these names to refer to tables when you use the Output Delivery System (ODS) to select tables and create output data sets. For more information about ODS, see Chapter 20: Using the Output Delivery System in SAS/STAT 14.1 User's Guide.
Table 3.22 lists the ODS table names together with their descriptions and the options required to produce the tables. Note that the ALL option in the TABLES statement invokes the CHISQ, MEASURES, and CMH options.
Table 3.22: ODS Tables Produced by PROC FREQ
ODS Table Name |
Description |
Statement |
Option |
---|---|---|---|
BarnardsTest |
Barnard’s exact test |
EXACT |
BARNARD |
BinomialCLs |
Binomial confidence limits |
TABLES |
BINOMIAL(CL=) |
BinomialEquiv |
Binomial equivalence analysis |
TABLES |
BINOMIAL(EQUIV) |
BinomialEquivLimits |
Binomial equivalence limits |
TABLES |
BINOMIAL(EQUIV) |
BinomialEquivTest |
Binomial equivalence test |
TABLES |
BINOMIAL(EQUIV) |
BinomialNoninf |
Binomial noninferiority test |
TABLES |
BINOMIAL(NONINF) |
Binomial |
Binomial proportion |
TABLES |
BINOMIAL |
BinomialTest |
Binomial proportion test |
TABLES |
BINOMIAL |
BinomialSup |
Binomial superiority test |
TABLES |
BINOMIAL(SUP) |
BnMeasure |
Agreement measures |
TABLES |
PLOTS=AGREEPLOT(STATS) |
BreslowDayTest |
Breslow-Day test |
TABLES |
CMH ( table) |
CMH |
Cochran-Mantel-Haenszel |
TABLES |
CMH |
statistics |
|||
ChiSq |
Chi-square tests |
TABLES |
CHISQ |
CochransQ |
Cochran’s Q |
TABLES |
AGREE ( table) |
ColScores |
Column scores |
TABLES |
SCOROUT |
CommonOddsRatioCl |
Exact confidence limits |
EXACT |
COMOR |
for the common odds ratio |
( table) |
||
CommonOddsRatioTest |
Common odds ratio exact test |
EXACT |
COMOR |
( table) |
|||
CommonPdiff |
Common proportion difference |
TABLES |
RISKDIFF(COMMON) |
( table) |
|||
CommonRelRisks |
Common relative risks |
TABLES |
CMH ( table) |
CrossList |
Crosstabulation table |
TABLES |
CROSSLIST |
in column format |
(n-way table, n > 1) |
||
CrossTabFreqs |
Crosstabulation table |
TABLES |
(n-way table, n > 1) |
EqualKappaTest |
Test for equal simple kappas |
TABLES |
AGREE |
( table) |
|||
EqualKappaTests |
Tests for equal kappas |
TABLES |
AGREE |
( table, r > 2) |
|||
EqualOddsRatios |
Tests for equal odds ratios |
EXACT |
EQOR |
( table) |
|||
GailSimon |
Gail-Simon test |
TABLES |
GAILSIMON |
( table) |
|||
FishersExact |
Fisher’s exact test |
EXACT |
FISHER |
or TABLES |
FISHER or EXACT |
||
or TABLES |
CHISQ ( table) |
||
FishersExactMC |
Monte Carlo estimates |
EXACT |
FISHER / MC |
for Fisher’s exact test |
|||
Gamma |
Gamma |
TEST |
GAMMA |
GammaTest |
Gamma test |
TEST |
GAMMA |
JTTest |
Jonckheere-Terpstra test |
TABLES |
JT |
JTTestMC |
Monte Carlo estimates for |
EXACT |
JT / MC |
Jonckheere-Terpstra exact test |
|||
Kappa |
Simple kappa coefficient |
TEST |
KAPPA |
or EXACT |
KAPPA |
||
KappaMC |
Monte Carlo exact test for |
EXACT |
KAPPA / MC |
simple kappa coefficient |
|||
KappaStatistics |
Kappa statistics |
TABLES |
AGREE, |
no TEST or EXACT |
|||
( table, r > 2) |
|||
KappaTest |
Simple kappa test |
TEST |
KAPPA |
or EXACT |
KAPPA |
||
KappaWeights |
Kappa weights |
TABLES |
AGREE(PRINTKWTS) |
List |
List format multiway table |
TABLES |
LIST |
LRChiSq |
Likelihood ratio chi-square |
EXACT |
LRCHI |
exact test |
|||
LRChiSqMC |
Monte Carlo exact test for |
EXACT |
LRCHI / MC |
likelihood ratio chi-square |
|||
MantelFleiss |
Mantel-Fleiss criterion |
TABLES |
CMH(MANTELFLEISS) |
( table) |
|||
McNemarsTest |
McNemar’s test |
TABLES |
AGREE ( table) |
Measures |
Measures of association |
TABLES |
MEASURES |
MHChiSq |
Mantel-Haenszel chi-square |
EXACT |
MHCHI |
exact test |
|||
MHChiSqMC |
Monte Carlo exact test for |
EXACT |
MHCHI / MC |
Mantel-Haenszel chi-square |
|||
NLevels |
Number of variable levels |
PROC |
NLEVELS |
OddsRatioCLs |
Odds ratio confidence limits |
TABLES |
OR(CL=) ( table) |
OddsRatioExactCL |
Exact confidence limits |
EXACT |
OR ( table) |
for the odds ratio |
|||
OneWayChiSq |
One-way chi-square test |
TABLES |
CHISQ |
(one-way table) |
|||
OneWayChiSqMC |
Monte Carlo exact test for |
EXACT |
CHISQ / MC |
one-way chi-square |
(one-way table) |
||
OneWayFreqs |
One-way frequencies |
PROC |
(no TABLES stmt) |
or TABLES |
(one-way table) |
||
OneWayLRChiSq |
One-way likelihood ratio |
TABLES |
CHISQ(LRCHI) |
chi-square test |
(one-way table) |
||
OverallKappa |
Overall simple kappa |
TABLES |
AGREE |
( table) |
|||
OverallKappas |
Overall kappa coefficients |
TABLES |
AGREE |
( table, r > 2) |
|||
PdiffCLs |
Proportion difference |
TABLES |
RISKDIFF(CL=) |
confidence limits |
( table) |
||
PdiffEquiv |
Equivalence analysis |
TABLES |
RISKDIFF(EQUIV) |
for the proportion difference |
( table) |
||
PdiffEquivTest |
Equivalence test |
TABLES |
RISKDIFF(EQUIV) |
for the proportion difference |
( table) |
||
PdiffNoninf |
Noninferiority test |
TABLES |
RISKDIFF(NONINF) |
for the proportion difference |
( table) |
||
PdiffSup |
Superiority test |
TABLES |
RISKDIFF(SUP) |
for the proportion difference |
( table) |
||
PdiffTest |
Proportion difference test |
TABLES |
RISKDIFF(EQUAL) |
( table) |
|||
PearsonChiSq |
Pearson chi-square exact test |
EXACT |
PCHI |
PearsonChiSqMC |
Monte Carlo exact test for |
EXACT |
PCHI / MC |
Pearson chi-square |
|||
PearsonCorr |
Pearson correlation |
TEST |
PCORR |
or EXACT |
PCORR |
||
PearsonCorrMC |
Monte Carlo exact test for |
EXACT |
PCORR / MC |
Pearson correlation |
|||
PearsonCorrTest |
Pearson correlation test |
TEST |
PCORR |
or EXACT |
PCORR |
||
PlCorr |
Polychoric correlation |
TEST |
PLCORR |
PlCorrTest |
Polychoric correlation test |
TEST |
PLCORR |
RelativeRiskCLs |
Relative risk confidence limits |
TABLES |
RELRISK(CL=) |
( table ) |
|||
RelativeRisks |
Relative risk estimates |
TABLES |
RELRISK or MEASURES |
( table) |
|||
RelRisk1ExactCL |
Exact confidence limits |
EXACT |
RELRISK |
for column 1 relative risk |
( table) |
||
RelRisk2ExactCL |
Exact confidence limits |
EXACT |
RELRISK |
for column 2 relative risk |
( table) |
||
RelriskEquiv |
Equivalence analysis |
TABLES |
RELRISK(EQUIV) |
for the relative risk |
( table) |
||
RelriskEquivTest |
Equivalence test |
TABLES |
RELRISK(EQUIV) |
for the relative risk |
( table) |
||
RelriskNoninf |
Noninferiority test |
TABLES |
RELRISK(NONINF) |
for the relative risk |
( table) |
||
RelriskSup |
Superiority test |
TABLES |
RELRISK(SUP) |
for the relative risk |
( table) |
||
RelriskTest |
Relative risk test |
TABLES |
RELRISK(EQUAL) |
( table) |
|||
RiskDiffCol1 |
Column 1 risk estimates |
TABLES |
RISKDIFF ( table) |
RiskDiffCol2 |
Column 2 risk estimates |
TABLES |
RISKDIFF ( table) |
RowScores |
Row scores |
TABLES |
SCOROUT |
SomersDCR |
Somers’ |
TEST |
SMDCR |
or EXACT |
SMDCR |
||
SomersDCRMC |
Monte Carlo exact test for |
EXACT |
SMDCR / MC |
Somers’ |
|||
SomersDCRTest |
Somers’ test |
TEST |
SMDCR |
or EXACT |
SMDCR |
||
SomersDRC |
Somers’ |
TEST |
SMDRC |
or EXACT |
SMDRC |
||
SomersDRCMC |
Monte Carlo exact test for |
EXACT |
SMDRC / MC |
Somers’ |
|||
SomersDRCTest |
Somers’ test |
TEST |
SMDRC |
or EXACT |
SMDRC |
||
SpearmanCorr |
Spearman correlation |
TEST |
SCORR |
or EXACT |
SCORR |
||
SpearmanCorrMC |
Monte Carlo exact test for |
EXACT |
SCORR / MC |
Spearman correlation |
|||
SpearmanCorrTest |
Spearman correlation test |
TEST |
SCORR |
or EXACT |
SCORR |
||
SymmetryTest |
Test of symmetry |
TABLES |
AGREE |
TauB |
Kendall’s tau-b |
TEST |
KENTB |
or EXACT |
KENTB |
||
TauBMC |
Monte Carlo exact test for |
EXACT |
KENTB / MC |
Kendall’s tau-b |
|||
TauBTest |
Kendall’s tau-b test |
TEST |
KENTB |
or EXACT |
KENTB |
||
TauC |
Stuart’s tau-c |
TEST |
STUTC |
or EXACT |
STUTC |
||
TauCMC |
Monte Carlo exact test for |
EXACT |
STUTC / MC |
Stuart’s tau-c |
|||
TauCTest |
Stuart’s tau-c test |
TEST |
STUTC |
or EXACT |
STUTC |
||
TrendTest |
Cochran-Armitage trend test |
TABLES |
TREND |
TrendTestMC |
Monte Carlo exact test |
EXACT |
TREND / MC |
for trend |
|||
WtKappa |
Weighted kappa coefficient |
TEST |
WTKAP |
or EXACT |
WTKAP |
||
WtKappaMC |
Monte Carlo exact test for |
EXACT |
WTKAP / MC |
weighted kappa coefficient |
|||
WtKappaTest |
Weighted kappa test |
TEST |
WTKAP |
or EXACT |
WTKAP |
The ALL option in the TABLES statement invokes CHISQ, MEASURES, and CMH.