<?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 How to calculate mode for length in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96660#M27265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a column that has text in each row.&amp;nbsp; I was assigned to find the mode of this column by my manager.&amp;nbsp; I have never heard of mode in this respects so i'm not sure how I would calculate it in sas.&amp;nbsp; Any help would be great appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2012 17:15:44 GMT</pubDate>
    <dc:creator>jerry898969</dc:creator>
    <dc:date>2012-12-11T17:15:44Z</dc:date>
    <item>
      <title>How to calculate mode for length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96660#M27265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a column that has text in each row.&amp;nbsp; I was assigned to find the mode of this column by my manager.&amp;nbsp; I have never heard of mode in this respects so i'm not sure how I would calculate it in sas.&amp;nbsp; Any help would be great appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 17:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96660#M27265</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2012-12-11T17:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mode for length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96661#M27266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc freq and sort descending will get you the most freq. I think there's an option to set it to sort descending.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 17:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96661#M27266</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-12-11T17:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mode for length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96662#M27267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help I will try that out.&amp;nbsp; Is there a proc that can give me mean, median and mode all at once? If not what would be the best approach to calcualte mean and median?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 18:56:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96662#M27267</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2012-12-11T18:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mode for length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96663#M27268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a text variable?&lt;/P&gt;&lt;P&gt;I don't know how mean or median for those would be applicable.&lt;/P&gt;&lt;P&gt;Mode makes some sort of sense to find the most frequent comment or word. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For numeric variables, use proc means/summary/univariate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 19:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96663#M27268</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-12-11T19:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mode for length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96664#M27269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I didn't explain it better.&amp;nbsp; It is the length of the text field I need these statistics for.&amp;nbsp; I will try those procs thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 19:44:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96664#M27269</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2012-12-11T19:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mode for length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96665#M27270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VarLength=length(variablename of interest);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc means data=want mean median mode;&lt;/P&gt;&lt;P&gt;var Varlength;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 23:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96665#M27270</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-12-11T23:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate mode for length</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96666#M27271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In three ways you can calculate mean, mode and median of numeric variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Proc menas data=&amp;lt;dataset_name&amp;gt; mean mode median;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var &amp;lt;variable_names&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Proc summary data=&amp;lt;dataset_name&amp;gt; print mean mode median;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var &amp;lt;variable_names&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) ODS select basicmeasures;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Proc univariate data=&amp;lt;dataset_name&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var &amp;lt;variable_names&amp;gt;;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Prit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 06:31:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-calculate-mode-for-length/m-p/96666#M27271</guid>
      <dc:creator>Prit</dc:creator>
      <dc:date>2012-12-12T06:31:49Z</dc:date>
    </item>
  </channel>
</rss>

