<?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: Match-Control with multiple sets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Match-Control-with-multiple-sets/m-p/543988#M150397</link>
    <description>&lt;P&gt;Yes I've already merge it to see how that would work but I can' t make it work neither&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 14:03:35 GMT</pubDate>
    <dc:creator>Pabster</dc:creator>
    <dc:date>2019-03-18T14:03:35Z</dc:date>
    <item>
      <title>Match-Control with multiple sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-Control-with-multiple-sets/m-p/543189#M150143</link>
      <description>&lt;P&gt;Hi all.&lt;BR /&gt;I posted this question before but apparently it looks more like a case of random case-control sampling.&lt;BR /&gt;&lt;BR /&gt;So my data looks like this(Active companies):&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="active.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27903iECD53991A1161D0A/image-size/large?v=v2&amp;amp;px=999" role="button" title="active.png" alt="active.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and like this (inactive companies):&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inactive.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27904i3C1914229898337F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Inactive.png" alt="Inactive.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need SAS to randomly select an ACTIVE(so the COSTAT of the company =0) company from the Active data set and pair it to an Inactive company(COSTAT=1) from my second data set.&lt;BR /&gt;The pairing only has two constraint, the active company must be in the same industry as the inactive one (same SIC) and the same Fyear for proper analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My final set should look somehow like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;DATADATE FYEAR DLRSN CONM DLDTE COSTAT SICH&lt;/P&gt;&lt;P&gt;03/12/1992 1989&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;112&lt;/P&gt;&lt;P&gt;03/12/1993 1989&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;02&amp;nbsp; &amp;nbsp; &amp;nbsp; B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1990&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;112&lt;/P&gt;&lt;P&gt;03/12/1994 1990&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;D&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;333&lt;/P&gt;&lt;P&gt;03/12/1992 1990&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 03&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1992&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;333&lt;/P&gt;&lt;P&gt;03/12/1993 1994&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;J&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 445&lt;/P&gt;&lt;P&gt;03/12/1994 1994&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 03&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; L&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1996&amp;nbsp; &amp;nbsp; &amp;nbsp; 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 445&lt;/P&gt;&lt;P&gt;03/12/1998 1998&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 001&lt;/P&gt;&lt;P&gt;03/12/1998 1998&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 02&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Z&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2000&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 001&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it`s clear and you guys can me help me out.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;*UPDATE*&lt;BR /&gt;I used this code to create a random sample data set for the active companies and then merge it with the inactive one. Their is just no pairing what so ever. I just need ONE active for ONE inactive.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveyselect data=AltmanV2.Donnee_Avant_F_Sante
					out=StratifiedSRS
					sampsize=1643
					method=srs
					outall;
		strata COSTAT;
run;

data Strat;
set StratifiedSRS;
if Selected=1 then output;
else delete;
run;

data test;
set Strat AltmanV2.Donnee_Avant_F;
SIC=INT(input(SIC,4.)/100);
run;

proc sort data= test;
by Fyear SIC;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Mar 2019 14:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-Control-with-multiple-sets/m-p/543189#M150143</guid>
      <dc:creator>Pabster</dc:creator>
      <dc:date>2019-03-14T14:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Match-Control with multiple sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-Control-with-multiple-sets/m-p/543337#M150193</link>
      <description>&lt;P&gt;Can you merge THEN random select company pairs?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 21:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-Control-with-multiple-sets/m-p/543337#M150193</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-03-14T21:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Match-Control with multiple sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-Control-with-multiple-sets/m-p/543988#M150397</link>
      <description>&lt;P&gt;Yes I've already merge it to see how that would work but I can' t make it work neither&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 14:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-Control-with-multiple-sets/m-p/543988#M150397</guid>
      <dc:creator>Pabster</dc:creator>
      <dc:date>2019-03-18T14:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Match-Control with multiple sets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Match-Control-with-multiple-sets/m-p/544109#M150456</link>
      <description>&lt;P&gt;Reply unclear. If you merge first surely you can select pairs.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 21:06:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Match-Control-with-multiple-sets/m-p/544109#M150456</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-03-18T21:06:52Z</dc:date>
    </item>
  </channel>
</rss>

