<?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: PSMATCH with more than two treatment values? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PSMATCH-with-more-than-two-treatment-values/m-p/572212#M28170</link>
    <description>&lt;P&gt;Thank you for explaining it so clearly! I hadn't realized how the two different variable specifications aligned between the two procedures, so your replies were incredibly helpful. I specified ref='0' option in my proc logistic model and the output now matches perfectly with the psmatch output.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2019 19:18:05 GMT</pubDate>
    <dc:creator>bgladd</dc:creator>
    <dc:date>2019-07-09T19:18:05Z</dc:date>
    <item>
      <title>PSMATCH with more than two treatment values?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PSMATCH-with-more-than-two-treatment-values/m-p/572020#M28166</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am running SAS 9.4 TS1M5 and have two questions about generating propensity scores and using PROC PSMATCH.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I have successfully run a logistic regression model using proc logistic to generate the probabilities and then calculate the inverse weights, but when I ran the same model using PROC PSMATCH, my probabilities (indicated by _PS_ in the output) did not match the probabilities generated by proc logistic (using the pred values). Does anyone know why this might be and if there's something incorrect with my code that would explain it? I have included both sets of code below.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=test;
 class  filled30day race sex  VALVE PULMCIRC PERIVASC HTN_C PARA NEURO CHRNLUNG DM DMCX HYPOTHY RENLFAIL LIVER 
       LYMPH METS TUMOR COAG OBESE WGHTLOSS LYTES BLDLOSS ANEMDEF PSYCH DEPRESS pre_pdc icd  ;
 model filled30day =  race sex indx_anydual VALVE PULMCIRC PERIVASC HTN_C PARA NEURO CHRNLUNG DM DMCX HYPOTHY RENLFAIL LIVER 
                     LYMPH METS TUMOR COAG OBESE WGHTLOSS LYTES BLDLOSS ANEMDEF PSYCH DEPRESS pre_pdc preindx_snf_los 
		     preadmitNo totperbach totperpov icd
       / link=glogit rsquare lackfit ;
 output out=p_scores pred=ps_fill30 xbeta=logit_ps_fill30;
