<?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: PROC MIANALYZE with McNemars in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694844#M33540</link>
    <description>Thank you!!!</description>
    <pubDate>Wed, 28 Oct 2020 13:09:19 GMT</pubDate>
    <dc:creator>tka726</dc:creator>
    <dc:date>2020-10-28T13:09:19Z</dc:date>
    <item>
      <title>PROC MIANALYZE with McNemars</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694642#M33527</link>
      <description>&lt;P&gt;Hello -&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with imputed data. The data is matched, so I'm using PROC FREQ with McNemar's test. Is it possible to get an overall McNemar's result from MIANALYZE? I can not figure out how to enter this into MIANALYZE since a standard error is not output.&lt;/P&gt;&lt;P&gt;THANKS!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC FREQ DATA=IMPUTED;&lt;BR /&gt;TABLES status_in*status_out / agree;&lt;BR /&gt;ods output McNemarsTest=mcnx;&lt;BR /&gt;BY _Imputation_;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 17:55:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694642#M33527</guid>
      <dc:creator>tka726</dc:creator>
      <dc:date>2020-10-27T17:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE with McNemars</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694643#M33528</link>
      <description>&lt;P&gt;There isn't a way to combine the test statistics directly in MIANALYZE but you could use Dr. Paul Allison's %COMBCHI macro to combine the actual Chi-Square statistics and get a single p-value.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sas.upenn.edu/~allison/combchi.sas" target="_blank"&gt;https://www.sas.upenn.edu/~allison/combchi.sas&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 18:05:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694643#M33528</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2020-10-27T18:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE with McNemars</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694680#M33530</link>
      <description>Thank you. Unfortunately I do not have PROC IML... do you happen to know if there is another way to do this?</description>
      <pubDate>Tue, 27 Oct 2020 20:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694680#M33530</guid>
      <dc:creator>tka726</dc:creator>
      <dc:date>2020-10-27T20:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE with McNemars</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694694#M33531</link>
      <description>Is there any way to run PROC FREQ by imputation (not necessarily McNemars) and get results that can be input in MIANALYZE to get an overall p-value?</description>
      <pubDate>Tue, 27 Oct 2020 21:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694694#M33531</guid>
      <dc:creator>tka726</dc:creator>
      <dc:date>2020-10-27T21:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE with McNemars</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694837#M33537</link>
      <description>&lt;P&gt;Although it is easier to program with IML, you don't necessarily need to use it.&amp;nbsp; You could use Proc MEANS and a Data Step to do the same thing.&amp;nbsp; The code below will replicate the example he has in the header of the program.&amp;nbsp; You could probably turn this into a MACRO if you had a lot of these to do, but the gist of it would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;BR /&gt;input g2 @@;&lt;BR /&gt;g=sqrt(g2);&lt;BR /&gt;cards;&lt;BR /&gt;5.8 7.2 6.1 8.5&lt;BR /&gt;;&lt;BR /&gt;proc means data=test;&lt;BR /&gt;var g2 g;&lt;BR /&gt;output out=out1 sum=sum_g2 sum_g n=m uss=ssq_g2 ssq_g;&lt;BR /&gt;run;&lt;BR /&gt;data out1;&lt;BR /&gt;set out1;&lt;BR /&gt;df=3;&lt;BR /&gt;mg2=sum_g2/m;&lt;BR /&gt;r=(1+1/m)*(ssq_g-(sum_g**2)/m)/(m-1);&lt;BR /&gt;f=(mg2/df - r*(m-1)/(m+1))/(1+r);&lt;BR /&gt;ddf=(m-1)*(1+1/r)**2/df**(3/m);&lt;BR /&gt;p=1-probf(f,df,ddf);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc print;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2020 12:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694837#M33537</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2020-10-28T12:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIANALYZE with McNemars</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694844#M33540</link>
      <description>Thank you!!!</description>
      <pubDate>Wed, 28 Oct 2020 13:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-MIANALYZE-with-McNemars/m-p/694844#M33540</guid>
      <dc:creator>tka726</dc:creator>
      <dc:date>2020-10-28T13:09:19Z</dc:date>
    </item>
  </channel>
</rss>

