<?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 How to create a control group based on multiple matching variables? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-control-group-based-on-multiple-matching/m-p/769587#M244046</link>
    <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am designing a matched case-control study.&amp;nbsp;I have 25 patients diagnosed with COVID and cancer as the case group. I would like to select 50 subjects from a dataset containing 4000 cancer patients as a comparison/control group based on the following matching variables: age (+/-5 years), cance type (8 cancer types: lung, melanoma, sarcoma...etc), gender (male vs. female), year of chemotherapy, race (White vs. Black vs. Others) and survival &amp;gt; 6 months (Yes/No). The priority of the matching variables are listed as the order above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please advise me on the code? Please let me know if you need further clarifications.Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Sep 2021 17:10:44 GMT</pubDate>
    <dc:creator>Denali</dc:creator>
    <dc:date>2021-09-22T17:10:44Z</dc:date>
    <item>
      <title>How to create a control group based on multiple matching variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-control-group-based-on-multiple-matching/m-p/769587#M244046</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am designing a matched case-control study.&amp;nbsp;I have 25 patients diagnosed with COVID and cancer as the case group. I would like to select 50 subjects from a dataset containing 4000 cancer patients as a comparison/control group based on the following matching variables: age (+/-5 years), cance type (8 cancer types: lung, melanoma, sarcoma...etc), gender (male vs. female), year of chemotherapy, race (White vs. Black vs. Others) and survival &amp;gt; 6 months (Yes/No). The priority of the matching variables are listed as the order above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please advise me on the code? Please let me know if you need further clarifications.Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 17:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-control-group-based-on-multiple-matching/m-p/769587#M244046</guid>
      <dc:creator>Denali</dc:creator>
      <dc:date>2021-09-22T17:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a control group based on multiple matching variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-control-group-based-on-multiple-matching/m-p/769597#M244047</link>
      <description>Have you looked into PROC PSMATCH?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_psmatch_examples04.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_psmatch_examples04.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If you need code examples you will need to provide data examples, specifically both of your input data sets.</description>
      <pubDate>Wed, 22 Sep 2021 17:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-control-group-based-on-multiple-matching/m-p/769597#M244047</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-22T17:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a control group based on multiple matching variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-control-group-based-on-multiple-matching/m-p/769603#M244049</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;Thanks for your suggestions. l am not specifically looking for propensity score matching but just the regular matching step. Is there a code for that instead? Do I need to run the Proc Freq first to ensure the frequency of each variable or it does not matter so much?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 17:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-control-group-based-on-multiple-matching/m-p/769603#M244049</guid>
      <dc:creator>Denali</dc:creator>
      <dc:date>2021-09-22T17:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a control group based on multiple matching variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-control-group-based-on-multiple-matching/m-p/769604#M244050</link>
      <description>Then you're just writing manual SQL code. There isn't a proc for direct matching, but the Mayo clinic used to have a bunch of SAS macros.&lt;BR /&gt;I personally thing PSMATCH with the REGION and CALIPERS can be set to do what you want but I've never directly tried it. &lt;BR /&gt;&lt;BR /&gt;I would have assumed that you've ensured that your criteria makes sense already for the matching so not sure what the PROC FREQ will add to the process.</description>
      <pubDate>Wed, 22 Sep 2021 17:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-a-control-group-based-on-multiple-matching/m-p/769604#M244050</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-09-22T17:42:08Z</dc:date>
    </item>
  </channel>
</rss>

