<?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: proc psmatch with replacement and k&amp;gt;1 when control sample smaller than treatment sample in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-psmatch-with-replacement-and-k-gt-1-when-control-sample/m-p/908744#M45107</link>
    <description>All resolved!</description>
    <pubDate>Tue, 19 Dec 2023 00:43:00 GMT</pubDate>
    <dc:creator>Callam1</dc:creator>
    <dc:date>2023-12-19T00:43:00Z</dc:date>
    <item>
      <title>proc psmatch with replacement and k&gt;1 when control sample smaller than treatment sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-psmatch-with-replacement-and-k-gt-1-when-control-sample/m-p/908532#M45095</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am struggling to understand the result of my matching with replacement with k=5. The output is showing that 99% of the 30,000 treated observations are successfully matched and 88% of the 28,000 control observations are matched. But when I open the resulting dataset (matched_data in the code below), although all the treatment observations have a matching ID,&amp;nbsp; 50% of control observations have a missing matching ID. It appears that&amp;nbsp; the information provided in the output is not accurate as it is counting as matched the control observations with a missing matching ID. The matching appears very good based on the Standardised difference, but can I trust it? In the matched sample there is no matching set where a&amp;nbsp; treatment observation was matched to more than 1 control. I do have several treated observations matched to one control observation (as expected given the matching with replacement). Is it that SAS cannot process accurately a matching with replacement with k&amp;gt;1 when the control sample is smaller than the treatment sample ? If I select k=1 the output is accurately reflecting the matching and the matched dataset has no missing matching ID. However the matching performance&amp;nbsp; is not as good, despite the fact that the number of matched treatment and control observations with a matching ID is the same as in k=5. Any views?&lt;/P&gt;&lt;P&gt;Many thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;proc psmatch data= dataset1 region=cs;&lt;BR /&gt;class is_treated binary_covariates categ_covariates;&lt;/P&gt;&lt;P&gt;psmodel is_treated(Treated='1') =categ_covariates continuous_covariates interaction_effect;&lt;BR /&gt;match method=replace(k=5) stat=lps caliper=0.2;&lt;BR /&gt;assess lps var=(binary_covariate continuous_covariates)&lt;BR /&gt;) / plots=(BoxPlot StdDiff barchart);&lt;BR /&gt;output out(obs=match)=matched_data matchid=MID ;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 00:17:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-psmatch-with-replacement-and-k-gt-1-when-control-sample/m-p/908532#M45095</guid>
      <dc:creator>Callam1</dc:creator>
      <dc:date>2023-12-18T00:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: proc psmatch with replacement and k&gt;1 when control sample smaller than treatment sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-psmatch-with-replacement-and-k-gt-1-when-control-sample/m-p/908744#M45107</link>
      <description>All resolved!</description>
      <pubDate>Tue, 19 Dec 2023 00:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-psmatch-with-replacement-and-k-gt-1-when-control-sample/m-p/908744#M45107</guid>
      <dc:creator>Callam1</dc:creator>
      <dc:date>2023-12-19T00:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: proc psmatch with replacement and k&gt;1 when control sample smaller than treatment sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-psmatch-with-replacement-and-k-gt-1-when-control-sample/m-p/908851#M45118</link>
      <description>&lt;P&gt;How was it resolved? Kind of went from an interesting problem to "nothing to see here."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 17:13:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-psmatch-with-replacement-and-k-gt-1-when-control-sample/m-p/908851#M45118</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2023-12-19T17:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: proc psmatch with replacement and k&gt;1 when control sample smaller than treatment sample</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-psmatch-with-replacement-and-k-gt-1-when-control-sample/m-p/908959#M45119</link>
      <description>Hi, basically the problem was that in the last line of the code I only had the name for one machid. When k=n, you need n names. So it should be machid=(mid1 mid2 mid3 …midn).&lt;BR /&gt;In this way there are no more missing machid in the matched dataset.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Dec 2023 04:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-psmatch-with-replacement-and-k-gt-1-when-control-sample/m-p/908959#M45119</guid>
      <dc:creator>Callam1</dc:creator>
      <dc:date>2023-12-20T04:26:16Z</dc:date>
    </item>
  </channel>
</rss>

