<?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: Why I got incorrect number of All obs after PROC PSMATCH procedure? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Why-I-got-incorrect-number-of-All-obs-after-PROC-PSMATCH/m-p/759254#M239897</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;did you check if you have missings in your treatment variable?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Aug 2021 09:44:08 GMT</pubDate>
    <dc:creator>Oligolas</dc:creator>
    <dc:date>2021-08-04T09:44:08Z</dc:date>
    <item>
      <title>Why I got incorrect number of All obs after PROC PSMATCH procedure?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-I-got-incorrect-number-of-All-obs-after-PROC-PSMATCH/m-p/759201#M239864</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello SAS Community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm doing 1:1 propensity score matching procedure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The data set contains 47366 samples (treatment=30694/ control=16672&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;After PROC PSMATCH procedure, I&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;got a table as below&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="pic.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62234iF5A7DF2304858FDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pic.png" alt="pic.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The number of All Obs (Treatment) and&amp;nbsp;All Obs (Control) is different from the original data set, 70 of the total sample were lost.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And I also got a warning:&amp;nbsp;Some treated units do not have matched controls because there are not enough available controls for these treated units.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is this problem related to the warning? How do I solve it?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc psmatch data=B.HLP_ID_COMED  region=treated; 
class SEX statin c_htn c_dm c_os c_mg c_go c_as c_sch c_emd c_nd c_dp c_thy c_gl m_antihi m_bb m_diur m_ssri m_anticho  m_ppi m_glau ;
Psmodel statin (Treated='1')= AGE SEX c_htn c_dm c_os c_mg c_go c_as c_sch c_emd c_nd c_dp c_thy c_gl m_antihi m_bb m_diur m_ssri m_anticho  m_ppi m_glau; 
match method=greedy( k=1) exact=(SEX)  caliper=0.2 ; 
assess lps var=(AGE SEX c_htn c_dm c_os c_mg c_go c_as c_sch c_emd c_nd c_dp c_thy c_gl m_antihi m_bb m_diur m_ssri m_anticho  m_ppi m_glau)/plots=ALL  weight=none; 
output out(obs=match)=OUT_PSM matchid=_MatchID; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Aug 2021 04:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-I-got-incorrect-number-of-All-obs-after-PROC-PSMATCH/m-p/759201#M239864</guid>
      <dc:creator>vivianwang</dc:creator>
      <dc:date>2021-08-04T04:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why I got incorrect number of All obs after PROC PSMATCH procedure?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-I-got-incorrect-number-of-All-obs-after-PROC-PSMATCH/m-p/759254#M239897</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;did you check if you have missings in your treatment variable?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 09:44:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-I-got-incorrect-number-of-All-obs-after-PROC-PSMATCH/m-p/759254#M239897</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2021-08-04T09:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why I got incorrect number of All obs after PROC PSMATCH procedure?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Why-I-got-incorrect-number-of-All-obs-after-PROC-PSMATCH/m-p/759276#M239910</link>
      <description>&lt;P&gt;Thank you for your reply&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’ve checked the sample and &amp;nbsp;there is no missing data.&lt;/P&gt;&lt;P&gt;Is there other explanations for the 70 lost from the sample?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Aug 2021 11:04:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Why-I-got-incorrect-number-of-All-obs-after-PROC-PSMATCH/m-p/759276#M239910</guid>
      <dc:creator>vivianwang</dc:creator>
      <dc:date>2021-08-04T11:04:10Z</dc:date>
    </item>
  </channel>
</rss>

