<?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 logistic prediction residual in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-prediction-residual/m-p/740596#M35998</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks much!&lt;/P&gt;
&lt;P&gt;I very much appreciate the information you provided!&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 19:52:37 GMT</pubDate>
    <dc:creator>superbug</dc:creator>
    <dc:date>2021-05-11T19:52:37Z</dc:date>
    <item>
      <title>proc logistic prediction residual</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-prediction-residual/m-p/740568#M35993</link>
      <description>&lt;P&gt;I am using logistic regression for a project, I want to examine whether prediction residuals differ between groups. From SAS output, it provides both Pearson residual and Deviance residual. If I want to examine whether prediction residual differ between groups, which one should I use,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Pearson&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;residual or&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Deviance&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;residual? As SAS code below,&lt;CODE class="  language-sas"&gt;reschi&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;pr&lt;/CODE&gt;&amp;nbsp;is Pearson residual,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="  language-sas"&gt;resdev&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;dr&lt;/CODE&gt;&amp;nbsp;is Deviance residual.&lt;/P&gt;
&lt;P&gt;I spent some time searching, but I haven't got clear idea yet, so I come here to ask the experts. thanks!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc logistic data=Have;
where first=1;
class aaa ppp;
model pass (event="1")=aaa ppp timeaftergrad schoolpass1;
output out=out_first p=prob xbeta=logit resdev=dr h=pii reschi=pr difchisq=difchi; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 17:55:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-prediction-residual/m-p/740568#M35993</guid>
      <dc:creator>superbug</dc:creator>
      <dc:date>2021-05-11T17:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic prediction residual</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-prediction-residual/m-p/740570#M35994</link>
      <description>&lt;P&gt;Well, for the purpose of assessing whether residuals are unusually large,&amp;nbsp;Collett (2003) recommends standardized deviance residuals (STDRESDEV=) or likelihood residuals (RESLIK=), stating that these two residuals perform similarly and are well-approximated by the standard normal distribution. As such, most values would lie between -2 and 2. McCullagh and Nelder (1989) also recommend standardized deviance residuals.&amp;nbsp;Hosmer and Lemeshow (2000) discuss residuals, diagnostics, useful plots, and their interpretation.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 18:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-prediction-residual/m-p/740570#M35994</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-05-11T18:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic prediction residual</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-prediction-residual/m-p/740572#M35995</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks much for your reply!&lt;/P&gt;
&lt;P&gt;Another question, in regular regression residual is calculated as yhat minus y observed, could the residual in logistic regression be calculated similarly, say prob estimated minus prob caculated by plugging in the estimated coefficients?&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 18:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-prediction-residual/m-p/740572#M35995</guid>
      <dc:creator>superbug</dc:creator>
      <dc:date>2021-05-11T18:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic prediction residual</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-prediction-residual/m-p/740573#M35996</link>
      <description>Those are the same thing - the estimated probability *is* calculated from the estimated model parameters and the input data. You could certainly compute a raw residual as the observed response (either 1 or 0) minus the estimated probability.</description>
      <pubDate>Tue, 11 May 2021 18:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-prediction-residual/m-p/740573#M35996</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-05-11T18:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc logistic prediction residual</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-prediction-residual/m-p/740596#M35998</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks much!&lt;/P&gt;
&lt;P&gt;I very much appreciate the information you provided!&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 19:52:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-logistic-prediction-residual/m-p/740596#M35998</guid>
      <dc:creator>superbug</dc:creator>
      <dc:date>2021-05-11T19:52:37Z</dc:date>
    </item>
  </channel>
</rss>

