<?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 Descriptive statistics of a listing in the same column in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Descriptive-statistics-of-a-listing-in-the-same-column/m-p/193862#M48701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;BR /&gt;I'd like to get some descriptive statistics and report them similar to the example below. For example we can take the data set cars. How should I list the individual parametes first and then the descriptives right after them in the same column? Proc report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 396px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;" width="107"&gt;-&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="72"&gt;x1&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="106"&gt;x2&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="111"&gt;x3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="72"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="106"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="111"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="72"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="106"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="111"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="72"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="106"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="111"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border: 0px solid black;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black;" width="72"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black;" width="106"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black;" width="111"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;N&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="72"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="106"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="111"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="20" style="border: 0px solid black;" width="107"&gt;mean&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;2.5&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;6.5&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;6.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;std.&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border: 0px solid black;"&gt;1.29&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border: 0px solid black;"&gt;3.11&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border: 0px solid black;"&gt;2.22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;min&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;median&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;2.5&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;6.5&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;max&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;4&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;10&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;%CV&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border: 0px solid black;"&gt;51.6&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border: 0px solid black;"&gt;47.8&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border: 0px solid black;"&gt;35.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;geo. mean&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border: 0px solid black;"&gt;2.2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border: 0px solid black;"&gt;5.9&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border: 0px solid black;"&gt;6.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Apr 2015 19:28:34 GMT</pubDate>
    <dc:creator>bmozdemir</dc:creator>
    <dc:date>2015-04-11T19:28:34Z</dc:date>
    <item>
      <title>Descriptive statistics of a listing in the same column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Descriptive-statistics-of-a-listing-in-the-same-column/m-p/193862#M48701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;BR /&gt;I'd like to get some descriptive statistics and report them similar to the example below. For example we can take the data set cars. How should I list the individual parametes first and then the descriptives right after them in the same column? Proc report?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 396px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;" width="107"&gt;-&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="72"&gt;x1&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="106"&gt;x2&lt;/TD&gt;&lt;TD class="xl72" style="border: 0px solid black;" width="111"&gt;x3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="72"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="106"&gt;5&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="111"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="72"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="106"&gt;8&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="111"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="72"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="106"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="111"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" style="border: 0px solid black;"&gt;-&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black;" width="72"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black;" width="106"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl69" style="border: 0px solid black;" width="111"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;N&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="72"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="106"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;" width="111"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl71" height="20" style="border: 0px solid black;" width="107"&gt;mean&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;2.5&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;6.5&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;6.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;std.&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border: 0px solid black;"&gt;1.29&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border: 0px solid black;"&gt;3.11&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border: 0px solid black;"&gt;2.22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;min&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;3&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;median&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;2.5&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;6.5&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;max&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;4&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;10&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;%CV&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border: 0px solid black;"&gt;51.6&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border: 0px solid black;"&gt;47.8&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border: 0px solid black;"&gt;35.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="20" style="border: 0px solid black;"&gt;geo. mean&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border: 0px solid black;"&gt;2.2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border: 0px solid black;"&gt;5.9&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border: 0px solid black;"&gt;6.0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Apr 2015 19:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Descriptive-statistics-of-a-listing-in-the-same-column/m-p/193862#M48701</guid>
      <dc:creator>bmozdemir</dc:creator>
      <dc:date>2015-04-11T19:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Descriptive statistics of a listing in the same column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Descriptive-statistics-of-a-listing-in-the-same-column/m-p/193863#M48702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;None of the standard procs will do that by default, you'll have to create your own data and then use proc print or report to display it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a sample, but it doesn't create the geomean.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; have;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;input&lt;/SPAN&gt; x1 x2 x3;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;cards&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;1 5 7&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;2 8 9&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;3 10 4&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;4 3 5&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #0433ff;"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;means&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;data&lt;SPAN style="color: #000000;"&gt;=have stackods &lt;/SPAN&gt;n&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;mean&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;min&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;std&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;median&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;max&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;cv&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;var&lt;/SPAN&gt; x1 x2 x3;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;output&lt;/SPAN&gt; summary=stats; &lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;transpose&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;=stats &lt;SPAN style="color: #0433ff;"&gt;out&lt;/SPAN&gt;=stats2;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;id&lt;/SPAN&gt; variable;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #011993;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; want;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;set&lt;/SPAN&gt; have (in=a) stats2(in=b);&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;if&lt;/SPAN&gt; a &lt;SPAN style="color: #0433ff;"&gt;then&lt;/SPAN&gt; _NAME_=&lt;SPAN style="color: #942193;"&gt;'RAW'&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;drop&lt;/SPAN&gt; _label_;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Apr 2015 20:17:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Descriptive-statistics-of-a-listing-in-the-same-column/m-p/193863#M48702</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-11T20:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Descriptive statistics of a listing in the same column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Descriptive-statistics-of-a-listing-in-the-same-column/m-p/193864#M48703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Reeza. Great solution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 12:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Descriptive-statistics-of-a-listing-in-the-same-column/m-p/193864#M48703</guid>
      <dc:creator>bmozdemir</dc:creator>
      <dc:date>2015-04-14T12:49:19Z</dc:date>
    </item>
  </channel>
</rss>

