I am doing a cochran-mantel-haenszel test using proc freq. The output is very confusing. Is there an order to the options included with the tables statement ? For example, the Breslow-Day statistic is not always output and there are two cmh tables with different values. What are those supposed to be? I expected one cmh table with cmh1 cmh2 and cmh3.
SAS CODE:
data b;
input confounder $ treatment $ response $ count;
cards;
1 drug1 yes 19
1 drug1 no 3
1 drug2 yes 14
1 drug2 no 11
2 drug1 yes 27
2 drug1 no 18
2 drug2 yes 21
2 drug2 no 15
;
proc freq data=b order=data;
table treatment*response / nopercent norow nocol chisq relrisk;
weight count;
run cancel;
proc freq data=b order=data;
tables treatment*response / nopercent norow nocol relrisk chisq cmh(mf);
by confounder;
weight count;
run;
Thanks.
MM
CMH test is usually for three dimension contingency table .
I think you should involve one more variable in your model.
proc freq data=b order=data; tables confounder*treatment*response / nopercent norow nocol relrisk chisq cmh bdt; weight count; run;
CMH test is usually for three dimension contingency table .
I think you should involve one more variable in your model.
proc freq data=b order=data; tables confounder*treatment*response / nopercent norow nocol relrisk chisq cmh bdt; weight count; run;
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.