<?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 selecting a cohort of matched controls in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/selecting-a-cohort-of-matched-controls/m-p/2397#M175</link>
    <description>I have a dataset of cases (N=681) and I am trying to select a 1:2 cohort of matched controls from a dataset of ~20,000 eligible patients. &lt;BR /&gt;
&lt;BR /&gt;
Both datasets contain the variables:&lt;BR /&gt;
patient_id&lt;BR /&gt;
surgery_date&lt;BR /&gt;
age&lt;BR /&gt;
&lt;BR /&gt;
I first want to match based on surgery date, selecting all eligible controls who had a surgery within 30 days (plus or minus) from the date each case had surgery. &lt;BR /&gt;
&lt;BR /&gt;
Then, among those patients with a matched surgery date, I would like to select the two patients who were closest in age to the case (plus or minus) to serve as its controls. If there are multiple patients equally close in age to the case, I would like to use simple random sampling to select the controls from among them. &lt;BR /&gt;
&lt;BR /&gt;
No control should be selected more than once; so although a patient may be eligible to serve as a control for more than one case, once a patient is selected as a control they need to be removed from the pool of eligible controls. &lt;BR /&gt;
&lt;BR /&gt;
Can anyone help me write the syntax to select this matched cohort? I'm having quite a hard time figuring it out!!&lt;BR /&gt;
&lt;BR /&gt;
Thanks so much!</description>
    <pubDate>Wed, 28 Feb 2007 18:21:09 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-02-28T18:21:09Z</dc:date>
    <item>
      <title>selecting a cohort of matched controls</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/selecting-a-cohort-of-matched-controls/m-p/2397#M175</link>
      <description>I have a dataset of cases (N=681) and I am trying to select a 1:2 cohort of matched controls from a dataset of ~20,000 eligible patients. &lt;BR /&gt;
&lt;BR /&gt;
Both datasets contain the variables:&lt;BR /&gt;
patient_id&lt;BR /&gt;
surgery_date&lt;BR /&gt;
age&lt;BR /&gt;
&lt;BR /&gt;
I first want to match based on surgery date, selecting all eligible controls who had a surgery within 30 days (plus or minus) from the date each case had surgery. &lt;BR /&gt;
&lt;BR /&gt;
Then, among those patients with a matched surgery date, I would like to select the two patients who were closest in age to the case (plus or minus) to serve as its controls. If there are multiple patients equally close in age to the case, I would like to use simple random sampling to select the controls from among them. &lt;BR /&gt;
&lt;BR /&gt;
No control should be selected more than once; so although a patient may be eligible to serve as a control for more than one case, once a patient is selected as a control they need to be removed from the pool of eligible controls. &lt;BR /&gt;
&lt;BR /&gt;
Can anyone help me write the syntax to select this matched cohort? I'm having quite a hard time figuring it out!!&lt;BR /&gt;
&lt;BR /&gt;
Thanks so much!</description>
      <pubDate>Wed, 28 Feb 2007 18:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/selecting-a-cohort-of-matched-controls/m-p/2397#M175</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-02-28T18:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: selecting a cohort of matched controls</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/selecting-a-cohort-of-matched-controls/m-p/2398#M176</link>
      <description>Perhaps these articles from SUGI will help&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi30/152-30.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi30/152-30.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi29/173-29.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi29/173-29.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
(BTW, I just googled &lt;BR /&gt;
+sas select matched controls&lt;BR /&gt;
to get an extensive list of approaches.)&lt;BR /&gt;
&lt;BR /&gt;
I generally attack these "fuzzy matches" with PROC SQL.  The "between" operator and "min" function make it pretty straightforward, though it does require a bit of fiddling.&lt;BR /&gt;
&lt;BR /&gt;
Unless you need to do subsequent chart abstraction, using a 1:many match will increase your power without any increase in work.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
      <pubDate>Sat, 03 Mar 2007 02:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/selecting-a-cohort-of-matched-controls/m-p/2398#M176</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2007-03-03T02:44:53Z</dc:date>
    </item>
  </channel>
</rss>

