<?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: Identifying outcome status with identification numbers in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151497#M39882</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;case = char(id,length(id)) = "X";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a datastep, where &lt;STRONG&gt;id&lt;/STRONG&gt; is your identifier. The value of &lt;STRONG&gt;case &lt;/STRONG&gt;will be 1 for cases and 0 for controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Mar 2014 02:15:27 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2014-03-21T02:15:27Z</dc:date>
    <item>
      <title>Identifying outcome status with identification numbers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151496#M39881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm working on a case control study and the cases and controls are identified using a letter at the end of the identification number. Some cases are matched 1:1 with controls and some are matched 1:2, or 1:3. A case/control pair may be identified as follows: GI111A, GI111B, GI111X with A and B denoting control status and X denoting case status. I want to perform analyses comparing cases and controls and therefore want to make a new variable "case status" defined by the ending letter. Is there a procedure I can use to scan the identification numbers and then identify cases and control, respectively? I haven't tried any code yet, I was just wondering if there was a quick and easy way to do this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 01:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151496#M39881</guid>
      <dc:creator>Mdormond</dc:creator>
      <dc:date>2014-03-21T01:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying outcome status with identification numbers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151497#M39882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;case = char(id,length(id)) = "X";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a datastep, where &lt;STRONG&gt;id&lt;/STRONG&gt; is your identifier. The value of &lt;STRONG&gt;case &lt;/STRONG&gt;will be 1 for cases and 0 for controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 02:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151497#M39882</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-03-21T02:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying outcome status with identification numbers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151498#M39883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would this create a new variable? Would I code it like creating a new variable? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 17:06:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151498#M39883</guid>
      <dc:creator>Mdormond</dc:creator>
      <dc:date>2014-03-21T17:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying outcome status with identification numbers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151499#M39884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the variable &lt;STRONG&gt;case&lt;/STRONG&gt; would be created by the statement.You would use that variable in your analysis/models.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 18:51:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151499#M39884</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-03-21T18:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying outcome status with identification numbers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151500#M39885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if all my preceding numbers are not the same length? I'm still confused on exactly how to code this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 19:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151500#M39885</guid>
      <dc:creator>Mdormond</dc:creator>
      <dc:date>2014-03-21T19:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying outcome status with identification numbers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151501#M39886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post the SAS code you are using now to prepare your data for analysis and we'll take it from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 19:24:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Identifying-outcome-status-with-identification-numbers/m-p/151501#M39886</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-03-21T19:24:47Z</dc:date>
    </item>
  </channel>
</rss>

