<?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 groups based on the range of values and making graph in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Creating-groups-based-on-the-range-of-values-and-making-graph/m-p/818266#M34618</link>
    <description>&lt;P&gt;What have you done so far?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide example data in usable form (data step(s) with datalines). We cannot use pictures for developing and testing.&lt;/P&gt;
&lt;P&gt;Post your data step code into a window opened with the "little running man" button.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 09:56:58 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-06-15T09:56:58Z</dc:date>
    <item>
      <title>Creating groups based on the range of values and making graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-groups-based-on-the-range-of-values-and-making-graph/m-p/818259#M34617</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 5-set data (2015-2019), and I need to make it into long data set. I made it (combined) and then I list the happiness ranks and happiness scores for Australia and the countries that were in the top 5 or the bottom 5 in 2019.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Australia:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Uddin_3-1655278657597.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72292iF60F063B33EFB6BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Uddin_3-1655278657597.png" alt="Uddin_3-1655278657597.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Top 5:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Uddin_4-1655278699057.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72293iF029A390A5AA12B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Uddin_4-1655278699057.png" alt="Uddin_4-1655278699057.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Bottom 5:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Uddin_5-1655278730120.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72294iB91F9A95B5F3785F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Uddin_5-1655278730120.png" alt="Uddin_5-1655278730120.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now I want to create graphs for the change in happiness index over time for the two groupings identified in above: the top 5 plus Australia and then the bottom 5. &amp;nbsp;In addition to this, I want to show all 11countries on the same graph.&lt;/P&gt;&lt;P&gt;Looking for your kind response.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 07:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-groups-based-on-the-range-of-values-and-making-graph/m-p/818259#M34617</guid>
      <dc:creator>Uddin</dc:creator>
      <dc:date>2022-06-15T07:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating groups based on the range of values and making graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-groups-based-on-the-range-of-values-and-making-graph/m-p/818266#M34618</link>
      <description>&lt;P&gt;What have you done so far?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide example data in usable form (data step(s) with datalines). We cannot use pictures for developing and testing.&lt;/P&gt;
&lt;P&gt;Post your data step code into a window opened with the "little running man" button.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 09:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-groups-based-on-the-range-of-values-and-making-graph/m-p/818266#M34618</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-15T09:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating groups based on the range of values and making graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-groups-based-on-the-range-of-values-and-making-graph/m-p/818407#M34640</link>
      <description>&lt;P&gt;Here is the data:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Top Country:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country, Happiness_rank, Happiness_score, Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Finland, 1, 7.769, 2019&lt;/P&gt;&lt;P&gt;Denmark, 2, 7.6, 2019&lt;/P&gt;&lt;P&gt;Norway, 3, 7.554, 2019&lt;/P&gt;&lt;P&gt;Iceland, 4, 7.494, 2019&lt;/P&gt;&lt;P&gt;Netherlands, 5, 7.488, 2019&lt;/P&gt;&lt;P&gt;Finland, 2, 7.369, 2018&lt;/P&gt;&lt;P&gt;Denmark, 3, 7.4, 2018&lt;/P&gt;&lt;P&gt;Norway, 1, 7.254, 2018&lt;/P&gt;&lt;P&gt;Iceland, 6, 7.394, 2018&lt;/P&gt;&lt;P&gt;Netherlands, 5, 7.188, 2018&lt;/P&gt;&lt;P&gt;Finland, 1, 7.369, 2017&lt;/P&gt;&lt;P&gt;Denmark, 4, 7.4, 2017&lt;/P&gt;&lt;P&gt;Norway, 1, 7.254, 2017&lt;/P&gt;&lt;P&gt;Iceland, 3, 7.394, 2017&lt;/P&gt;&lt;P&gt;Netherlands, 5, 7.188, 2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Bottom 5:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country, Happiness_rank, Happiness_score, Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;South Sudan, 156, 2.853, 2019&lt;/P&gt;&lt;P&gt;Central Africa, 155, 3.083, 2019&lt;/P&gt;&lt;P&gt;Afghanistan, 154, 3.203, 2019&lt;/P&gt;&lt;P&gt;Tanzania, 153, 3.231, 2019&lt;/P&gt;&lt;P&gt;Rwanda, 152, 3.334, 2019&lt;/P&gt;&lt;P&gt;South Sudan, 156, 2.653, 2018&lt;/P&gt;&lt;P&gt;Central Africa, 155, 3.183, 2018&lt;/P&gt;&lt;P&gt;Afghanistan, 154, 3.223, 2018&lt;/P&gt;&lt;P&gt;Tanzania, 153, 3.261, 2018&lt;/P&gt;&lt;P&gt;Rwanda, 152, 3.364, 2018&lt;/P&gt;&lt;P&gt;South Sudan, 156, 2.753, 2017&lt;/P&gt;&lt;P&gt;Central Africa, 155, 3.183, 2017&lt;/P&gt;&lt;P&gt;Afghanistan, 154, 3.293, 2017&lt;/P&gt;&lt;P&gt;Tanzania, 153, 3.331, 2017&lt;/P&gt;&lt;P&gt;Rwanda, 152, 3.344, 2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Australia&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country, Happiness_rank, Happiness_score, Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Australia, 11, 7.228, 2019&lt;/P&gt;&lt;P&gt;Australia, 10, 7.128, 2018&lt;/P&gt;&lt;P&gt;Australia, 12, 7.628, 2017&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data have;
set combined;
if Happiness_score &amp;lt;=7.488 then group=top;
else if Happiness_score &amp;gt;=3.334 then group=bottom;
else group=Australia;
run;
title 'Changes in happiness score by group (top and bottom) over time including Australia';
proc sgplot data=combined;
series x=year y=Happiness_score /group = Hapiness_score;
yaxis grid minor minorgrid min=0;
xaxis label='Year';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Looking for your kind response&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 16:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-groups-based-on-the-range-of-values-and-making-graph/m-p/818407#M34640</guid>
      <dc:creator>Uddin</dc:creator>
      <dc:date>2022-06-15T16:54:51Z</dc:date>
    </item>
  </channel>
</rss>

