The SURVEYFREQ Procedure

Discordant Proportion Difference

The DISCORDDIFF option provides the estimate of the difference between discordant proportions for 2 times 2 tables (McNemar 1947). The difference is computed as

ModifyingAbove upper D With caret equals ModifyingAbove upper P With caret Subscript 12 Baseline minus ModifyingAbove upper P With caret Subscript 21

where the proportion estimates are described in the section Proportions.

PROC SURVEYFREQ estimates the variance of the difference by using the variance estimation method that you request. If you request a replication method (bootstrap, BRR, jackknife, or replicate weights), the procedure estimates the variance as described in the section Replication Variance Estimation. By default, PROC SURVEYFREQ estimates the variance by using the Taylor series method.

Confidence limits for the discordant difference are computed as

ModifyingAbove upper D With caret plus-or-minus left-parenthesis t Subscript d f comma alpha slash 2 Baseline times normal upper S normal t normal d normal upper E normal r normal r left-parenthesis ModifyingAbove upper D With caret right-parenthesis right-parenthesis

where normal upper S normal t normal d normal upper E normal r normal r left-parenthesis ModifyingAbove upper D With caret right-parenthesis is the standard error of the estimate and t Subscript d f comma alpha slash 2 is the 100 left-parenthesis 1 minus alpha slash 2 right-parenthesisth percentile of the t distribution with df degrees of freedom. (For more information, see the section Degrees of Freedom.) The value of the confidence coefficient alpha is determined by the ALPHA= option; by default, ALPHA=0.05, which produces 95% confidence limits.

PROC SURVEYFREQ also provides the corresponding t test of the null hypothesis that the discordant proportion difference is 0. The test statistic is computed as

t equals ModifyingAbove upper D With caret slash normal upper S normal t normal d normal upper E normal r normal r left-parenthesis ModifyingAbove upper D With caret right-parenthesis

The two-sided p-value is

normal upper P normal r normal o normal b left-parenthesis StartAbsoluteValue upper T EndAbsoluteValue greater-than StartAbsoluteValue t EndAbsoluteValue right-parenthesis

where T has a t distribution with df degrees of freedom.

Last updated: December 09, 2022