<?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: how to calculate average in data step block in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486655#M126668</link>
    <description>&lt;P&gt;At least in FedSQL functions avg and mean are the same:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="avg_function.PNG" style="width: 339px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22432i1431FADBF39785EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="avg_function.PNG" alt="avg_function.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 13:19:23 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2018-08-14T13:19:23Z</dc:date>
    <item>
      <title>how to calculate average in data step block</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486617#M126644</link>
      <description>&lt;P&gt;data s ;&lt;BR /&gt;input a1-a3 ;&lt;BR /&gt;cards ;&lt;BR /&gt;5 10 5&lt;BR /&gt;10 20 10&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;proc sql ;&lt;BR /&gt;select avg(a1) as average from s ;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql ;&lt;BR /&gt;select avg(of a1-a3) as average from s ;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by using proc sql i got average either column wise or row wise .&lt;/P&gt;&lt;P&gt;how to calculate average in datastep block?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 11:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486617#M126644</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-08-14T11:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate average in data step block</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486622#M126646</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;data s ;&lt;BR /&gt;input a1-a3 ;&lt;BR /&gt;cards ;&lt;BR /&gt;5 10 5&lt;BR /&gt;10 20 10&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;proc sql ;&lt;BR /&gt;select avg(a1) as average from s ;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql ;&lt;BR /&gt;select avg(of a1-a3) as average from s ;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;by using proc sql i got average either column wise or row wise .&lt;/P&gt;
&lt;P&gt;how to calculate average in datastep block?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The syntax for calculating row-wise average is not that different from the proc sql code. If you need to calculate column-wise average, using proc summary is most-times more efficient.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 11:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486622#M126646</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-08-14T11:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate average in data step block</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486648#M126663</link>
      <description>proc summary gives mean value.&lt;BR /&gt;&lt;BR /&gt;there is difference between average and mean value i think so.&lt;BR /&gt;is there any difference between average and mean value?</description>
      <pubDate>Tue, 14 Aug 2018 13:01:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486648#M126663</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-08-14T13:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate average in data step block</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486655#M126668</link>
      <description>&lt;P&gt;At least in FedSQL functions avg and mean are the same:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="avg_function.PNG" style="width: 339px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22432i1431FADBF39785EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="avg_function.PNG" alt="avg_function.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 13:19:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486655#M126668</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-08-14T13:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate average in data step block</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486703#M126683</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;proc summary gives mean value.&lt;BR /&gt;&lt;BR /&gt;there is difference between average and mean value i think so.&lt;BR /&gt;is there any difference between average and mean value?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Only difference in general is spelling and how pedantic some users may be for vocabulary choices. Some uses of "average" have an interpretation of "typical" but in calculations average=mean for SAS. Of course "mean" can be used for "unkind".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless you are discussing&amp;nbsp; geometric mean compared to arithmetic mean.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486703#M126683</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-14T14:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to calculate average in data step block</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486707#M126684</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;is there any difference between average and mean value?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;NO.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:58:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-calculate-average-in-data-step-block/m-p/486707#M126684</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-14T14:58:17Z</dc:date>
    </item>
  </channel>
</rss>

