<?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: Identification variable naming scheme: case-control study in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Identification-variable-naming-scheme-case-control-study/m-p/753571#M237537</link>
    <description>&lt;P&gt;Keep the data set long, not wide. You don't want separate variables here, you want separate records.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Beyond that, a more concrete explanation of the data, or showing us a portion of what the data set would look like, would be a great help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jul 2021 17:58:58 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2021-07-12T17:58:58Z</dc:date>
    <item>
      <title>Identification variable naming scheme: case-control study</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identification-variable-naming-scheme-case-control-study/m-p/753569#M237536</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working on a case-control study in which I need to create a survey ID variable for records. For every case in dataset1, I pull 3 controls randomly from a source dataset to create dataset2 (this is being done via proc survey select) resulting in a dataset of cases (dataset1) and a dataset of controls (dataset2). The survey ID variable naming scheme should be as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Case1&lt;/STRONG&gt;: 12345-1&lt;/P&gt;
&lt;P&gt;Control1: 12345-1-1&lt;/P&gt;
&lt;P&gt;Control2: 12345-1-2&lt;/P&gt;
&lt;P&gt;Control3: 12345-1-3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Case 2&lt;/STRONG&gt;: 12345-2&lt;/P&gt;
&lt;P&gt;Control1: 12345-2-1&lt;/P&gt;
&lt;P&gt;Control2: 12345-2-2&lt;/P&gt;
&lt;P&gt;Control3: 12345-2-3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This naming scheme can be applied to each dataset separately or can be applied to the combined dataset of all records. A key detail is that the controls are simply frequency matches and NOT paired matches. How would you all code this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 17:55:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identification-variable-naming-scheme-case-control-study/m-p/753569#M237536</guid>
      <dc:creator>mlensing</dc:creator>
      <dc:date>2021-07-12T17:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Identification variable naming scheme: case-control study</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Identification-variable-naming-scheme-case-control-study/m-p/753571#M237537</link>
      <description>&lt;P&gt;Keep the data set long, not wide. You don't want separate variables here, you want separate records.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Beyond that, a more concrete explanation of the data, or showing us a portion of what the data set would look like, would be a great help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 17:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Identification-variable-naming-scheme-case-control-study/m-p/753571#M237537</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-07-12T17:58:58Z</dc:date>
    </item>
  </channel>
</rss>

