<?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: Not able to understand the question.Need help in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476383#M122600</link>
    <description>1. What part of the don't you understand?&lt;BR /&gt;2. Class specific questions are best answered in your class, not here.</description>
    <pubDate>Mon, 09 Jul 2018 08:44:24 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2018-07-09T08:44:24Z</dc:date>
    <item>
      <title>Need help creating indicator variable (learning SAS)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476352#M122584</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to SAS and have just started by learning journey. I am not able to understand the below question I am given in my class.&lt;/P&gt;
&lt;P&gt;Can someone please explain me and also guide me what is to be done in this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data to be used is Sashelp. Demographics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;STRONG&gt;Create an indicator for adult literacy rate percentage with cutoff points at 90% and 50%. Then create a table report to show total population, average population annual growth rate percentage and average population in urban areas percentage for each region and your indicator level"&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 12:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476352#M122584</guid>
      <dc:creator>Jay23</dc:creator>
      <dc:date>2018-07-10T12:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to understand the question.Need help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476361#M122590</link>
      <description>&lt;P&gt;What have you tried so far?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 06:12:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476361#M122590</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-09T06:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to understand the question.Need help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476383#M122600</link>
      <description>1. What part of the don't you understand?&lt;BR /&gt;2. Class specific questions are best answered in your class, not here.</description>
      <pubDate>Mon, 09 Jul 2018 08:44:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476383#M122600</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-07-09T08:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to understand the question.Need help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476401#M122603</link>
      <description>Thank you</description>
      <pubDate>Mon, 09 Jul 2018 11:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476401#M122603</guid>
      <dc:creator>Jay23</dc:creator>
      <dc:date>2018-07-09T11:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to understand the question.Need help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476402#M122604</link>
      <description>For your encouragement</description>
      <pubDate>Mon, 09 Jul 2018 11:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476402#M122604</guid>
      <dc:creator>Jay23</dc:creator>
      <dc:date>2018-07-09T11:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to understand the question.Need help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476436#M122614</link>
      <description>&lt;P&gt;Welcome to SAS. As others have said, it is always a good idea to work with classmates and teachers because they will help you to relate the assignment to&amp;nbsp;topics you have covered in the course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The part that is probably stumping you is "how do I create an indicator variable." Recall that an indicator variable is a categorical variable. You can show the levels to be numeric (., 1, 2, 3) or character (" ", "Low", "Medium", "High").&amp;nbsp; The following code gives you a hint on one way to&amp;nbsp;create an indicator variable for these data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Want;
length LiteracyIndicator $6;
set Sashelp.Demographics;
if AdultLiteracypct = . then 
   LiteracyIndicator = " ";
else if 0 &amp;lt;= AdultLiteracypct &amp;lt; 0.5 then 
   LiteracyIndicator  = "Low";
else if 0.5 &amp;lt;= AdultLiteracypct &amp;lt; 0.9 then 
   LiteracyIndicator = "Medium";
else 
   LiteracyIndicator = "High";
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now that you have an indicator variable, how can you create the report? I let you ponder that question!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Incidentally, this problem can be solved without explicitly&amp;nbsp;creating an indicator variable by using a concept known as "SAS formats."&amp;nbsp; Ask your teacher about them!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 13:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476436#M122614</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-07-09T13:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to understand the question.Need help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476630#M122676</link>
      <description>&lt;P&gt;Many Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 22:45:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-creating-indicator-variable-learning-SAS/m-p/476630#M122676</guid>
      <dc:creator>Jay23</dc:creator>
      <dc:date>2018-07-09T22:45:57Z</dc:date>
    </item>
  </channel>
</rss>

