<?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: generate a new variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/generate-a-new-variable/m-p/264843#M52007</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please simplify your your code to only the relevant sections.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is your third question in the assignment so your basically asking each one at a time. Please attempt them first otherwise you won't learn anything. &amp;nbsp;Many people are more than happy to help but to get the most out of your course you should try and learn it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need learning resources - Google SAS UCLA Intro or see SAS Analytics U community forum for free training from SAS including ecourses and YouTube tutorials.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of your assignment require if then statements.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this page on how they work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://sphweb.bumc.bu.edu/otlt/MPH-Modules/BS/SAS/SAS-Basics1/SAS-Basics16.html" target="_blank"&gt;http://sphweb.bumc.bu.edu/otlt/MPH-Modules/BS/SAS/SAS-Basics1/SAS-Basics16.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2016 17:15:00 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-04-19T17:15:00Z</dc:date>
    <item>
      <title>generate a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/generate-a-new-variable/m-p/264836#M52002</link>
      <description>&lt;P&gt;Hello. I need help with an assignment that I am working on. The instructions are as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Instructions:&lt;/P&gt;&lt;P&gt;Extract and download CPS data from IPUMS site onto your computer&lt;/P&gt;&lt;P&gt;&lt;A href="https://cps.ipums.org/cps-action/variables/group" target="_blank"&gt;https://cps.ipums.org/cps-action/variables/group&lt;/A&gt;&lt;/P&gt;&lt;P&gt;save the data file as SAS data set.&lt;/P&gt;&lt;P&gt;You will need to choose the following variables to include in your extract:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Person Record&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&amp;nbsp;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Core Demographic Variables&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AGE &lt;/STRONG&gt;Age&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SEX &lt;/STRONG&gt;Gender&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RACE&lt;/STRONG&gt; Race&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MARST&lt;/STRONG&gt; Marital status&lt;/P&gt;&lt;P&gt;&lt;U&gt;Ethnicity/Nativity Variables&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;NATIVITY&lt;/STRONG&gt; Foreign birthplace or parentage&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HISPAN&lt;/STRONG&gt; Hispanic origin&lt;/P&gt;&lt;P&gt;&lt;U&gt;Education Variables&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EDUC99&lt;/STRONG&gt; Educational attainment, 1990 categories&lt;/P&gt;&lt;P&gt;&lt;U&gt;Work Variables&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WKSWORK1&lt;/STRONG&gt; Weeks worked last year&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UHRSWORK &lt;/STRONG&gt;Usual hours worked per week last year&lt;BR /&gt;&lt;STRONG&gt;UNION&lt;/STRONG&gt; Union status&lt;BR /&gt;&lt;STRONG&gt;PTWEEKS &lt;/STRONG&gt;Weeks working part time last year&lt;/P&gt;&lt;P&gt;&lt;U&gt;Income Variables&lt;BR /&gt;&lt;/U&gt;&lt;STRONG&gt;INCWAGE&lt;/STRONG&gt; Wage and salary income&lt;/P&gt;&lt;P&gt;&amp;nbsp;Process the CPS raw data using SAS to get it ready to analyze statistically. The following data processing steps are necessary before going on to step 3:&lt;/P&gt;&lt;P&gt;Drop observations for all non-wage earners.&lt;/P&gt;&lt;P&gt;Generate a new variable for the natural log of earnings from INCWAGE variable.&lt;/P&gt;&lt;P&gt;Generate a new variable for years of education using EDUC99 variable.&lt;/P&gt;&lt;P&gt;Generate a new variable for experience using AGE and EDUC99 variables.&lt;/P&gt;&lt;P&gt;Generate dummy variables for each of the following categories:&lt;/P&gt;&lt;P&gt;1) Gender&lt;/P&gt;&lt;P&gt;2) Race/Ethnicity&lt;/P&gt;&lt;P&gt;3) Nativity&lt;/P&gt;&lt;P&gt;4) Marital Status&lt;/P&gt;&lt;P&gt;5) Union Status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help with the question that says "generate a new variable for experience using AGE and EDUC99 variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached in a word document that SAS code that I have so far (which also defines all the variables).&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 16:49:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/generate-a-new-variable/m-p/264836#M52002</guid>
      <dc:creator>graingerad12</dc:creator>
      <dc:date>2016-04-19T16:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: generate a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/generate-a-new-variable/m-p/264839#M52004</link>
      <description>&lt;P&gt;The techniques are exactly the same a mentioned in reponses to your other post. The "difference" is the assignment involves an "AND" condition:&lt;/P&gt;
&lt;P&gt;In a datastep something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If age le 12 and EDUC99 = &amp;lt;somevalue&amp;gt; then Experience = &amp;lt;what ever you want to assign&amp;gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ranges considered and assigned should be part of the coursework involved.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 16:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/generate-a-new-variable/m-p/264839#M52004</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-19T16:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: generate a new variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/generate-a-new-variable/m-p/264843#M52007</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please simplify your your code to only the relevant sections.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is your third question in the assignment so your basically asking each one at a time. Please attempt them first otherwise you won't learn anything. &amp;nbsp;Many people are more than happy to help but to get the most out of your course you should try and learn it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need learning resources - Google SAS UCLA Intro or see SAS Analytics U community forum for free training from SAS including ecourses and YouTube tutorials.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of your assignment require if then statements.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this page on how they work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://sphweb.bumc.bu.edu/otlt/MPH-Modules/BS/SAS/SAS-Basics1/SAS-Basics16.html" target="_blank"&gt;http://sphweb.bumc.bu.edu/otlt/MPH-Modules/BS/SAS/SAS-Basics1/SAS-Basics16.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2016 17:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/generate-a-new-variable/m-p/264843#M52007</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-19T17:15:00Z</dc:date>
    </item>
  </channel>
</rss>

