<?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 Help with a Cochran-Mantel-Haenszel Statistics in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-a-Cochran-Mantel-Haenszel-Statistics/m-p/513974#M26248</link>
    <description>&lt;P&gt;I am trying to do a simplified "meta-analysis" for a school project, so I made an excel sheet to import into SAS. I have attached screen shots&amp;nbsp; of some of my output. When I try to find CMH summary statistics, my table looks all wonky and I am not sure how to go about fixing it. How do I get rid of those zeroes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data meta;&lt;BR /&gt;infile "C:\Users\David\Documents\meta.csv" dlm=',' dsd;&lt;BR /&gt;input ID author $ pubyear sdesign $ expvar $ ocvar $ ex:12. unexp:12. total:12.;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=meta;&lt;BR /&gt;run;&lt;BR /&gt;proc means data=meta mean q1 median q3 range;&lt;BR /&gt;var ex unexp total;&lt;BR /&gt;run;&lt;BR /&gt;proc freq data=meta;&lt;BR /&gt;table sdesign*ex*unexp /cmh;&lt;BR /&gt;weight total;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cmh.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25005i2A7E39B2CF311DE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cmh.png" alt="cmh.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table 2.png" style="width: 313px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25004iF7C1BEB118BBC982/image-size/medium?v=v2&amp;amp;px=400" role="button" title="table 2.png" alt="table 2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table 1.png" style="width: 295px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25006iE84959383B897210/image-size/medium?v=v2&amp;amp;px=400" role="button" title="table 1.png" alt="table 1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel output.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25003iF7E8F41226CC6AC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="excel output.png" alt="excel output.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Nov 2018 16:35:06 GMT</pubDate>
    <dc:creator>taylor_metz1</dc:creator>
    <dc:date>2018-11-16T16:35:06Z</dc:date>
    <item>
      <title>Help with a Cochran-Mantel-Haenszel Statistics</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-a-Cochran-Mantel-Haenszel-Statistics/m-p/513974#M26248</link>
      <description>&lt;P&gt;I am trying to do a simplified "meta-analysis" for a school project, so I made an excel sheet to import into SAS. I have attached screen shots&amp;nbsp; of some of my output. When I try to find CMH summary statistics, my table looks all wonky and I am not sure how to go about fixing it. How do I get rid of those zeroes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data meta;&lt;BR /&gt;infile "C:\Users\David\Documents\meta.csv" dlm=',' dsd;&lt;BR /&gt;input ID author $ pubyear sdesign $ expvar $ ocvar $ ex:12. unexp:12. total:12.;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=meta;&lt;BR /&gt;run;&lt;BR /&gt;proc means data=meta mean q1 median q3 range;&lt;BR /&gt;var ex unexp total;&lt;BR /&gt;run;&lt;BR /&gt;proc freq data=meta;&lt;BR /&gt;table sdesign*ex*unexp /cmh;&lt;BR /&gt;weight total;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cmh.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25005i2A7E39B2CF311DE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cmh.png" alt="cmh.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table 2.png" style="width: 313px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25004iF7C1BEB118BBC982/image-size/medium?v=v2&amp;amp;px=400" role="button" title="table 2.png" alt="table 2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table 1.png" style="width: 295px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25006iE84959383B897210/image-size/medium?v=v2&amp;amp;px=400" role="button" title="table 1.png" alt="table 1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="excel output.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/25003iF7E8F41226CC6AC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="excel output.png" alt="excel output.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 16:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-a-Cochran-Mantel-Haenszel-Statistics/m-p/513974#M26248</guid>
      <dc:creator>taylor_metz1</dc:creator>
      <dc:date>2018-11-16T16:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with a Cochran-Mantel-Haenszel Statistics</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-a-Cochran-Mantel-Haenszel-Statistics/m-p/513985#M26249</link>
      <description>&lt;P&gt;You may have a data structure issue but without knowing more about the project it is hard say. I can see that each value you have for the EX has only one value for the UNEXP&lt;/P&gt;
&lt;P&gt;1707&amp;nbsp; &amp;lt;=&amp;gt; 15372&lt;/P&gt;
&lt;P&gt;1714&amp;nbsp; &amp;lt;=&amp;gt;&amp;nbsp; 44970&lt;/P&gt;
&lt;P&gt;8733 &amp;nbsp;&amp;lt;=&amp;gt;&amp;nbsp; 70348&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in effect one determines the other and the "correlation" is 1&lt;/P&gt;
&lt;P&gt;I might guess that one or more of those variables actually represents a COUNT of cases for something else. In which case you want to compare the "something else" variables and tell SAS that a value represents a count.&lt;/P&gt;
&lt;P&gt;In which case the SAS data set should look something like&lt;/P&gt;
&lt;P&gt;ID Author pubyear sdesign expvar&amp;nbsp; ocvar &lt;STRONG&gt;status count&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where status might be explained/ unexplained and count would be the value&amp;nbsp; of ex or unexp&lt;/P&gt;
&lt;P&gt;and your proc freq code might look like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=meta;&lt;BR /&gt;table sdesign*status/cmh;&lt;BR /&gt;weight count;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 17:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-a-Cochran-Mantel-Haenszel-Statistics/m-p/513985#M26249</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-11-16T17:07:51Z</dc:date>
    </item>
  </channel>
</rss>

