<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cochran-mantel-haenszel and breslow-day test output in proc freq in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/cochran-mantel-haenszel-and-breslow-day-test-output-in-proc-freq/m-p/770413#M37651</link>
    <description>Thanks. I had put a "by confounder" statement in one of my tries. I won't make that mistake again. Your approach gives good output. I am verifyng doing it by hand. I like using cmh(mf). MM</description>
    <pubDate>Sat, 25 Sep 2021 14:03:28 GMT</pubDate>
    <dc:creator>MaryA_Marion</dc:creator>
    <dc:date>2021-09-25T14:03:28Z</dc:date>
    <item>
      <title>cochran-mantel-haenszel and breslow-day test output in proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/cochran-mantel-haenszel-and-breslow-day-test-output-in-proc-freq/m-p/770382#M37646</link>
      <description>&lt;P&gt;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 ?&amp;nbsp; 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.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS CODE:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;data b;&lt;BR /&gt;input confounder $ treatment $ response $ count;&lt;BR /&gt;cards;&lt;BR /&gt;1 drug1    yes 19&lt;BR /&gt;1 drug1     no 3&lt;BR /&gt;1 drug2    yes 14&lt;BR /&gt;1 drug2     no 11&lt;BR /&gt;2 drug1    yes 27&lt;BR /&gt;2 drug1     no 18&lt;BR /&gt;2 drug2    yes 21&lt;BR /&gt;2 drug2     no 15&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;proc freq data=b order=data;&lt;BR /&gt;table treatment*response / nopercent norow nocol chisq relrisk;&lt;BR /&gt;weight count;&lt;BR /&gt;run cancel;&lt;BR /&gt;&lt;BR /&gt;proc freq data=b order=data;&lt;BR /&gt;tables treatment*response / nopercent norow nocol  relrisk chisq cmh(mf);&lt;BR /&gt;by confounder;&lt;BR /&gt;weight count;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;PRE&gt;Thanks.&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MM&lt;/P&gt;</description>
      <pubDate>Sat, 25 Sep 2021 10:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/cochran-mantel-haenszel-and-breslow-day-test-output-in-proc-freq/m-p/770382#M37646</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-09-25T10:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: cochran-mantel-haenszel and breslow-day test output in proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/cochran-mantel-haenszel-and-breslow-day-test-output-in-proc-freq/m-p/770391#M37647</link>
      <description>&lt;P&gt;CMH test is usually for three dimension contingency table .&lt;/P&gt;
&lt;P&gt;I think you should involve one more variable in your model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;
proc freq data=b order=data;
tables confounder*treatment*response / nopercent norow nocol  relrisk chisq cmh bdt;
weight count;
run;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Sep 2021 09:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/cochran-mantel-haenszel-and-breslow-day-test-output-in-proc-freq/m-p/770391#M37647</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-09-25T09:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: cochran-mantel-haenszel and breslow-day test output in proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/cochran-mantel-haenszel-and-breslow-day-test-output-in-proc-freq/m-p/770398#M37650</link>
      <description>I know how to do it right but I had to keep removing table options ending up with only chisq and cmh(mf). This has happened to me multiple times with different datasets. These options generate code which sometimes conflict with each other. I think that's what is happening here. The order is important but I don't know the order. Thank you for the reply.</description>
      <pubDate>Sat, 25 Sep 2021 10:12:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/cochran-mantel-haenszel-and-breslow-day-test-output-in-proc-freq/m-p/770398#M37650</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-09-25T10:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: cochran-mantel-haenszel and breslow-day test output in proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/cochran-mantel-haenszel-and-breslow-day-test-output-in-proc-freq/m-p/770413#M37651</link>
      <description>Thanks. I had put a "by confounder" statement in one of my tries. I won't make that mistake again. Your approach gives good output. I am verifyng doing it by hand. I like using cmh(mf). MM</description>
      <pubDate>Sat, 25 Sep 2021 14:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/cochran-mantel-haenszel-and-breslow-day-test-output-in-proc-freq/m-p/770413#M37651</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-09-25T14:03:28Z</dc:date>
    </item>
  </channel>
</rss>

