<?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: Creating a new variable sum the percentage of total group in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/501498#M72678</link>
    <description>&lt;P&gt;A=95 B=85 C=75 D=70 F=65;&lt;BR /&gt;Finalgrades= 0.3*quiz+0.3*midterm+0.3*final;&lt;/P&gt;&lt;P&gt;Am i in the right track?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Oct 2018 14:19:02 GMT</pubDate>
    <dc:creator>weixxx</dc:creator>
    <dc:date>2018-10-04T14:19:02Z</dc:date>
    <item>
      <title>Creating a new variable sum the percentage of total group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/500609#M72620</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello guys! I&amp;nbsp;just start&amp;nbsp;teaching myself to use SAS&amp;nbsp;and sinceI have very little experience with programming languages. I would be&amp;nbsp;very appreciative of any help with this problem! like how to set the variable with&amp;nbsp;percentage of total observations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA school;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INPUT age quiz : $1. midterm final;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Add your code here */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATALINES;&lt;/P&gt;&lt;P&gt;12 A 92 95&lt;/P&gt;&lt;P&gt;12 B 88 88&lt;/P&gt;&lt;P&gt;13 C 78 75&lt;/P&gt;&lt;P&gt;13 A 92 93&lt;/P&gt;&lt;P&gt;12 F 55 62&lt;/P&gt;&lt;P&gt;13 B 88 82&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;The quiz grades have numerical equivalents as follows: A = 95, B = 85, C = 75, D = 70, and F = 65. Using this information, compute a new variable called &lt;STRONG&gt;course&lt;/STRONG&gt; that represents the final grade for each student.&amp;nbsp; The final grade is a weighted average of all grades where quiz grades are worth 30%, midterm grades are worth 30%, and final grades are worth 40%.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 02:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/500609#M72620</guid>
      <dc:creator>weixxx</dc:creator>
      <dc:date>2018-10-02T02:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new variable sum the percentage of total group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/500613#M72622</link>
      <description>&lt;P&gt;Here's a nudge in the right direction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add as many statements as you need, not just one.&amp;nbsp; (Some posters may show you how to do this in one statement, but that's not the right way to learn until you have more experience.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Start by creating a new variable, holding the numeric equivalent of the letter grade.&amp;nbsp; Then calculate the final grade using three numeric variables in your formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show what you have tried, if you need a further nudge.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 02:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/500613#M72622</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-10-02T02:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new variable sum the percentage of total group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/501323#M72668</link>
      <description>&lt;P&gt;Thanks for that! But i totally have no idea about how to set up those quiz and midterm with percentages. I know the sum statement tho.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 03:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/501323#M72668</guid>
      <dc:creator>weixxx</dc:creator>
      <dc:date>2018-10-04T03:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new variable sum the percentage of total group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/501452#M72675</link>
      <description>&lt;P&gt;You haven't shown what you tried already.&amp;nbsp; Where is your code that creates a numeric variable based on the letter grade?&amp;nbsp; Have you tested it and found it to be working?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 13:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/501452#M72675</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-10-04T13:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new variable sum the percentage of total group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/501498#M72678</link>
      <description>&lt;P&gt;A=95 B=85 C=75 D=70 F=65;&lt;BR /&gt;Finalgrades= 0.3*quiz+0.3*midterm+0.3*final;&lt;/P&gt;&lt;P&gt;Am i in the right track?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 14:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/501498#M72678</guid>
      <dc:creator>weixxx</dc:creator>
      <dc:date>2018-10-04T14:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a new variable sum the percentage of total group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/501505#M72679</link>
      <description>&lt;P&gt;You are further along than before.&amp;nbsp; But you need working code, and you need to be able to test that code. At this point, I see no evidence of any code that you could actually test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Start by creating a new variable named QUIZ_NUMERIC that takes on numeric values instead of "A", "B", "C", "D" and "F".&amp;nbsp; Whatever statements you use to do that, make them part of a DATA step that you can then run and see whether the results are coming out correctly.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 14:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Creating-a-new-variable-sum-the-percentage-of-total-group/m-p/501505#M72679</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-10-04T14:32:07Z</dc:date>
    </item>
  </channel>
</rss>

