<?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: Calculate the average of X and Y by Group. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644352#M192452</link>
    <description>&lt;DIV&gt;&lt;FONT&gt;Hi&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;I have attached my program file below.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Thank you.&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 30 Apr 2020 18:43:30 GMT</pubDate>
    <dc:creator>sas1018</dc:creator>
    <dc:date>2020-04-30T18:43:30Z</dc:date>
    <item>
      <title>Calculate the average of X and Y by Group.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644141#M192359</link>
      <description>&lt;P&gt;hi I am new to sas preparing for certification.Can somebody help me with the below program:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create 3 groups for Cvar:A-G is group=1;H-N is group=2;o-z is group=3.&lt;/P&gt;&lt;P&gt;All variations of the variables should be in the same group i.e "A" or "a" should be in group=1.&lt;/P&gt;&lt;P&gt;Calculate the average of X and Y by group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is :Do i need to create new variables X and Y to calculate average?&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;SPAN style="box-sizing: border-box; font-size: 0.93rem;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 04:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644141#M192359</guid>
      <dc:creator>sas1018</dc:creator>
      <dc:date>2020-04-30T04:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the average of X and Y by Group.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644155#M192363</link>
      <description>&lt;P&gt;X and Y should already be present in your input dataset.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 06:15:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644155#M192363</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-30T06:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the average of X and Y by Group.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644252#M192417</link>
      <description>&lt;P&gt;Existing data.&lt;/P&gt;
&lt;P&gt;Show us what you have.&lt;/P&gt;
&lt;P&gt;Better would be to use a small example and then the desired result for the given example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the &amp;lt;&amp;gt; icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Groups" of values within a single variable can often be done with custom format applied to the variable in a reporting or summarizing procedure.&lt;/P&gt;
&lt;P&gt;Also, do you need a data set for output (for further analysis) or a report (people read these).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Details: does your CVAR only have one character or is it longer? Is the group based on a single variable or multiple (which is why we ask you to show an example of your data).&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 14:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644252#M192417</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-30T14:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the average of X and Y by Group.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644352#M192452</link>
      <description>&lt;DIV&gt;&lt;FONT&gt;Hi&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;I have attached my program file below.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Thank you.&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Apr 2020 18:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644352#M192452</guid>
      <dc:creator>sas1018</dc:creator>
      <dc:date>2020-04-30T18:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the average of X and Y by Group.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644376#M192457</link>
      <description>&lt;P&gt;Don't see any values or even variables X and Y in your program. Anywhere. So where are the values of X and Y supposed to come from. To be a "mean" there needs to be at least one numeric value to make sense of the question.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 19:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644376#M192457</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-04-30T19:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the average of X and Y by Group.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644456#M192486</link>
      <description>&lt;P&gt;You do not need to attach SAS programs as files. Copy/paste the code into a window opened with the "little running man".&lt;/P&gt;
&lt;P&gt;Also take a little time to read the articles in the "Welcome" section on how to post questions and how to get fast, helpful answers.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 05:46:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644456#M192486</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-01T05:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the average of X and Y by Group.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644589#M192559</link>
      <description>&lt;P&gt;Thank you. Got the solution with the X and Y variables.They were already in another dataset. I thought I need to create one.Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 19:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644589#M192559</guid>
      <dc:creator>sas1018</dc:creator>
      <dc:date>2020-05-01T19:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the average of X and Y by Group.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644590#M192560</link>
      <description>&lt;P&gt;Sure. From next time I will do that. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 19:13:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculate-the-average-of-X-and-Y-by-Group/m-p/644590#M192560</guid>
      <dc:creator>sas1018</dc:creator>
      <dc:date>2020-05-01T19:13:20Z</dc:date>
    </item>
  </channel>
</rss>

