Observed agreement (the sum of the diagonal proportions in the crosstabs table) is also referred to as accuracy. This SAS Usage Note (Estimating sensitivity, specificity, positive and negative predictive values, and other statistics) shows how to create the corresponding binary variable for accuracy and then use the BINOMIAL option to get confidence limits and tests. From the usage note,
data acc;
set FatComp;
acc = (test = response);
run;
proc freq;
tables acc / binomial(level="1");
weight count;
run;
You can also use the BINOMIAL(CL=type) option to specify the confidence limit type (for example, Agresti-Coull, Wilson, etc.).
For 2x2 tables, the SENSPEC option (in the PROC FREQ TABLES statement) now includes accuracy together with confidence limits in the Sensitivity and Specificity table.
... View more