<?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: Changing Observation Categories from 4 to 2 in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536581#M6637</link>
    <description>&lt;P&gt;I think so? again, this is all very new (again) to me.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 21:08:35 GMT</pubDate>
    <dc:creator>sasnewbie85</dc:creator>
    <dc:date>2019-02-18T21:08:35Z</dc:date>
    <item>
      <title>Changing Observation Categories from 4 to 2</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536579#M6635</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently restarted up my MPH after a long hiatus, and my SAS brain has completely atrophied!&amp;nbsp; I am working on what should be a very easy procedure, however, I can't seem to get the syntax right.&lt;BR /&gt;&lt;BR /&gt;I have four categories of tobacco consumption, coded 1 2 3 and 4.&amp;nbsp; I want to have 2 categories, low and high, with the first two (1 and 2) being low and the second 2 (3 and 4) being high.&amp;nbsp; I need to do this to calculate measures of association between use and obesity.&amp;nbsp; I was able to do this easily with the two category variable of case or control.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 21:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536579#M6635</guid>
      <dc:creator>sasnewbie85</dc:creator>
      <dc:date>2019-02-18T21:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Observation Categories from 4 to 2</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536580#M6636</link>
      <description>&lt;P&gt;Are you by chance asking how to write the syntax for proc format?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 21:06:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536580#M6636</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-18T21:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Observation Categories from 4 to 2</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536581#M6637</link>
      <description>&lt;P&gt;I think so? again, this is all very new (again) to me.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 21:08:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536581#M6637</guid>
      <dc:creator>sasnewbie85</dc:creator>
      <dc:date>2019-02-18T21:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Observation Categories from 4 to 2</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536583#M6638</link>
      <description>&lt;P&gt;hmm&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is this what you are asking&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
  proc format;
     value frmt 1,2   = 'Low'
                3,4   = 'High';

  run;

  data test;
  do i=1 to 4;
  output;
  end;
  format i frmt.;
  run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;want=put(i,frmt.);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  do i=1 to 4;
  want=put(i,frmt.);
  output;
  end;
  run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 21:13:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536583#M6638</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-18T21:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Observation Categories from 4 to 2</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536608#M6640</link>
      <description>&lt;P&gt;I will get back to you tomorrow morning when I am back at it...thank you so much for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 22:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536608#M6640</guid>
      <dc:creator>sasnewbie85</dc:creator>
      <dc:date>2019-02-18T22:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Observation Categories from 4 to 2</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536833#M6672</link>
      <description>&lt;P&gt;I'm actually not worried about the format, but the observations.&amp;nbsp; I want them grouped by level of tobacco use.&amp;nbsp; I have four categories now, and I want two, high and low.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This below yields the tables and statistics I want but with four categories of tobacco use instead of 2, because that is how they are organized.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data = work.hw2;&lt;BR /&gt;run;&lt;BR /&gt;proc freq data = hw2;&lt;BR /&gt;tables Tob * Case/ measures;&lt;BR /&gt;title;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 17:28:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536833#M6672</guid>
      <dc:creator>sasnewbie85</dc:creator>
      <dc:date>2019-02-19T17:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Observation Categories from 4 to 2</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536834#M6673</link>
      <description>&lt;P&gt;Without knowing the data, it's very difficult to imagine. It would help if you could post a sample of your data(a few records) alongside explaining your requirement i.e what you want to accomplish based on the sample. An output sample would make it convenient&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 17:32:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Changing-Observation-Categories-from-4-to-2/m-p/536834#M6673</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-02-19T17:32:17Z</dc:date>
    </item>
  </channel>
</rss>

