<?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: nested case-control sampling macro analysis matching in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633212#M187832</link>
    <description>&lt;P&gt;Just adhere to the syntax described in the documentation Reeza linked to: SELECTALL is an option of the PROC SURVEYSELECT statement, so it needs to be inserted anywhere into the list of the five options you're currently using (DATA=, METHOD=, N=, SEED=, OUT=).&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 11:07:43 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2020-03-19T11:07:43Z</dc:date>
    <item>
      <title>nested case-control sampling macro analysis matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633118#M187795</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am running a nested case-control sampling macro analysis matching on n=10 controls.&lt;/P&gt;&lt;P&gt;i.e..&lt;/P&gt;&lt;P&gt;proc surveyselect data=m4_case&amp;amp;i method=srs n=10 seed=2009 out=m6_case&amp;amp;i;&lt;BR /&gt;id IDnum case_id ctrl_id dx grp_cc;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, i get these messages when the matching number is less than 10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: The sample size, 10, is greater than the number of sampling units, 9.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set M6_CASE2096 may be incomplete. When this step was stopped there were 0&lt;BR /&gt;observations and 5 variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have relaxed my matching criteria to accommodate more case-control matches as possible.&lt;/P&gt;&lt;P&gt;For now i want to force the sas program to accept those n=9 etc to be matched using the same procedure stated above whilst still using the n=10 criteria. Pls any help will be welcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 23:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633118#M187795</guid>
      <dc:creator>Mystik</dc:creator>
      <dc:date>2020-03-18T23:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: nested case-control sampling macro analysis matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633124#M187796</link>
      <description>&lt;P&gt;Try adding the SELECTALL option without your PROC SURVEYSELECT statement.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveyselect_syntax01.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#statug.surveyselect.selectselectall" target="_blank"&gt;https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveyselect_syntax01.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#statug.surveyselect.selectselectall&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 00:41:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633124#M187796</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-19T00:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: nested case-control sampling macro analysis matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633130#M187801</link>
      <description>&lt;P&gt;I replaced "&lt;SPAN&gt;PROC SURVEYSELECT" statement with SELECTALL as you suggested (find below) but got the error message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6 selectall data=m4_case&amp;amp;i method=srs n=10 seed=2009 out=m6_case&amp;amp;i;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---------&lt;/P&gt;&lt;P&gt;180&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;selectall data=m4_case&amp;amp;i method=srs n=10 seed=2009 out=m6_case&amp;amp;i;&lt;BR /&gt;id IDnum case_id ctrl_id dx grp_cc;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 01:32:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633130#M187801</guid>
      <dc:creator>Mystik</dc:creator>
      <dc:date>2020-03-19T01:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: nested case-control sampling macro analysis matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633212#M187832</link>
      <description>&lt;P&gt;Just adhere to the syntax described in the documentation Reeza linked to: SELECTALL is an option of the PROC SURVEYSELECT statement, so it needs to be inserted anywhere into the list of the five options you're currently using (DATA=, METHOD=, N=, SEED=, OUT=).&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 11:07:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633212#M187832</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-03-19T11:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: nested case-control sampling macro analysis matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633365#M187889</link>
      <description>Thank you. I did as Reeza says and it worked.</description>
      <pubDate>Thu, 19 Mar 2020 17:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633365#M187889</guid>
      <dc:creator>Mystik</dc:creator>
      <dc:date>2020-03-19T17:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: nested case-control sampling macro analysis matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633367#M187891</link>
      <description>Whoops, that was autocorrect, the original messages should have said, within not without &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Glad you got it working.</description>
      <pubDate>Thu, 19 Mar 2020 17:48:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633367#M187891</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-03-19T17:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: nested case-control sampling macro analysis matching</title>
      <link>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633396#M187897</link>
      <description>Thank you Reeza!&lt;BR /&gt;Actually, it was your solution that actually works. Dunno why i marked mine as the solution.&lt;BR /&gt;Thanks again.</description>
      <pubDate>Thu, 19 Mar 2020 19:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/nested-case-control-sampling-macro-analysis-matching/m-p/633396#M187897</guid>
      <dc:creator>Mystik</dc:creator>
      <dc:date>2020-03-19T19:22:16Z</dc:date>
    </item>
  </channel>
</rss>

