<?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: Creating Matched Pairs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462879#M117875</link>
    <description>&lt;P&gt;Then you want this most likely.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/sas/faq/how-can-i-create-an-enumeration-variable-by-groups/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/faq/how-can-i-create-an-enumeration-variable-by-groups/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 May 2018 21:54:32 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-05-16T21:54:32Z</dc:date>
    <item>
      <title>Creating Matched Pairs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462732#M117845</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a dataset where I match subjects by age (+/- 1 yr), gender, and county. I would want the final dataset to have individual observations for each subject, with an additional matched ID variable that identifies each group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I go about it??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I do it using SQL, I end up with one observation with all the ids of everyone that has been matched.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table matches_age as&lt;BR /&gt;select&lt;BR /&gt;a.id as v_id,&lt;BR /&gt;b.id as nv_id,&lt;BR /&gt;a.birth_yr as v_birth_yr,&lt;BR /&gt;b.birth_yr as nv_birth_yr,&lt;BR /&gt;a.county_2013 as v_county_2013,&lt;BR /&gt;b.county_2013 as nv_county_2013,&lt;BR /&gt;a.gender_cd as v_gender_cd,&lt;BR /&gt;b.gender_cd as nv_gender_cd,&lt;BR /&gt;b.rand_num as rand_num&lt;BR /&gt;from v a, nv2 b&lt;BR /&gt;where ((a.birth_yr between b.birth_yr_high and b.birth_yr_low)&lt;BR /&gt;and a.county_2013=b.county_2013 and a.gender_cd=b.gender_cd);&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 15:03:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462732#M117845</guid>
      <dc:creator>lalaktgrau</dc:creator>
      <dc:date>2018-05-16T15:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Matched Pairs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462738#M117846</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try the DQMATCH proc?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=dqclref&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n1xjvmh658gp9mn1rl9gnof37183.htm&amp;amp;locale=en" target="_blank"&gt;http://go.documentation.sas.com/?docsetId=dqclref&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n1xjvmh658gp9mn1rl9gnof37183.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Audrey&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 15:10:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462738#M117846</guid>
      <dc:creator>audrey</dc:creator>
      <dc:date>2018-05-16T15:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Matched Pairs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462744#M117847</link>
      <description>&lt;P&gt;From what I'm reading, it seems like it's used to identify multiple observations of the same subject. I would want to match cases and controls with similar characteristics and assign each group of cases/controls a unique value.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 15:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462744#M117847</guid>
      <dc:creator>lalaktgrau</dc:creator>
      <dc:date>2018-05-16T15:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Matched Pairs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462751#M117848</link>
      <description>&lt;P&gt;What version of SAS do you have?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC PSMATCH is for probabilistic linkages and/or the Mayo Clinic matching macros?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC PSMATCH&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/rnd/app/stat/procedures/psmatch.html" target="_blank"&gt;https://support.sas.com/rnd/app/stat/procedures/psmatch.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mayo Clinic macros&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.mayo.edu/research/departments-divisions/department-health-sciences-research/division-biomedical-statistics-informatics/software/locally-written-sas-macros" target="_blank"&gt;http://www.mayo.edu/research/departments-divisions/department-health-sciences-research/division-biomedical-statistics-informatics/software/locally-written-sas-macros&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 15:37:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462751#M117848</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-16T15:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Matched Pairs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462874#M117874</link>
      <description>&lt;P&gt;I have SAS 9.4 TS Level 1M2 X64_7PRO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't want to do propensity score as in PSMATCH.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to select observations that have the same birth_yr, gender, and county and assign a unique number to it.&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 21:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462874#M117874</guid>
      <dc:creator>lalaktgrau</dc:creator>
      <dc:date>2018-05-16T21:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Matched Pairs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462879#M117875</link>
      <description>&lt;P&gt;Then you want this most likely.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stats.idre.ucla.edu/sas/faq/how-can-i-create-an-enumeration-variable-by-groups/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/faq/how-can-i-create-an-enumeration-variable-by-groups/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 21:54:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Matched-Pairs/m-p/462879#M117875</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-16T21:54:32Z</dc:date>
    </item>
  </channel>
</rss>

