<?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 Creating a unique matching variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-unique-matching-variable/m-p/387578#M92931</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to merge Data A&amp;nbsp;(approx 90,000&amp;nbsp;obs and 50 variables)&amp;nbsp;and Data B (approx&amp;nbsp;600 obs and 20 variables)&amp;nbsp;and&amp;nbsp;my&amp;nbsp;merged dataset should have everyone from Data B. &amp;nbsp;There is no unique var that&amp;nbsp;links the two datasets so I&amp;nbsp;am trying to create one.&amp;nbsp;Theoretically, everyone in Data B should be in Data A.&amp;nbsp;The outcome of interest is in Data B (outcome=0 or 1) and most of the info I need for my analysis are in Data A. I've tried&amp;nbsp;to create&amp;nbsp;a unique var using different combinations, but cannot seem to get it right the way I want. For instance, I've tried something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;firsttname x lastname x 1st line of address x dob (txt): Too conservative as some of the obs in Data A&amp;nbsp;had first name as 'man' or 'resident' instead of the actual names.&amp;nbsp;Last name seems like a good var to use as they were relatively&amp;nbsp;consistent in both datasets. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lastname x dob (txt): This returned some incorrect matching because the merged dataset had more than 700 records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am curious if there are any good ways to get this right. The sample size is relatively small so if nothing works I could probably go through them manually, say use the second combo then&amp;nbsp;try to&amp;nbsp;find&amp;nbsp;the ones that do not actually match the records in Data B. Does anybody has any suggestions or tips on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 12 Aug 2017 17:13:18 GMT</pubDate>
    <dc:creator>Kiko</dc:creator>
    <dc:date>2017-08-12T17:13:18Z</dc:date>
    <item>
      <title>Creating a unique matching variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-unique-matching-variable/m-p/387578#M92931</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to merge Data A&amp;nbsp;(approx 90,000&amp;nbsp;obs and 50 variables)&amp;nbsp;and Data B (approx&amp;nbsp;600 obs and 20 variables)&amp;nbsp;and&amp;nbsp;my&amp;nbsp;merged dataset should have everyone from Data B. &amp;nbsp;There is no unique var that&amp;nbsp;links the two datasets so I&amp;nbsp;am trying to create one.&amp;nbsp;Theoretically, everyone in Data B should be in Data A.&amp;nbsp;The outcome of interest is in Data B (outcome=0 or 1) and most of the info I need for my analysis are in Data A. I've tried&amp;nbsp;to create&amp;nbsp;a unique var using different combinations, but cannot seem to get it right the way I want. For instance, I've tried something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;firsttname x lastname x 1st line of address x dob (txt): Too conservative as some of the obs in Data A&amp;nbsp;had first name as 'man' or 'resident' instead of the actual names.&amp;nbsp;Last name seems like a good var to use as they were relatively&amp;nbsp;consistent in both datasets. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lastname x dob (txt): This returned some incorrect matching because the merged dataset had more than 700 records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am curious if there are any good ways to get this right. The sample size is relatively small so if nothing works I could probably go through them manually, say use the second combo then&amp;nbsp;try to&amp;nbsp;find&amp;nbsp;the ones that do not actually match the records in Data B. Does anybody has any suggestions or tips on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 17:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-unique-matching-variable/m-p/387578#M92931</guid>
      <dc:creator>Kiko</dc:creator>
      <dc:date>2017-08-12T17:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a unique matching variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-unique-matching-variable/m-p/387580#M92932</link>
      <description>&lt;P&gt;You haven't given any information about the variables in the two datasets.&lt;/P&gt;
&lt;P&gt;In such case, where there are no common variables, probably there are some common information that&lt;/P&gt;
&lt;P&gt;within some decoding can help or give hints how to match observations of the two datasets.&lt;/P&gt;
&lt;P&gt;You mentioned firstname, lastname, address - how is this data presented in&amp;nbsp;variables in each dataset?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It may help if you subset manually few (up to 10) observations from each datset, where some of them&lt;/P&gt;
&lt;P&gt;can match manually, and mark them for test and check.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 17:44:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-unique-matching-variable/m-p/387580#M92932</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-08-12T17:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a unique matching variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-a-unique-matching-variable/m-p/387599#M92934</link>
      <description>&lt;P&gt;I would start by matching using the most reliable combinations of columns. For example last name, first name, DOB. I would then remove the exact matches produced by this combination, then try matching by other less reliable combinations. By progressively building up a set of matching rules that go from most reliable to least reliable you can get to the point of deciding what the cutoff will be for acceptable matches versus unacceptable matches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The very nature of your data suggests that any matching strategy is not going to be 100% reliable. The question is what is an acceptable level of reliability? Perhaps somewhere between 95% and 99%? &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 23:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-a-unique-matching-variable/m-p/387599#M92934</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-08-12T23:26:35Z</dc:date>
    </item>
  </channel>
</rss>

