<?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 Calculate Median in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Median/m-p/187349#M1333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some data where the mean (average) will give the wrong impression of the data, because of some few high values. Instead I will like to calculate the median.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that and display it in a crosstab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 06:34:52 GMT</pubDate>
    <dc:creator>Allan_dk</dc:creator>
    <dc:date>2014-06-06T06:34:52Z</dc:date>
    <item>
      <title>Calculate Median</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Median/m-p/187349#M1333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some data where the mean (average) will give the wrong impression of the data, because of some few high values. Instead I will like to calculate the median.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do that and display it in a crosstab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 06:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Median/m-p/187349#M1333</guid>
      <dc:creator>Allan_dk</dc:creator>
      <dc:date>2014-06-06T06:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Median</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Median/m-p/187350#M1334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Allan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;normally we use a simple boxplot to calculate the median and other numbers.&lt;/P&gt;&lt;P&gt;I don`t really have a solution to calculate the median on the fly within a crosstab, like avg,min, max etc.&lt;/P&gt;&lt;P&gt;But maybe this will be an acceptable workaround for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Build a Data Query with simple proc sql&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create view TEMP_LASR_VIEW_0 as &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CARS5.Type length=6 format=$6. AS Type,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; median(CARS5.Horsepower) length=8 format=BEST12. AS Horsepower&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LASRLIB.CARS5 CARS5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GROUP BY &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type ;&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Or use proc means with output out=...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Use the table in your report &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Bildschirmfoto 2014-06-06 um 09.49.56.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/6537_Bildschirmfoto 2014-06-06 um 09.49.56.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Performance will maybe be a problem.&lt;/P&gt;&lt;P&gt;You have to type median into the expression field, because in the default functionlist there isn`t median.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 08:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Calculate-Median/m-p/187350#M1334</guid>
      <dc:creator>mariusg</dc:creator>
      <dc:date>2014-06-06T08:06:35Z</dc:date>
    </item>
  </channel>
</rss>

