<?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: calculating the average of multiple data points in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/calculating-the-average-of-multiple-data-points/m-p/346003#M79700</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/106603"&gt;@larkjr18&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Create a SAS data set for observations starting with the 10th and ending with the 40th based on the female-master-applicant data set, which you have created for item 5. Use the appropriate data set option and the assignment statement or the SUM statement to calculate the average GPA (Ave_GPA) for those 31 students. Show the average GPA (i.e., the value of the Ave_GPA variable) from SAS Log or PROC PRINT output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the general code I have right now:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data hi.femalesq6;&lt;BR /&gt;infile 'C:\Users\larkj\Desktop\STUDENT.DAT';&lt;BR /&gt;input SSN 1-9 sex $ 11 type $ 19 GPA 50-53;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=hi.femalesq6(firstobs= 10 obs=40);&lt;BR /&gt;where sex='F' and type='M';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I add some kinda sum statement it just seems to create a new variable and print the same numbers as the gpa.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Proc means&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2017 00:47:13 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-03-31T00:47:13Z</dc:date>
    <item>
      <title>calculating the average of multiple data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculating-the-average-of-multiple-data-points/m-p/345999#M79696</link>
      <description>&lt;P&gt;Create a SAS data set for observations starting with the 10th and ending with the 40th based on the female-master-applicant data set, which you have created for item 5. Use the appropriate data set option and the assignment statement or the SUM statement to calculate the average GPA (Ave_GPA) for those 31 students. Show the average GPA (i.e., the value of the Ave_GPA variable) from SAS Log or PROC PRINT output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the general code I have right now:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data hi.femalesq6;&lt;BR /&gt;infile 'C:\Users\larkj\Desktop\STUDENT.DAT';&lt;BR /&gt;input SSN 1-9 sex $ 11 type $ 19 GPA 50-53;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=hi.femalesq6(firstobs= 10 obs=40);&lt;BR /&gt;where sex='F' and type='M';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I add some kinda sum statement it just seems to create a new variable and print the same numbers as the gpa.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 00:32:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculating-the-average-of-multiple-data-points/m-p/345999#M79696</guid>
      <dc:creator>larkjr18</dc:creator>
      <dc:date>2017-03-31T00:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the average of multiple data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculating-the-average-of-multiple-data-points/m-p/346003#M79700</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/106603"&gt;@larkjr18&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Create a SAS data set for observations starting with the 10th and ending with the 40th based on the female-master-applicant data set, which you have created for item 5. Use the appropriate data set option and the assignment statement or the SUM statement to calculate the average GPA (Ave_GPA) for those 31 students. Show the average GPA (i.e., the value of the Ave_GPA variable) from SAS Log or PROC PRINT output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the general code I have right now:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data hi.femalesq6;&lt;BR /&gt;infile 'C:\Users\larkj\Desktop\STUDENT.DAT';&lt;BR /&gt;input SSN 1-9 sex $ 11 type $ 19 GPA 50-53;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=hi.femalesq6(firstobs= 10 obs=40);&lt;BR /&gt;where sex='F' and type='M';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I add some kinda sum statement it just seems to create a new variable and print the same numbers as the gpa.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Proc means&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 00:47:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculating-the-average-of-multiple-data-points/m-p/346003#M79700</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-31T00:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the average of multiple data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculating-the-average-of-multiple-data-points/m-p/346005#M79701</link>
      <description>&lt;P&gt;When I tried proc means yesterday it didn't work. Here is my code for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=hi.femalesq6(firstobs=10 obs=40);&lt;BR /&gt;where sex='F' and type='M';&lt;BR /&gt;by GPA;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also posted a picture of the output.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13644i5EB912105E5DBF26/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="2017-03-30 (1).png" title="2017-03-30 (1).png" /&gt;</description>
      <pubDate>Fri, 31 Mar 2017 01:01:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculating-the-average-of-multiple-data-points/m-p/346005#M79701</guid>
      <dc:creator>larkjr18</dc:creator>
      <dc:date>2017-03-31T01:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: calculating the average of multiple data points</title>
      <link>https://communities.sas.com/t5/SAS-Programming/calculating-the-average-of-multiple-data-points/m-p/346008#M79703</link>
      <description>&lt;P&gt;Just figured out that I had by and not var thank you for the help though.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 02:13:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/calculating-the-average-of-multiple-data-points/m-p/346008#M79703</guid>
      <dc:creator>larkjr18</dc:creator>
      <dc:date>2017-03-31T02:13:21Z</dc:date>
    </item>
  </channel>
</rss>

