<?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: PS 1 to 5 Optimal Matching in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PS-1-to-5-Optimal-Matching/m-p/919677#M45661</link>
    <description>&lt;P&gt;I have moved this topic from "SAS Studio" - board to "Statistical Procedures" - board.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140"&gt;@paulT&lt;/a&gt;&amp;nbsp;can help you with this.&lt;/P&gt;
&lt;P&gt;(... yet if paulT is the Paul I think he is.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Sun, 10 Mar 2024 13:27:41 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2024-03-10T13:27:41Z</dc:date>
    <item>
      <title>PS 1 to 5 Optimal Matching</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PS-1-to-5-Optimal-Matching/m-p/919662#M45660</link>
      <description>&lt;P&gt;&lt;SPAN&gt;ERROR: A feasible optimal fixed ratio matching that has the specified parameters does not exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I meet this problem when I do the 1-5 optimal matching, here is the code:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/* Perform the 1-to-5 optimal matching */
proc psmatch data=DRUGS region=allobs;
    class Treatment Gender;
    psmodel Treatment(Treated='1') = Gender Age BMI;
    match method=optimal(k=5) exact=Gender distance=ps caliper=0.5; 
    output out(obs=match)=matched2 matchid=_MatchID;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;If I change the k=1, it could run, while it showed error when I put k=5.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="截屏2024-03-09 15.48.54.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94537i3F75897A56D930A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="截屏2024-03-09 15.48.54.png" alt="截屏2024-03-09 15.48.54.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="截屏2024-03-09 13.34.00.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94538i6211EFC8724DA306/image-size/large?v=v2&amp;amp;px=999" role="button" title="截屏2024-03-09 13.34.00.png" alt="截屏2024-03-09 13.34.00.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Mar 2024 21:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PS-1-to-5-Optimal-Matching/m-p/919662#M45660</guid>
      <dc:creator>cici5723</dc:creator>
      <dc:date>2024-03-09T21:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: PS 1 to 5 Optimal Matching</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PS-1-to-5-Optimal-Matching/m-p/919677#M45661</link>
      <description>&lt;P&gt;I have moved this topic from "SAS Studio" - board to "Statistical Procedures" - board.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140"&gt;@paulT&lt;/a&gt;&amp;nbsp;can help you with this.&lt;/P&gt;
&lt;P&gt;(... yet if paulT is the Paul I think he is.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2024 13:27:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PS-1-to-5-Optimal-Matching/m-p/919677#M45661</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-03-10T13:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: PS 1 to 5 Optimal Matching</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PS-1-to-5-Optimal-Matching/m-p/919769#M45675</link>
      <description>&lt;P&gt;Assuming the data that you are using are the same as the Drugs data set used in the PROC PSMATCH documentation, an optimal fixed ratio matching with 5 control units for every treated unit will not be feasible. There are only 373 control units and 113 treated units, so there aren't enough controls for that to satisfy that fixed ratio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might be that the prompt is requesting an optimal variable ratio matching, with 1-5 control units matched to each treated unit. You would request such a matching my using the METHOD=VARRATIO(KMAX=5) specification in the MATCH statement. Using the DRUGS data set from the PROC PSMATCH documentation, that matching is feasible.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 14:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PS-1-to-5-Optimal-Matching/m-p/919769#M45675</guid>
      <dc:creator>MichaelL_SAS</dc:creator>
      <dc:date>2024-03-11T14:52:00Z</dc:date>
    </item>
  </channel>
</rss>

