If you specify the COMMONRISKDIFF option in the TABLES statement, PROC FREQ provides estimates, confidence limits, and tests for the common (overall) risk difference for multiway tables.
PROC FREQ computes the Mantel-Haenszel estimate, confidence limits, and test for the common risk difference by using Mantel-Haenszel stratum weights (Mantel and Haenszel 1959) and the Sato variance estimator (Sato 1989). The Mantel-Haenszel estimate of the common risk difference is
where is the risk difference in stratum h and
is the Mantel-Haenszel weight of stratum h. The column 1 risk difference in stratum ( table) h is computed as
where is the proportion of row 1 observations that are classified in column 1 and
is the proportion or row 2 observations that are classified in column 1. The column 2 risk is computed in the same way. For more information, see Agresti (2013, p. 231).
PROC FREQ computes the variance of (Sato 1989) as
where
The % confidence limits for the common risk difference are
If you specify the COMMONRISKDIFF(TEST=MH) option, PROC FREQ provides a Mantel-Haenszel test of the null hypothesis that the common risk difference is 0, which is computed as . The two-sided p-value is
, where Z has a standard normal distribution.
Klingenberg confidence limits (Klingenberg 2014) for the Mantel-Haenszel common risk difference are based on inverting a test of homogeneity that uses the null form of the Sato variance estimator (Sato 1989). For performance evaluation of Klingenberg confidence limits, see Fisher (2015) and Klingenberg (2014).
The % Klingenberg confidence limits for the common risk difference are
where M (margin of error) is computed as
and the confidence interval midpoint is computed as
The values P, Q, and W are computed as
where h denotes the stratum, and and
are defined in the section Mantel-Haenszel Confidence Limits and Test.
PROC FREQ computes the minimum risk estimate, confidence limits, and test for the common risk difference by using the method of Mehrotra and Railkar (2000). The stratum estimates are weighted by minimum risk weights, which minimize the mean square error of the estimate of the common risk difference. Minimum risk weights are designed to improve precision and reduce bias (compared to other weighting strategies) and can minimize the power loss that can occur when underlying assumptions are not met. For more information, see Mehrotra (2001) and Dmitrienko et al. (2005, section 1.3.3).
The minimum risk estimate of the common risk difference is
where is the risk difference in stratum h and
is the minimum risk weight of stratum h (which is described in the section Minimum Risk Weights). The variance of
is estimated by
where (the variance estimate of the stratum h risk difference) is computed as
The % minimum risk confidence limits for the common risk difference are
where the continuity correction is
The continuity correction is applied only when (Fleiss, Levin, and Paik 2003). You can remove the continuity correction by specifying the COMMONRISKDIFF(CORRECT=NO) option.
By default, the minimum risk test is computed as
The continuity correction c is subtracted from if
and added to
if
. The null variance of the common risk difference is estimated by
where (an estimate of the variance of the stratum h risk difference under the null hypothesis) is
and
The two-sided p-value is , where Z has a standard normal distribution.
If you specify the VAR=SAMPLE option for COMMONRISKDIFF(TEST=MR), PROC FREQ uses the sample variance estimate instead of the null variance estimate
in the denominator of the test statistic
. If you specify the COMMONRISKDIFF(CORRECT=NO) option, the continuity correction is not included in the test statistic.
The estimate of the minimum risk weight for stratum h is defined by Mehrotra and Railkar (2000) as
where
and is the fraction in stratum h
All sums are over the s strata ( tables) in the multiway table request,
denotes the risk difference estimate in stratum i, and
denotes the sample variance estimate of the risk difference in stratum i.
PROC FREQ computes the summary score estimate of the common risk difference (Agresti 2013, p. 231) by using inverse-variance stratum weights and Miettinen-Nurminen (score) confidence limits for the stratum risk differences. For more information, see the section "Miettinen-Nurminen (Score) Confidence Limits."
The score confidence interval for the risk difference in stratum h can be expressed as , where
is the midpoint of the score confidence interval and
is the width of the confidence interval divided by
. The summary score estimate of the common risk difference is computed as
where
The variance of is computed as
The % summary score confidence limits for the common risk difference are
If you specify the COMMONRISKDIFF(TEST=SCORE) option, PROC FREQ provides a summary score test of the null hypothesis that the common risk difference is 0. The test statistic is The two-sided p-value is
where Z has a standard normal distribution.
PROC FREQ computes stratified Newcombe confidence limits for the common risk (proportion) difference by using the method of Yan and Su (2010). The stratified Newcombe confidence limits are constructed from stratified Wilson confidence limits for the common (overall) row proportions. By default, the strata are weighted by Mantel-Haenszel weights; if you specify the COMMONRISKDIFF(CL=NEWCOMBEMR) option, the strata are weighted by minimum risk weights.
PROC FREQ first computes individual Wilson confidence limits for the row proportions in each table (stratum), as described in the section Wilson (Score) Confidence Limits. These stratum Wilson confidence limits are then combined to form stratified Wilson confidence limits for the overall row proportions by using stratum weights (either Mantel-Haenszel or minimum risk). The confidence levels of the stratum Wilson confidence limits are chosen so that the overall confidence coefficient (for the stratified Wilson confidence limits) is
% (Yan and Su 2010).
Denote the lower and upper stratified Wilson score confidence limits for the common row 1 proportion as and
, respectively, and denote the lower and upper stratified Wilson confidence limits for the common row 2 proportion as
and
, respectively. The
% stratified Newcombe confidence limits for the common risk (proportion) difference are
where is the weighted estimate of the common risk difference and
By default, the strata are weighted by Mantel-Haenszel weights, which are defined as
and the weighted estimate of the common risk difference is . For more information, see the section Mantel-Haenszel Confidence Limits and Test. Optionally, the strata are weighted by minimum risk weights, and the weighted estimate of the common risk difference is
. For more information, see the section Minimum Risk Confidence Limits and Test.
When there is a single stratum, the stratified Newcombe confidence interval is equivalent to the (unstratified) Newcombe confidence interval. For more information, see the subsection "Newcombe Confidence Limits" in the section Confidence Limits for the Risk Difference. See also Kim and Won (2013).