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;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.