<?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: Code for test of proportion in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Code-for-test-of-proportion/m-p/101159#M28390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you calling some statistical method ?&lt;/P&gt;&lt;P&gt;If you want multi-comparion , Check out proc glm + lsmeans .&lt;/P&gt;&lt;P&gt;Note: these all is based on Normal Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 04:29:14 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2012-05-03T04:29:14Z</dc:date>
    <item>
      <title>Code for test of proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Code-for-test-of-proportion/m-p/101158#M28389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set of firms which I divided into three categories- 1, 2, and 3- based on their special characteristics. For each category, I have some information like sales, profit, and so on. I want to test the difference in proportion for this sample. In other words, I want to test whether the total sales in Group 1 is significantly different from Group 2 and 3. The data I have is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Group sales profit&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 150&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 120&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would appreciate if someone shares the code that will help me do the desired analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 17:01:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Code-for-test-of-proportion/m-p/101158#M28389</guid>
      <dc:creator>shalmali</dc:creator>
      <dc:date>2012-05-02T17:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Code for test of proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Code-for-test-of-proportion/m-p/101159#M28390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you calling some statistical method ?&lt;/P&gt;&lt;P&gt;If you want multi-comparion , Check out proc glm + lsmeans .&lt;/P&gt;&lt;P&gt;Note: these all is based on Normal Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 04:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Code-for-test-of-proportion/m-p/101159#M28390</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-05-03T04:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Code for test of proportion</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Code-for-test-of-proportion/m-p/101160#M28391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you have removed all the variability in each group by summing within the group.&amp;nbsp; With only three groups and no replication within group, an analysis of variance approach (say PROC GLM) will not work, as there are no degrees of freedom left for error--they are all used up in the numerator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than summing, what about just classifying the individual firms into groups?&amp;nbsp; Working backwards from your summary data, what if you had something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;input firmid firmclass sales profit;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;1 1 30 10&lt;/P&gt;&lt;P&gt;2 1 50 30&lt;/P&gt;&lt;P&gt;3 1 20 -20&lt;/P&gt;&lt;P&gt;4 2 60 0&lt;/P&gt;&lt;P&gt;5 2 90 10&lt;/P&gt;&lt;P&gt;6 3 50 10&lt;/P&gt;&lt;P&gt;7 3 40 20&lt;/P&gt;&lt;P&gt;8 3 30 10&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glm data=one;&lt;/P&gt;&lt;P&gt;class firmclass;&lt;/P&gt;&lt;P&gt;model sales profit=firmclass;&lt;/P&gt;&lt;P&gt;lsmeans firmclass/pdiff stderr cl;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would implement Ksharp's suggestion, and provide tests about the marginal means of sales and profits.&amp;nbsp; Unfortunately, if you are truly interested in testing for differences in the totals of these variables, you need to have some sort of replication that is not readily apparent in your summary dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 11:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Code-for-test-of-proportion/m-p/101160#M28391</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-05-03T11:22:26Z</dc:date>
    </item>
  </channel>
</rss>

