<?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: Summary table in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166443#M8698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input id v1-v3;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;11&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;21&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;31&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;41&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;ods output sscp=coocs;&lt;/P&gt;&lt;P&gt;proc corr sscp;&lt;/P&gt;&lt;P&gt;var v1-v3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=coocs;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2015 21:27:15 GMT</pubDate>
    <dc:creator>GeoffDer</dc:creator>
    <dc:date>2015-02-12T21:27:15Z</dc:date>
    <item>
      <title>Summary table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166438#M8693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="126" style="border: 1px solid rgb(0, 0, 0); width: 813px; height: 10px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Custnum&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;indicx&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;indicy&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;indicz&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;11&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;21&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;31&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;41&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to summarize the data to have this output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="101" style="border: 1px solid rgb(0, 0, 0); width: 703px; height: 0px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;indicx&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;indicy&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;indicz&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;indicx&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;indicy&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;indicz&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the quickest way to do it ?&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>Thu, 12 Feb 2015 16:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166438#M8693</guid>
      <dc:creator>tlk</dc:creator>
      <dc:date>2015-02-12T16:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Summary table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166439#M8694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clearly, the quickest way would be to hire a consultant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you want to program this yourself, you have to answer a few questions first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is your output?&amp;nbsp; Is it a report, or is it a data set?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any flexibility in the requirements?&amp;nbsp; For example, there are going to be 6 numbers, and 3 repeats in your results.&amp;nbsp; Do you need all 9 numbers in the output?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want a program that is limited to these 3 variables, or do you need something that might expand to more variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 17:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166439#M8694</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-02-12T17:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Summary table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166440#M8695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Information is duplicated in this table so it isn't a really efficient way to store data unless it's for reporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are you planning to use it for?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 17:13:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166440#M8695</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-12T17:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: Summary table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166441#M8696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my real data I have 10 000 custnum (10 000 obs) and have 10 indicators.&amp;nbsp;&amp;nbsp; This table tell us which services each customers have use last year,&amp;nbsp; I can summarize each indicators independantly(easy part).&amp;nbsp; I would like to see in a report which combination of services were used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll continue to work on this, maybe I should make up a class variable by combining my indicators and have proc summary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought there was a Stat proc that could do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 18:05:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166441#M8696</guid>
      <dc:creator>tlk</dc:creator>
      <dc:date>2015-02-12T18:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Summary table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166442#M8697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For three variables, it's easy to count all the combinations.&amp;nbsp; PROC FREQ is the simplest counting tool:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; tables indicx * indicy * indicz / missing list;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;See if this does what you need for three variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you have larger numbers of variables, such as 10, this may not fit onto the page.&amp;nbsp; You could increase the width of each line although there are limits and you may need to read the results on a browser not a printer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options linesize=255;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... then run PROC FREQ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 18:12:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166442#M8697</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-02-12T18:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Summary table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166443#M8698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input id v1-v3;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;11&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;21&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;31&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;41&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;ods output sscp=coocs;&lt;/P&gt;&lt;P&gt;proc corr sscp;&lt;/P&gt;&lt;P&gt;var v1-v3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=coocs;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 21:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166443#M8698</guid>
      <dc:creator>GeoffDer</dc:creator>
      <dc:date>2015-02-12T21:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Summary table</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166444#M8699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice and simple, love it &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 20:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Summary-table/m-p/166444#M8699</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-13T20:58:00Z</dc:date>
    </item>
  </channel>
</rss>

