<?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: Adding first two observations in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573864#M162079</link>
    <description>&lt;P&gt;the easiest way might be to create a format that combines those two values.&amp;nbsp; Assuming the values are numbers then the format definition might look like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
value edu_combo
  1,2 = '1 or 2'
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then just use that format with your PROC .&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=mydata ;
  tables edu_lvl;
  format edu_lvl edu_combo.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Jul 2019 14:52:07 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-07-16T14:52:07Z</dc:date>
    <item>
      <title>Adding first two observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573859#M162074</link>
      <description>&lt;DIV class="branch"&gt;&lt;DIV align="center"&gt;edu_lvl Frequency Percent CumulativeFrequency CumulativePercent123456 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt;0.26&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt;0.26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;655&lt;/TD&gt;&lt;TD&gt;10.80&lt;/TD&gt;&lt;TD&gt;671&lt;/TD&gt;&lt;TD&gt;11.06&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;182&lt;/TD&gt;&lt;TD&gt;3.00&lt;/TD&gt;&lt;TD&gt;853&lt;/TD&gt;&lt;TD&gt;14.06&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;573&lt;/TD&gt;&lt;TD&gt;9.45&lt;/TD&gt;&lt;TD&gt;1426&lt;/TD&gt;&lt;TD&gt;23.51&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2254&lt;/TD&gt;&lt;TD&gt;37.16&lt;/TD&gt;&lt;TD&gt;3680&lt;/TD&gt;&lt;TD&gt;60.68&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2385&lt;/TD&gt;&lt;TD&gt;39.32&lt;/TD&gt;&lt;TD&gt;6065&lt;/TD&gt;&lt;TD&gt;100.00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My variable name is education level. Considering low responses I want to add levels '1' and '2' together. help, please.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573859#M162074</guid>
      <dc:creator>vijay24</dc:creator>
      <dc:date>2019-07-16T14:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding first two observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573861#M162076</link>
      <description>&lt;P&gt;Something messed up. obs 1&amp;nbsp; = 16 and obs 2 = 655. I want to combine them into one observation.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:48:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573861#M162076</guid>
      <dc:creator>vijay24</dc:creator>
      <dc:date>2019-07-16T14:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding first two observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573862#M162077</link>
      <description>&lt;P&gt;So given this data, what does your desired result look like?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:49:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573862#M162077</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-07-16T14:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Adding first two observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573863#M162078</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/246838"&gt;@vijay24&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Considering low responses I want to add levels '1' and '2' together.&amp;nbsp;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I don't understand this sentence.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show us the results you want from this data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, it is best if you provide the data in a readable form, prefereably as a SAS data step, instructions are here:&amp;nbsp;&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;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573863#M162078</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-16T14:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding first two observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573864#M162079</link>
      <description>&lt;P&gt;the easiest way might be to create a format that combines those two values.&amp;nbsp; Assuming the values are numbers then the format definition might look like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
value edu_combo
  1,2 = '1 or 2'
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then just use that format with your PROC .&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=mydata ;
  tables edu_lvl;
  format edu_lvl edu_combo.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:52:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573864#M162079</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-16T14:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding first two observations</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573868#M162082</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp; Thank you so much. This worked perfectly fine.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Adding-first-two-observations/m-p/573868#M162082</guid>
      <dc:creator>vijay24</dc:creator>
      <dc:date>2019-07-16T14:55:27Z</dc:date>
    </item>
  </channel>
</rss>