run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc psmatch data=test region=allobs; &lt;BR /&gt;class filled30day race sex VALVE PULMCIRC PERIVASC HTN_C PARA NEURO CHRNLUNG DM DMCX HYPOTHY RENLFAIL LIVER &lt;BR /&gt;LYMPH METS TUMOR COAG OBESE WGHTLOSS LYTES BLDLOSS ANEMDEF PSYCH DEPRESS pre_pdc icd  icd;&lt;BR /&gt;psmodel filled30day (treated='1') = race sex  VALVE PULMCIRC PERIVASC HTN_C PARA NEURO CHRNLUNG DM DMCX HYPOTHY RENLFAIL LIVER &lt;BR /&gt;LYMPH METS TUMOR COAG OBESE WGHTLOSS LYTES BLDLOSS ANEMDEF PSYCH DEPRESS pre_pdc preindx_snf_los &lt;BR /&gt;preadmitNo totperbach totperpov icd;&lt;BR /&gt;assess lps var=(race sex  VALVE PULMCIRC PERIVASC HTN_C PARA NEURO CHRNLUNG DM DMCX HYPOTHY RENLFAIL LIVER &lt;BR /&gt;LYMPH METS TUMOR COAG OBESE WGHTLOSS LYTES BLDLOSS ANEMDEF PSYCH DEPRESS pre_pdc  preindx_snf_los &lt;BR /&gt;preadmitNo totperbach totperpov icd)&lt;BR /&gt;/ varinfo weight=atewgt;&lt;BR /&gt;&lt;BR /&gt;output out(obs=all)=OutEx1 atewgt=_ATEWT_;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;And here is a sample of the output and the mismatched values:&lt;BR /&gt;filled30day    Log results pscore weight     PSMATCH results _PS_ _ATEWT_&lt;BR /&gt;1                          .43005 2.32532                   .56981 1.75498&lt;BR /&gt;1                          .32044 3.12072                   .67946 1.47177&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) I am working with a second model with a treatment that has more than two levels. Does anyone know if it's possible to use PSMATCH when modeling an outcome with more than two treatment levels? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 12:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PSMATCH-with-more-than-two-treatment-values/m-p/572020#M28166</guid>
      <dc:creator>bgladd</dc:creator>
      <dc:date>2019-07-09T12:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: PSMATCH with more than two treatment values?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PSMATCH-with-more-than-two-treatment-values/m-p/572176#M28167</link>
      <description>&lt;P&gt;1) In the code you provided it looks like one possibility might be that PROC LOGISTIC and PROC PSMATCH are modeling different levels of the variable filled30day. The TREATED="1" option is used in the PSMODEL statement but I don't see the EVENT= or REF= option specified in the MODEL statement of PROC LOGISTIC. The EVENT= option in PROC LOGISTIC should be analogous to the TREATED= option in PROC PSMATCH, and the REF= option would be analogous to the CONTROL= option in PROC PSMATCH.&amp;nbsp;What level of the response variable PROC LOGISTIC models or what level is used as the reference level should be printed in the log and in a note after the Response Profile table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) No, PROC PSMATCH only supports binary treatment variables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 18:11:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PSMATCH-with-more-than-two-treatment-values/m-p/572176#M28167</guid>
      <dc:creator>MichaelL_SAS</dc:creator>
      <dc:date>2019-07-09T18:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: PSMATCH with more than two treatment values?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PSMATCH-with-more-than-two-treatment-values/m-p/572183#M28168</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Thanks for getting back to me. In proc logistic I don't have to specify event= option (here's the Log note: NOTE: The EVENT= option for the response variable is ignored for LINK=GLOGIT.) and according to the log (NOTE: PROC LOGISTIC is fitting the generalized logit model. The logits modeled&lt;BR /&gt;contrast each response level against the reference level (filled30day=1).) the event being modeled was 1, so the proc logistic and PSMATCH appear to be set up the same way.&lt;BR /&gt;&lt;BR /&gt;Any other ideas? Some of my coworkers are suspect of proc psmatch's accuracy and they do not use it, but I like the ease of the output options and was hoping it work.&lt;BR /&gt;&lt;BR /&gt;Re: 2). That's what I thought. If PSMATCH can be fixed, that would be my next wish-list suggestion for SAS.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;Barbara&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Jul 2019 18:22:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PSMATCH-with-more-than-two-treatment-values/m-p/572183#M28168</guid>
      <dc:creator>bgladd</dc:creator>
      <dc:date>2019-07-09T18:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: PSMATCH with more than two treatment values?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PSMATCH-with-more-than-two-treatment-values/m-p/572191#M28169</link>
      <description>&lt;P&gt;For a binary response variable the reference level used in the GLOGIT model fit by PROC LOGISTIC (&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 20px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; visibility: visible; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;filled30day=1 according the note you provided&lt;/SPAN&gt;) would match the control level in PROC PSMATCH not the treated level, so it does look like PROC LOGISTIC and PROC PSMATCH are modeling different levels of the response.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To change what level is used as the reference level in a GLOGIT model you can still use the REF= option to specify the other level of the variable filled30day.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 18:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PSMATCH-with-more-than-two-treatment-values/m-p/572191#M28169</guid>
      <dc:creator>MichaelL_SAS</dc:creator>
      <dc:date>2019-07-09T18:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: PSMATCH with more than two treatment values?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PSMATCH-with-more-than-two-treatment-values/m-p/572212#M28170</link>
      <description>&lt;P&gt;Thank you for explaining it so clearly! I hadn't realized how the two different variable specifications aligned between the two procedures, so your replies were incredibly helpful. I specified ref='0' option in my proc logistic model and the output now matches perfectly with the psmatch output.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 19:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PSMATCH-with-more-than-two-treatment-values/m-p/572212#M28170</guid>
      <dc:creator>bgladd</dc:creator>
      <dc:date>2019-07-09T19:18:05Z</dc:date>
    </item>
  </channel>
</rss>

