<?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 New to SAS, need help with calculating average in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/New-to-SAS-need-help-with-calculating-average/m-p/68164#M3300</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm learning base SAS programming at the moment. This is part of my SAS data set that shows the average return of stocks after a 9 year period from 20 different companies. I want to calculate the average of this variable (average of the AvgReturn). I tried doing mean(AvgReturn) but it doesn't work. I prefer not to input all the numbers so how would I go about this? &lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
AvgReturn&lt;BR /&gt;
&lt;BR /&gt;
11.24&lt;BR /&gt;
5.45&lt;BR /&gt;
11.57&lt;BR /&gt;
-1.69&lt;BR /&gt;
17.79&lt;BR /&gt;
11.03&lt;BR /&gt;
6.61&lt;BR /&gt;
1.88&lt;BR /&gt;
1.49&lt;BR /&gt;
14.15&lt;BR /&gt;
29.47&lt;BR /&gt;
0.03&lt;BR /&gt;
9.73&lt;BR /&gt;
19.66&lt;BR /&gt;
4.11&lt;BR /&gt;
12.51&lt;BR /&gt;
6.84&lt;BR /&gt;
7.62&lt;BR /&gt;
-0.64&lt;BR /&gt;
0.63</description>
    <pubDate>Sat, 21 May 2011 15:46:16 GMT</pubDate>
    <dc:creator>KyleS83</dc:creator>
    <dc:date>2011-05-21T15:46:16Z</dc:date>
    <item>
      <title>New to SAS, need help with calculating average</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/New-to-SAS-need-help-with-calculating-average/m-p/68164#M3300</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I'm learning base SAS programming at the moment. This is part of my SAS data set that shows the average return of stocks after a 9 year period from 20 different companies. I want to calculate the average of this variable (average of the AvgReturn). I tried doing mean(AvgReturn) but it doesn't work. I prefer not to input all the numbers so how would I go about this? &lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
AvgReturn&lt;BR /&gt;
&lt;BR /&gt;
11.24&lt;BR /&gt;
5.45&lt;BR /&gt;
11.57&lt;BR /&gt;
-1.69&lt;BR /&gt;
17.79&lt;BR /&gt;
11.03&lt;BR /&gt;
6.61&lt;BR /&gt;
1.88&lt;BR /&gt;
1.49&lt;BR /&gt;
14.15&lt;BR /&gt;
29.47&lt;BR /&gt;
0.03&lt;BR /&gt;
9.73&lt;BR /&gt;
19.66&lt;BR /&gt;
4.11&lt;BR /&gt;
12.51&lt;BR /&gt;
6.84&lt;BR /&gt;
7.62&lt;BR /&gt;
-0.64&lt;BR /&gt;
0.63</description>
      <pubDate>Sat, 21 May 2011 15:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/New-to-SAS-need-help-with-calculating-average/m-p/68164#M3300</guid>
      <dc:creator>KyleS83</dc:creator>
      <dc:date>2011-05-21T15:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: New to SAS, need help with calculating average</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/New-to-SAS-need-help-with-calculating-average/m-p/68165#M3301</link>
      <description>how about using Proc Means to get what you are trying to?&lt;BR /&gt;
&lt;BR /&gt;
PROC MEANS NOPRINT&lt;BR /&gt;
DATA = TEST_01;&lt;BR /&gt;
OUTPUT MEAN=TOT_MEAN;&lt;BR /&gt;
RUN;</description>
      <pubDate>Sat, 21 May 2011 16:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/New-to-SAS-need-help-with-calculating-average/m-p/68165#M3301</guid>
      <dc:creator>Pritish</dc:creator>
      <dc:date>2011-05-21T16:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: New to SAS, need help with calculating average</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/New-to-SAS-need-help-with-calculating-average/m-p/68166#M3302</link>
      <description>The average has to be calculated Data Step, because after I calculate the average of the variable AvgReturn I have to compare the results to it</description>
      <pubDate>Sat, 21 May 2011 16:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/New-to-SAS-need-help-with-calculating-average/m-p/68166#M3302</guid>
      <dc:creator>KyleS83</dc:creator>
      <dc:date>2011-05-21T16:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: New to SAS, need help with calculating average</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/New-to-SAS-need-help-with-calculating-average/m-p/68167#M3303</link>
      <description>After PROC MEANS merge the output dataset back to the original dataset.</description>
      <pubDate>Sat, 21 May 2011 22:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/New-to-SAS-need-help-with-calculating-average/m-p/68167#M3303</guid>
      <dc:creator>Josh</dc:creator>
      <dc:date>2011-05-21T22:36:36Z</dc:date>
    </item>
  </channel>
</rss>

