-
AGREE
-
requests McNemar’s exact test, an exact test for the simple kappa coefficient, and an exact test for the weighted kappa coefficient. For more information, see the sections Tests and Measures of Agreement and Exact Statistics.
For McNemar’s test, you can specify the null hypothesis ratio of discordant proportions by using the AGREE(MNULLRATIO=) option in the TABLES statement; by default, MNULLRATIO=1. For the weighted kappa coefficient, you can request Fleiss-Cohen weights by specifying the AGREE(WT=FC) option in the TABLES statement; by default, PROC FREQ computes the weighted kappa coefficient by using Cicchetti-Allison agreement weights.
McNemar’s test is available for
tables. Kappa coefficients are defined only for square two-way tables, where the number of rows equals the number of columns. If your table is not square because some observations have weights of 0, you can specify the ZEROS option in the WEIGHT statement to include these observations in the analysis. For more information, see the section Tables with Zero-Weight Rows or Columns.
For
tables, the weighted kappa coefficient is equivalent to the simple kappa coefficient, and PROC FREQ displays only analyses for the simple kappa coefficient.
-
BARNARD
-
requests Barnard’s exact unconditional test for the risk (proportion) difference for
tables. For more information, see the section Barnard’s Unconditional Exact Test.
To request exact unconditional confidence limits for the risk difference. you can specify the RISKDIFF option in the EXACT statement. The RISKDIFF option in the TABLES statement provides asymptotic tests and several types of confidence limits for the risk difference. For more information, see the section Risks and Risk Differences.
-
BINOMIAL
BIN
-
requests an exact test for the binomial proportion (for one-way tables). For more information, see the section Binomial Tests. You can specify the null hypothesis proportion by using the BINOMIAL(P=) option in the TABLES statement; by default, P=0.5.
The BINOMIAL option in the TABLES statement provides exact (Clopper-Pearson) confidence limits for the binomial proportion by default. You can specify the BINOMIAL(CL=MIDP) option in the TABLES statement to request exact mid-p confidence limits for the binomial proportion. The BINOMIAL option in the TABLES statement also provides asymptotic (Wald) tests and several other confidence limit types for the binomial proportion. For more information, see the section Binomial Proportion.
-
CHISQ
-
requests the following exact chi-square tests for two-way tables: Pearson chi-square, likelihood ratio chi-square, and Mantel-Haenszel chi-square. For more information, see the section Chi-Square Tests and Statistics. The CHISQ option in the TABLES statement provides asymptotic tests for these statistics.
For one-way tables, the CHISQ option requests an exact chi-square goodness-of-fit test. You can specify null hypothesis proportions for this test by using the CHISQ(TESTP=) option in the TABLES statement. By default, the one-way chi-square test is based on the null hypothesis of equal proportions. For more information, see the section Chi-Square Test for One-Way Tables.
-
COMOR
requests an exact test and exact confidence limits for the common odds ratio for multiway
tables. For more information, see the section Exact Confidence Limits for the Common Odds Ratio. The CMH option in the TABLES statement provides Mantel-Haenszel and logit estimates of the common odds ratio along with their asymptotic confidence limits.
-
EQOR
ZELEN
requests Zelen’s exact test for equal odds ratios for multiway
tables. For more information, see the section Zelen’s Exact Test for Equal Odds Ratios. The CMH option in the TABLES statement provides an (asymptotic) Breslow-Day test for homogeneity of odds ratios.
-
FISHER
requests Fisher’s exact test. For more information, see the sections Fisher’s Exact Test and Exact Statistics. For
tables, the CHISQ option in the TABLES statement provides Fisher’s exact test. For general
tables, Fisher’s exact test is also known as the Freeman-Halton test.
-
JT
requests an exact Jonckheere-Terpstra test. For more information, see the sections Jonckheere-Terpstra Test and Exact Statistics. The JT option in the TABLES statement provides an asymptotic Jonckheere-Terpstra test.
-
KAPPA
-
requests an exact test for the simple kappa coefficient. For more information, see the sections Simple Kappa Coefficient and Exact Statistics. The AGREE option in the TABLES statement provides the simple kappa estimate, standard error, and confidence limits. The KAPPA option in the TEST statement provides an asymptotic test for the simple kappa coefficient.
Kappa coefficients are defined only for square two-way tables, where the number of rows equals the number of columns. If your table is not square because some observations have weights of 0, you can specify the ZEROS option in the WEIGHT statement to include these observations in the analysis. For more information, see the section Tables with Zero-Weight Rows or Columns.
-
KENTB
TAUB
requests an exact test for Kendall’s tau-b. For more information, see the sections Kendall’s Tau-b and Exact Statistics. The MEASURES option in the TABLES statement provides an estimate and standard error of Kendall’s tau-b. The KENTB option in the TEST statement provides an asymptotic test for Kendall’s tau-b.
-
LRCHI
-
requests an exact test for the likelihood ratio chi-square for two-way tables. For more information, see the sections Likelihood Ratio Chi-Square Test and Exact Statistics. The CHISQ option in the TABLES statement provides an asymptotic likelihood ratio chi-square test for two-way tables.
For one-way tables, the LRCHI option requests an exact likelihood ratio goodness-of-fit test. You can specify null hypothesis proportions by using the CHISQ(TESTP=) option in the TABLES statement. By default, the one-way test is based on the null hypothesis of equal proportions. For more information, see the section Likelihood Ratio Chi-Square Test for One-Way Tables.
-
MCNEM
requests an exact McNemar’s test. For more information, see the sections McNemar’s Test and Exact Statistics. You can specify the null hypothesis ratio of discordant proportions by using the AGREE(MNULLRATIO=) option in the TABLES statement; by default, MNULLRATIO=1. The AGREE option in the TABLES statement provides an asymptotic McNemar’s test.
-
MEASURES
-
requests exact tests for the Pearson and Spearman correlations. For more information, see the sections Pearson Correlation Coefficient, Spearman Rank Correlation Coefficient, and Exact Statistics. The PCORR and SCORR options in the TEST statement provide asymptotic tests for the Pearson and Spearman correlations, respectively.
The MEASURES option also requests exact confidence limits for the odds ratio for
tables. For more information, see the subsection Exact Confidence Limits in the section Confidence Limits for the Odds Ratio. You can also request exact confidence limits for the odds ratio by specifying the OR option in the EXACT statement.
-
MHCHI
requests an exact test for the Mantel-Haenszel chi-square. For more information, see the sections Mantel-Haenszel Chi-Square Test and Exact Statistics. The CHISQ option in the TABLES statement provides an asymptotic Mantel-Haenszel chi-square test.
-
OR
ODDSRATIO
-
requests exact confidence limits for the odds ratio for
tables. For more information, see the subsection "Exact Confidence Limits" in the section Confidence Limits for the Odds Ratio.
You can request exact mid-p confidence limits for the odds ratio by specifying the OR(CL=MIDP) option in the TABLES statement. The OR(CL=) option in the TABLES statement also provides other types of confidence limits for the odds ratio. For more information, see the section Confidence Limits for the Odds Ratio.
The ALPHA= option in the TABLES statement determines the confidence level of the exact confidence limits; by default, ALPHA=0.05, which produces 95% confidence limits for the odds ratio.
-
PCHI
-
requests an exact test for the Pearson chi-square for two-way tables. For more information, see the sections Pearson Chi-Square Test for Two-Way Tables and Exact Statistics. The CHISQ option in the TABLES statement provides an asymptotic Pearson chi-square test.
For one-way tables, the PCHI option requests an exact chi-square goodness-of-fit test. You can specify null hypothesis proportions by using the CHISQ(TESTP=) option in the TABLES statement. By default, the goodness-of-fit test is based on the null hypothesis of equal proportions. For more information, see the section Chi-Square Test for One-Way Tables.
-
PCORR
requests an exact test for the Pearson correlation coefficient. For more information, see the sections Pearson Correlation Coefficient and Exact Statistics. The MEASURES option in the TABLES statement provides the estimate and standard error of the Pearson correlation. The PCORR option in the TEST statement provides an asymptotic test for the Pearson correlation.
-
RELRISK <(options)>
-
requests exact unconditional confidence limits for the relative risk for
tables. By default, the exact confidence limits are computed by inverting two separate one-sided exact tests that are based on the score statistic (Chan and Zhang 1999). For more information, see the subsection "Exact Unconditional Confidence Limits" in the section Confidence Limits for the Relative Risk.
The RELRISK(CL=) option in the TABLES statement provides additional types of confidence limits for the relative risk. For more information, see the section Confidence Limits for the Risk Difference.
The ALPHA= option in the TABLES statement determines the confidence level; by default, ALPHA=0.05, which produces 95% confidence limits for the relative risk.
You can specify the following options:
-
COLUMN=1 | 2 | BOTH
specifies the table column of the relative risk. By default, COLUMN=1, which provides exact confidence limits for the column 1 relative risk. COLUMN=BOTH provides exact confidence limits for both column 1 and column 2 relative risks.
-
METHOD=NOSCORE | SCORE | SCORE2
-
specifies the computation method for the exact confidence limits. By default, METHOD=SCORE.
You can specify one of the following methods:
-
RISKDIFF <(options)>
-
requests exact unconditional confidence limits for the risk difference for
tables. By default, the exact confidence limits are computed by inverting two separate one-sided exact tests that are based on the score statistic (Chan and Zhang 1999). For more information, see the subsection "Exact Unconditional Confidence Limits" in the section Confidence Limits for the Risk Difference.
The RISKDIFF(CL=) option in the TABLES statement provides additional types of confidence limits for the risk difference. For more information, see the section Confidence Limits for the Risk Difference.
The ALPHA= option in the TABLES statement determines the confidence level; by default, ALPHA=0.05, which produces 95% confidence limits for the risk difference.
You can specify the following options:
-
COLUMN=1 | 2 | BOTH
specifies the table column of the risk difference. By default, COLUMN=BOTH and the exact confidence limits are displayed in the 'Risk Estimates' tables. If you specify the RISKDIFF(NORISKS) option in the TABLES statement to suppress the 'Risk Estimates' tables, by default, COLUMN=1 and the exact confidence limits are displayed in the 'Risk Difference Confidence Limits' table.
-
METHOD=NOSCORE | SCORE | SCORE2
-
specifies the computation method for the exact confidence limits. By default, METHOD=SCORE.
You can specify one of the following methods:
-
SCORR
requests an exact test for the Spearman correlation coefficient. For more information, see the sections Spearman Rank Correlation Coefficient and Exact Statistics. The MEASURES option in the TABLES statement provides the estimate and standard error of the Spearman correlation. The SCORR option in the TEST statement provides an asymptotic test for the Spearman correlation.
-
SMDCR
requests an exact test for Somers’
. For more information, see the sections Somers’ D and Exact Statistics. The MEASURES option in the TABLES statement provides the estimate and standard error of Somers’
. The SMDCR option in the TEST statement provides an asymptotic test for Somers’
.
-
SMDRC
requests an exact test for Somers’
. For more information, see the sections Somers’ D and Exact Statistics. The MEASURES option in the TABLES statement provides the estimate and standard error of Somers’
. The SMDRC option in the TEST statement provides an asymptotic test for Somers’
.
-
STUTC
TAUC
requests an exact test for Stuart’s tau-c. For more information, see the sections Stuart’s Tau-c and Exact Statistics. The MEASURES option in the TABLES statement provides the estimate and standard error of Stuart’s tau-c. The STUTC option in the TEST statement provides an asymptotic test for Stuart’s tau-c.
-
SYMMETRY
BOWKER
requests an exact symmetry test. This test is available for square
two-way tables where the table dimension R is greater than 2. For more information, see the section Exact Symmetry Test. The AGREE option in the TABLES statement provides an asymptotic symmetry test.
-
TREND
requests the exact Cochran-Armitage test for trend. For more information, see the sections Cochran-Armitage Test for Trend and Exact Statistics. The TREND option in the TABLES statement provides an asymptotic Cochran-Armitage test for trend. This test is available for tables of dimensions
or
.
-
WTKAPPA
WTKAP
-
requests an exact test for the weighted kappa coefficient. For more information, see the sections Weighted Kappa Coefficient and Exact Statistics. By default, PROC FREQ computes the weighted kappa coefficient by using Cicchetti-Allison agreement weights. You can request Fleiss-Cohen agreement weights by specifying the AGREE(WT=FC) option in the TABLES statement.
Kappa coefficients are defined only for square two-way tables, where the number of rows equals the number of columns. If your table is not square because some observations have weights of 0, you can specify the ZEROS option in the WEIGHT statement to include these observations in the analysis. For more information, see the section Tables with Zero-Weight Rows or Columns.
For
tables, the weighted kappa coefficient is equivalent to the simple kappa coefficient, and PROC FREQ displays only analyses for the simple kappa coefficient.