<?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: PSMA in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/791933#M38822</link>
    <description>&lt;P&gt;So this is the example from the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_code_psmchex4.htm" target="_self"&gt;SAS documentation&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure I understand your question though - are you saying the PSMATCH results don't match with what's in the documentation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/413122"&gt;@mcasa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;dear All&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when the 2 codes are run I don't find the &lt;STRONG&gt;same predictive probability that is supposed to be used as propensity score&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 17:32:45 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-01-24T17:32:45Z</dc:date>
    <item>
      <title>PSMA</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/791914#M38820</link>
      <description>&lt;P&gt;dear All&amp;nbsp;&lt;/P&gt;&lt;P&gt;when the 2 codes are run I don't find the same predictive probability that is supposed to be used as propensity score.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data School;&lt;BR /&gt;Music= 'Yes';&lt;BR /&gt;do j=1 to 60;&lt;BR /&gt;if (ranuni(1312) &amp;gt; 0.4) then Gender='Female';&lt;BR /&gt;else Gender='Male';&lt;/P&gt;&lt;P&gt;Absence = ranexp(99);&lt;BR /&gt;if (Absence &amp;lt; 0.5) then GPA= 4 + rannor(99)/3.5;&lt;BR /&gt;else GPA= 4 - abs(rannor(99)/3.5);&lt;/P&gt;&lt;P&gt;if (Gender='Female') then GPA= GPA + 0.02;&lt;/P&gt;&lt;P&gt;id1= ranuni(99);&lt;BR /&gt;id2= ranuni(99);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;Music= 'No';&lt;BR /&gt;do j=1 to 100;&lt;/P&gt;&lt;P&gt;Absence= ranexp(99);&lt;BR /&gt;if (ranuni(99) &amp;gt; 0.45) then Gender='Female';&lt;BR /&gt;else Gender='Male';&lt;BR /&gt;if (Absence &amp;lt; 0.5) then GPA= 4 + rannor(99)/4.2;&lt;BR /&gt;else GPA= 4 - abs(rannor(99)/4.2);&lt;/P&gt;&lt;P&gt;id1= ranuni(99);&lt;BR /&gt;id2= ranuni(99);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;do j=1 to 40;&lt;BR /&gt;Absence= 2 + ranexp(99);&lt;BR /&gt;if (ranuni(99) &amp;gt; 0.5) then Gender='Female';&lt;BR /&gt;else Gender='Male';&lt;/P&gt;&lt;P&gt;GPA= 3.4 - abs(rannor(99)/4.2);&lt;/P&gt;&lt;P&gt;id1= ranuni(99);&lt;BR /&gt;id2= ranuni(99);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=school;&lt;BR /&gt;by id1;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data school;&lt;BR /&gt;set school;&lt;BR /&gt;StudentID= _n_;&lt;BR /&gt;Absence= int(Absence*100+0.5) / 100;&lt;BR /&gt;GPA= int(GPA*100+0.5) / 100;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=school;&lt;BR /&gt;by id2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data Grades;&lt;BR /&gt;set school;&lt;BR /&gt;keep StudentID GPA;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data School;&lt;BR /&gt;set school;&lt;BR /&gt;drop j id1 id2 GPA;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=School out=School1;&lt;BR /&gt;by StudentID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=Grades out=Grades1;&lt;BR /&gt;by StudentID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data SchoolGrades;&lt;BR /&gt;merge School1 Grades1;&lt;BR /&gt;by StudentID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;proc psmatch data=School region=treated;&lt;BR /&gt;class Music Gender;&lt;BR /&gt;psmodel Music(Treated='Yes')= Gender Absence;&lt;BR /&gt;match distance=lps method=greedy(k=1) exact=Gender caliper=0.5;&lt;BR /&gt;assess lps var=(Gender Absence)&lt;BR /&gt;/ stddev=pooled(allobs=no) stdbinvar=no&lt;BR /&gt;plots(nodetails)=all weight=none;&lt;BR /&gt;output out(obs=match)=OutEx4 matchid=_MatchID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;****** logistic ****;&lt;/P&gt;&lt;P&gt;proc logistic data=School descending;&lt;BR /&gt;class Music Gender;&lt;BR /&gt;model Music(Event='Yes')= Gender Absence /&lt;BR /&gt;link=cloglog rsquare;&lt;BR /&gt;output out = ps_los pred = ps xbeta=logit_ps;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 16:58:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/791914#M38820</guid>
      <dc:creator>mcasa</dc:creator>
      <dc:date>2022-01-24T16:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: PSMA</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/791927#M38821</link>
      <description>If possible, please use "Insert SAS Code" in the edit box to provide the code.</description>
      <pubDate>Mon, 24 Jan 2022 17:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/791927#M38821</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-01-24T17:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: PSMA</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/791933#M38822</link>
      <description>&lt;P&gt;So this is the example from the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_code_psmchex4.htm" target="_self"&gt;SAS documentation&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure I understand your question though - are you saying the PSMATCH results don't match with what's in the documentation?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/413122"&gt;@mcasa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;dear All&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when the 2 codes are run I don't find the &lt;STRONG&gt;same predictive probability that is supposed to be used as propensity score&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 17:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/791933#M38822</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-24T17:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: PSMA</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/792146#M38823</link>
      <description>&lt;P&gt;Hi Sorry I will try to explain.&lt;/P&gt;&lt;P&gt;The pSmodel statement in the PSMAtch procedure is supposed to generate a logistic regression to get the predictive probabilities that should be used to generate later the propensity score. If you don't use any weights , you would expect to find the same predictive probability if you run a proc logistic. My concern is that I have closed results but not exact match. I am wondering if you have observed similar things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 10:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/792146#M38823</guid>
      <dc:creator>mcasa</dc:creator>
      <dc:date>2022-01-25T10:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: PSMA</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/792204#M38829</link>
      <description>&lt;P&gt;The propensity score model fit by PROC PSMATCH uses the logit link whereas the model you are fitting with PROC LOGISTIC is using the complementary log-log link function as requested by the link=cloglog option in the MODEL statement. The two models are therefore not the same and you would not expect to get the same propensity score values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 15:39:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/792204#M38829</guid>
      <dc:creator>MichaelL_SAS</dc:creator>
      <dc:date>2022-01-25T15:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: PSMA</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/793084#M38871</link>
      <description>&lt;P&gt;You are right. Thank you . I misread the documentation and I was sure that the cloglog was used in the psmatch procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 09:23:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PSMA/m-p/793084#M38871</guid>
      <dc:creator>mcasa</dc:creator>
      <dc:date>2022-01-28T09:23:29Z</dc:date>
    </item>
  </channel>
</rss>

