<?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: Propensity score matching using method = greedy, k&amp;gt;1 and caliper in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-matching-using-method-greedy-k-gt-1-and-caliper/m-p/737095#M35798</link>
    <description>I think you're misunderstanding greedy, it just means it goes through in the specified order and takes the first best match for each, ignoring what comes next. A later record may have a closer match to the record in question but since you're using a 'greedy' method, that is already selected and would not be selected again. &lt;BR /&gt;&lt;BR /&gt;I would have expected the OBS=MATCH to have restricted the dataset to just matched values but you already have that in your code. I do not see an option to do what you request by default but you can filter it out fairly easily after the fact by isolating any records that only have one 1 match.</description>
    <pubDate>Mon, 26 Apr 2021 19:39:19 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-04-26T19:39:19Z</dc:date>
    <item>
      <title>Propensity score matching using method = greedy, k&gt;1 and caliper</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-matching-using-method-greedy-k-gt-1-and-caliper/m-p/737051#M35796</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm quite new to SAS programming and I'm trying to work with the psmatch procedure. I'm trying to achieve a 1:2 fixed matching with caliper.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc psmatch&lt;/STRONG&gt; data = test1 region = Cs; &lt;STRONG&gt;class&lt;/STRONG&gt; Locus_Stumpf R Kompli_chir;&lt;BR /&gt;psmodel Locus_Stumpf(Treated='1') = Alter OP_Jahr OP_Erweiterung&lt;BR /&gt;HIPEC Kompli_alle Kompli_chir OP_Typ Histo_Siegel R T N M UICC_einfach;&lt;BR /&gt;&lt;STRONG&gt;match method&lt;/STRONG&gt; = greedy (&lt;STRONG&gt;k=2&lt;/STRONG&gt; order=descending) stat = PS exact = R exact = Kompli_chir &lt;STRONG&gt;caliper&lt;/STRONG&gt; = 0.05;&lt;BR /&gt;output out (obs=match) = Outgs matchid = MatchID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the log, it shows following &lt;STRONG&gt;warning&lt;/STRONG&gt;, when I run this code:&lt;/P&gt;&lt;P&gt;Some treated units have less than the specified K=2 matched controls because there are not&lt;BR /&gt;enough available controls for these treated units.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 83 treated subjects in my data and my goal is it to match exactly 2 untreated subjects per treated subject (k=2). I thought that if I used method = greedy with a caliper, SAS would pair exactly one to two, automatically excluding all treated subjects, for which there aren't enough untreated subjects in the caliper width.&lt;/P&gt;&lt;P&gt;Instead, the program pairs some treated subjects with only ONE untreated subject instead of two.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why is it mantaining the treated subjects when the program should actually exclude them? &lt;/STRONG&gt;or did I understand the method = greedy option wrongly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I achieve that the program excludes all treated subjects, for which there don't exist 2 adequate untreated partners (within the caliper width)?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 16:51:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-matching-using-method-greedy-k-gt-1-and-caliper/m-p/737051#M35796</guid>
      <dc:creator>alex_r-o-x</dc:creator>
      <dc:date>2021-04-26T16:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Propensity score matching using method = greedy, k&gt;1 and caliper</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-matching-using-method-greedy-k-gt-1-and-caliper/m-p/737095#M35798</link>
      <description>I think you're misunderstanding greedy, it just means it goes through in the specified order and takes the first best match for each, ignoring what comes next. A later record may have a closer match to the record in question but since you're using a 'greedy' method, that is already selected and would not be selected again. &lt;BR /&gt;&lt;BR /&gt;I would have expected the OBS=MATCH to have restricted the dataset to just matched values but you already have that in your code. I do not see an option to do what you request by default but you can filter it out fairly easily after the fact by isolating any records that only have one 1 match.</description>
      <pubDate>Mon, 26 Apr 2021 19:39:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Propensity-score-matching-using-method-greedy-k-gt-1-and-caliper/m-p/737095#M35798</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-04-26T19:39:19Z</dc:date>
    </item>
  </channel>
</rss>

