<?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: Confused - Hard coding Logistic Reg Equation in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Confused-Hard-coding-Logistic-Reg-Equation/m-p/231902#M12203</link>
    <description>&lt;P&gt;You right Reeza. I&amp;nbsp;hadwrong value for one of the coefficients.&amp;nbsp;&lt;img id="mansad" class="emoticon emoticon-mansad" src="https://communities.sas.com/i/smilies/16x16_man-sad.png" alt="Man Sad" title="Man Sad" /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Oct 2015 19:56:23 GMT</pubDate>
    <dc:creator>sachin01663</dc:creator>
    <dc:date>2015-10-27T19:56:23Z</dc:date>
    <item>
      <title>Confused - Hard coding Logistic Reg Equation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confused-Hard-coding-Logistic-Reg-Equation/m-p/231826#M12196</link>
      <description>&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;I am new to logistic reg so I think I am missing some basics on how to write equation from &lt;/SPAN&gt;Maximum Likelihood Estimates&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;I am in the final steps of scoring a dataset after building a Logistic Regression model. I have used Reference Cell coding for categorical variable. &lt;STRONG&gt;The confusion I have is&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;If I use the Score statement in Proc Logistic, I get the output table with scored probabilities column called P_1. However, If I try to write equation from&amp;nbsp;&lt;/SPAN&gt;Maximum Likelihood Estimates&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;, I get different probability values.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Why is that so? Is it because, in the equation, I am not mentioning the reference level for any categorical variable. Can someone please help me write equation for these results (just an example):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Maximum liklihood Coefficients:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Intercept: -0.2367&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Var 1: &amp;nbsp; &amp;nbsp; Age_LE_18: This is reference level&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Age_18_to_40: 0.3245&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Age_Above_40: 0.4125&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Var2 &amp;nbsp; &amp;nbsp; &amp;nbsp; Good_credit_History: Reference Level&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bad_Credit_History: &amp;nbsp;- 0.8795&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;The equation I am writing is: &amp;nbsp; -0.2367 &amp;nbsp;+ &amp;nbsp;0.3245*(Var1='Age_LE_18') &amp;nbsp;+&lt;SPAN class="apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;0.4125*(Var1='Age_Above_40') &amp;nbsp;- 0.8795* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (VAR2='Bad_Credit_History')&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;If you see, &lt;STRONG&gt;I am not mentioning Reference levels in my equation&lt;/STRONG&gt;. If this is right, then why the probabilities do not match with Score Statement?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm; margin-bottom: .0001pt; line-height: 15.0pt; orphans: auto; text-align: start; widows: auto; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #333333;"&gt;Sachin&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 14:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confused-Hard-coding-Logistic-Reg-Equation/m-p/231826#M12196</guid>
      <dc:creator>sachin01663</dc:creator>
      <dc:date>2015-10-27T14:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Confused - Hard coding Logistic Reg Equation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confused-Hard-coding-Logistic-Reg-Equation/m-p/231840#M12197</link>
      <description>&lt;P&gt;Usually this is because you're doing something wrong. Post your full SAS code, output and where you think it's wrong. Proc Logistic score output&amp;nbsp;will match the hand calculated output. If you even search on here, you'll find examples where I've coded this out.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 15:31:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confused-Hard-coding-Logistic-Reg-Equation/m-p/231840#M12197</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-27T15:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Confused - Hard coding Logistic Reg Equation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Confused-Hard-coding-Logistic-Reg-Equation/m-p/231902#M12203</link>
      <description>&lt;P&gt;You right Reeza. I&amp;nbsp;hadwrong value for one of the coefficients.&amp;nbsp;&lt;img id="mansad" class="emoticon emoticon-mansad" src="https://communities.sas.com/i/smilies/16x16_man-sad.png" alt="Man Sad" title="Man Sad" /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 19:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Confused-Hard-coding-Logistic-Reg-Equation/m-p/231902#M12203</guid>
      <dc:creator>sachin01663</dc:creator>
      <dc:date>2015-10-27T19:56:23Z</dc:date>
    </item>
  </channel>
</rss>

