Sorry, it ran, but I am not sure how to interpret the output. I don't think it is comparing the proportions of A and B, but it is comparing A with all the other groups lumped together: This is the code: data sample2; set sample1; if CAT in ('A', ' B') then CAT2=CAT; else CAT2=.; RUN; ods graphics off; proc surveyfreq data=sample2 nomcar; tables CAT2*SEX/col row nostd nowt wchisq chisq; weight WTS_P; run; This is the output: I would like to compare the row percents of A with B, A with C and A with D. This is the table: Is it possible to do these comparisons making sure, as you said before, with the correct standard errors? Thank you for your help
... View more