<?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: Paired Random Sampling in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Paired-Random-Sampling/m-p/542505#M149903</link>
    <description>&lt;P&gt;I'm not sure I understand what you are trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You want to do some stratified random sampling ... okay ... but you have to specify how to do the stratifying, and I don't see that you have done this.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Furthermore, the concept of pairing in this situation isn't explained either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think more information would help.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 17:12:30 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-03-12T17:12:30Z</dc:date>
    <item>
      <title>Paired Random Sampling</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Paired-Random-Sampling/m-p/542500#M149901</link>
      <description>&lt;P&gt;Hey!&lt;BR /&gt;&lt;BR /&gt;I am trying to do a Paired sample analysis using the stratified random basis.&lt;BR /&gt;I have 2 data sets (see link at the end to download them if needed):&lt;BR /&gt;-The first one is full of Inactive/Bankrupt companies at a given time (chosen by me)&lt;BR /&gt;-The second one is full of Active companies&lt;BR /&gt;&lt;BR /&gt;What I need to do is to Pair , by industry and by a limited size (between 1-25 asset size(AT)), an Active company to each Inactive company in my first data set.&lt;BR /&gt;&lt;BR /&gt;I know there is a PROC function called SURVEYSELECT but I haven't been able to grasp it properly.&lt;BR /&gt;Hope you guys can help me!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="x_download_link_link"&gt;Here`s the link to download the data sets:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://wetransfer.com/downloads/b5ca64d2fa3cad610913536c77e1589020190312165556/dca9ea7167f20133e26b0cf92f265e0220190312165556/34f631" target="_blank" rel="noopener noreferrer"&gt;&lt;SPAN class="x_download_link_link"&gt;https://wetransfer.com/downloads/b5ca64d2fa3cad610913536c77e1589020190312165556/dca9ea7167f20133e26b0cf92f265e0220190312165556/34f631&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 17:08:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Paired-Random-Sampling/m-p/542500#M149901</guid>
      <dc:creator>Pabster</dc:creator>
      <dc:date>2019-03-12T17:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Paired Random Sampling</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Paired-Random-Sampling/m-p/542505#M149903</link>
      <description>&lt;P&gt;I'm not sure I understand what you are trying to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You want to do some stratified random sampling ... okay ... but you have to specify how to do the stratifying, and I don't see that you have done this.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Furthermore, the concept of pairing in this situation isn't explained either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think more information would help.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 17:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Paired-Random-Sampling/m-p/542505#M149903</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-12T17:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Paired Random Sampling</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Paired-Random-Sampling/m-p/542886#M150056</link>
      <description>&lt;P&gt;Okay,&lt;BR /&gt;&lt;BR /&gt;So my data looks like this:&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:&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;Is it more clear?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 16:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Paired-Random-Sampling/m-p/542886#M150056</guid>
      <dc:creator>Pabster</dc:creator>
      <dc:date>2019-03-13T16:54:47Z</dc:date>
    </item>
  </channel>
</rss>

