<?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: Greedy PS MATCH in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Greedy-PS-MATCH/m-p/726504#M35245</link>
    <description>&lt;P&gt;Hi Michaell,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this, but for some reason I dont know this results in a dataset where two or more cases come out with the same _matchID. I dont know why this happens, but I need individual matchid's pr. case.&lt;/P&gt;&lt;P&gt;Do you have any ideas on how/why this happens, and how I can avoid it?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 18:50:13 GMT</pubDate>
    <dc:creator>johanna3</dc:creator>
    <dc:date>2021-03-15T18:50:13Z</dc:date>
    <item>
      <title>Greedy PS MATCH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Greedy-PS-MATCH/m-p/726414#M35243</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to do a greedy matching - but with replacement and all of the possible control matches pr. case - does anyone know how to code this in the PSMATCH procedure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to have all possible matches shown pr. case within the specified caliper of course as I need to take another variable into account after the matching procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Present code is this which works, but 1) Doesnt provide all possible matches 2) doesnt have replacement:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc psmatch data=stat5 region=cs;&lt;/P&gt;&lt;P&gt;class eventbarn;&lt;/P&gt;&lt;P&gt;psdata treatvar=eventbarn (Treated='1') ps=ssps;&lt;/P&gt;&lt;P&gt;match method=greedy (k=3) caliper=0.2;&lt;/P&gt;&lt;P&gt;assess ps var=(baseline_edss disease_duration age_diagnosis) / plots=all;&lt;/P&gt;&lt;P&gt;output out(obs=match) =outstat1 matchid=_matchid;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:56:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Greedy-PS-MATCH/m-p/726414#M35243</guid>
      <dc:creator>johanna3</dc:creator>
      <dc:date>2021-03-15T14:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Greedy PS MATCH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Greedy-PS-MATCH/m-p/726482#M35244</link>
      <description>&lt;P&gt;To request a matching with replacement you would specify &lt;A href="https://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_psmatch_syntax08.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en#statug.psmatch.methodopt" target="_self"&gt;METHOD=REPLACE&lt;/A&gt; instead of METHOD=GREEDY in the MATCH statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 17:45:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Greedy-PS-MATCH/m-p/726482#M35244</guid>
      <dc:creator>MichaelL_SAS</dc:creator>
      <dc:date>2021-03-15T17:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Greedy PS MATCH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Greedy-PS-MATCH/m-p/726504#M35245</link>
      <description>&lt;P&gt;Hi Michaell,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried this, but for some reason I dont know this results in a dataset where two or more cases come out with the same _matchID. I dont know why this happens, but I need individual matchid's pr. case.&lt;/P&gt;&lt;P&gt;Do you have any ideas on how/why this happens, and how I can avoid it?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 18:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Greedy-PS-MATCH/m-p/726504#M35245</guid>
      <dc:creator>johanna3</dc:creator>
      <dc:date>2021-03-15T18:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Greedy PS MATCH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Greedy-PS-MATCH/m-p/726512#M35246</link>
      <description>&lt;P&gt;For a matching with replacement the match id values account for both direct and indirect connections. This is discussed the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=v_009&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_psmatch_details21.htm&amp;amp;locale=en#statug.psmatch.psmmatchattwgtrepl" target="_self"&gt;ATT Weighting after Matching with Replacement&lt;/A&gt; section of the PROC PSMATCH documentation. Two or more treated units (cases) will be in the same match group when they are both matched to a common control unit and therefore share an indirect connection. I don't believe there is a way to change this behavior.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 19:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Greedy-PS-MATCH/m-p/726512#M35246</guid>
      <dc:creator>MichaelL_SAS</dc:creator>
      <dc:date>2021-03-15T19:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Greedy PS MATCH</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Greedy-PS-MATCH/m-p/726637#M35254</link>
      <description>Thank you - that makes sense.</description>
      <pubDate>Tue, 16 Mar 2021 07:01:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Greedy-PS-MATCH/m-p/726637#M35254</guid>
      <dc:creator>johanna3</dc:creator>
      <dc:date>2021-03-16T07:01:08Z</dc:date>
    </item>
  </channel>
</rss>

