<?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 Multinomial comparison with testp included in data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-comparison-with-testp-included-in-data/m-p/194821#M10370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to run a pretty large multinomial comparison. I have a list of 2,000 different medicines, and I have computed their frequency "pre" and "post" (relative to a change in the experiment). I want to do a Pearson's test to see which of these medicines have significantly different proportional representations in the "post" sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my data look like:&lt;/P&gt;&lt;P&gt;Drug:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pre:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Post:&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x1%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y1%&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x2%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y2%&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I had a smaller list -- say 3 medicines -- I would use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC FREQ data=tmp&lt;/P&gt;&lt;P&gt; tables drug / chisq testp=( X Y Z )&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I have around 2000 levels, and I don't want to type them out. I don't think proc freq can take the hypothesized values from inside the data, as I need. Is there another procedure that can handle such an input method? Or, is there a way I can batch/script this to produce the needed output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jul 2015 00:56:23 GMT</pubDate>
    <dc:creator>Shaha13</dc:creator>
    <dc:date>2015-07-03T00:56:23Z</dc:date>
    <item>
      <title>Multinomial comparison with testp included in data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-comparison-with-testp-included-in-data/m-p/194821#M10370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to run a pretty large multinomial comparison. I have a list of 2,000 different medicines, and I have computed their frequency "pre" and "post" (relative to a change in the experiment). I want to do a Pearson's test to see which of these medicines have significantly different proportional representations in the "post" sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my data look like:&lt;/P&gt;&lt;P&gt;Drug:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pre:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Post:&lt;/P&gt;&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x1%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y1%&lt;/P&gt;&lt;P&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x2%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y2%&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I had a smaller list -- say 3 medicines -- I would use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC FREQ data=tmp&lt;/P&gt;&lt;P&gt; tables drug / chisq testp=( X Y Z )&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, I have around 2000 levels, and I don't want to type them out. I don't think proc freq can take the hypothesized values from inside the data, as I need. Is there another procedure that can handle such an input method? Or, is there a way I can batch/script this to produce the needed output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 00:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-comparison-with-testp-included-in-data/m-p/194821#M10370</guid>
      <dc:creator>Shaha13</dc:creator>
      <dc:date>2015-07-03T00:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multinomial comparison with testp included in data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-comparison-with-testp-included-in-data/m-p/194822#M10371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not make a macro variable to hold these X Y Z ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 13:19:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Multinomial-comparison-with-testp-included-in-data/m-p/194822#M10371</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-07-03T13:19:09Z</dc:date>
    </item>
  </channel>
</rss>

