<?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 Questions on matching controls to cases? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Questions-on-matching-controls-to-cases/m-p/663395#M198023</link>
    <description>&lt;DIV&gt;Dear SAS experts&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="Microsoft Sans Serif" color="#000000"&gt;&lt;SPAN&gt;For my matched case-control study, I’m preparing my data for a conditional logistic regression.&amp;nbsp; Using the matching variables, I’ve got a dataset containing the details for cohort (cases and controls identified). At this stage I know my cases and the controls. However, I do not know which controls were matched to which case. I need to make risk sets or strata so that I can perform conditional&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;logistic&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;regression.&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Each case and control have unique identifying variable, I want to identify the controls matched to each case. Could you please help me how I can link the cases to their matched controls and assign them a specific id for each? My matching ration is 1:3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looking forward to hearing from you.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 19 Jun 2020 06:31:36 GMT</pubDate>
    <dc:creator>gizat</dc:creator>
    <dc:date>2020-06-19T06:31:36Z</dc:date>
    <item>
      <title>Questions on matching controls to cases?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-on-matching-controls-to-cases/m-p/663395#M198023</link>
      <description>&lt;DIV&gt;Dear SAS experts&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;FONT face="Microsoft Sans Serif" color="#000000"&gt;&lt;SPAN&gt;For my matched case-control study, I’m preparing my data for a conditional logistic regression.&amp;nbsp; Using the matching variables, I’ve got a dataset containing the details for cohort (cases and controls identified). At this stage I know my cases and the controls. However, I do not know which controls were matched to which case. I need to make risk sets or strata so that I can perform conditional&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;logistic&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;regression.&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Each case and control have unique identifying variable, I want to identify the controls matched to each case. Could you please help me how I can link the cases to their matched controls and assign them a specific id for each? My matching ration is 1:3.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Looking forward to hearing from you.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Jun 2020 06:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-on-matching-controls-to-cases/m-p/663395#M198023</guid>
      <dc:creator>gizat</dc:creator>
      <dc:date>2020-06-19T06:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Questions on matching controls to cases?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-on-matching-controls-to-cases/m-p/663485#M198065</link>
      <description>Do you know if  the match variables overlap between cases. If not you can use the following logic. Group is the variable that has case or control values.&lt;BR /&gt;Proc sort data= have; by match1 match2 match3 group&lt;BR /&gt;Data want;&lt;BR /&gt;Set have;&lt;BR /&gt;By match1 match2 match3;&lt;BR /&gt;Retain caseno 0;&lt;BR /&gt;If first.match1 then caseno=caseno+1;&lt;BR /&gt;Run;&lt;BR /&gt;This works well only if match1 match2 and match3 are all discrete values and matches are exact. If you are doing a match on ranges you can split your have dataset into two datasets one containing all the records of cases only, and the other containing all records. Then do a sql join on both datasets.</description>
      <pubDate>Fri, 19 Jun 2020 13:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-on-matching-controls-to-cases/m-p/663485#M198065</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-06-19T13:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Questions on matching controls to cases?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Questions-on-matching-controls-to-cases/m-p/664100#M198360</link>
      <description>&lt;P&gt;Hi Smantha,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, they do. I've three matching variables; age (+-2 years), gender (match same gender) and year of hospital admission (+-2 years). What I want is to choose three controls for per case among possible controls and want to identify the controls matched to each case.&amp;nbsp;&lt;/P&gt;&lt;P&gt;More help is appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 00:03:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Questions-on-matching-controls-to-cases/m-p/664100#M198360</guid>
      <dc:creator>gizat</dc:creator>
      <dc:date>2020-06-23T00:03:50Z</dc:date>
    </item>
  </channel>
</rss>

