<?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: logistic regression: sign of estimates/coefficients in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817661#M40372</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To determine the&amp;nbsp;&lt;SPAN&gt;relative importance of each factor in the equation, you can indeed look at the (absolute value of the)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;standardized estimates for the parameters in the "Analysis of Maximum Likelihood Estimates" table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But to get these standardized betas , you do not need to fit your model on standardized variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can specify the &lt;SPAN class=" aa-term "&gt;&lt;STRONG&gt;STB&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;option on the MODEL statement of PROC LOGISTIC to get these.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, a sign opposite to the one you expect can be caused by multicollinearity&amp;nbsp;(between independent variables).&lt;BR /&gt;The question is : do you want your model to only predict well (in that case multicollinearity is less of a problem) or do you want your model to be a 'glass box' (focus on interpretability and explain-ability)? In the latter case, you should try to get rid of multicollinearity or reduce it to a reasonable amount.&lt;BR /&gt;&lt;BR /&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Jun 2022 13:12:54 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2022-06-12T13:12:54Z</dc:date>
    <item>
      <title>logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817358#M40349</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi All, &amp;nbsp; I have built a logistic regression model using weight of evidence transformation in SAS. &amp;nbsp; My model shows good performance (in terms of discriminatory power (AUC and gini) and accuracy (Hosmer and lemeshow chi square test). &amp;nbsp; However, the coefficient/estimate of one of the independent is coming out to be positive (all other coefficients, including the intercept are negative). Does this mean there is something wrong with including this factor in the model? I am being told this factor needs to be dropped because of opposite sign. Can somebody please explain if this is true? and why so?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 20:27:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817358#M40349</guid>
      <dc:creator>adjn258</dc:creator>
      <dc:date>2022-06-09T20:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817422#M40350</link>
      <description>&lt;P&gt;Question was in 'Forecasting' board.&lt;/P&gt;
&lt;P&gt;I have moved it to 'Statistical Procedures' board as it as about Logistic Regression and WoE predictors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 09:38:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817422#M40350</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-06-10T09:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817426#M40351</link>
      <description>&lt;P&gt;Whoever told you this is either confused or has some domain-specific knowledge that you have not shared. In general, a model can have some parameter estimates that are positive and others that are negative. It depends on the relationship between the response variable and the effect.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_logistic_gettingstarted.htm" target="_self"&gt;in the PROC LOGISTIC documentation,&lt;/A&gt;&amp;nbsp;the Getting Started example forms a model in which the Intercept term and an interaction effect have negative estimates, but the other estimates are positive. &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_logistic_examples02.htm" target="_self"&gt;Other examples&lt;/A&gt; also produce models that have negative and positive parameter estimates.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 10:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817426#M40351</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-06-10T10:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817437#M40352</link>
      <description>&lt;P&gt;I totally agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; 's opinion.&amp;nbsp; I think your model fit very well .&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;owever, the coefficient/estimate of one of the independent is coming out to be positive&amp;nbsp;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;is due to your data , NOT from Logistic Model .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you delete that variable , you will find another variable is positive , if you delete another variable ,you will find another another variable is positive . It is endless . I think your BOSS is special to business , idiot to statistical model .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;P.S. maybe your boss think all negative would be more suitable to business for Credit Score Card ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 12:08:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817437#M40352</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-10T12:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817642#M40361</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I totally agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; 's opinion.&amp;nbsp; I think your model fit very well .&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;owever, the coefficient/estimate of one of the independent is coming out to be positive&amp;nbsp;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;is due to your data , NOT from Logistic Model .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;P.S. maybe your boss think all negative would be more suitable to business for Credit Score Card ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or maybe the sign of a variable as collected is inappropriate for use this way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Loss" for example might be provided as positive (as in "I lost 10 dollars", the explicit value mentioned is 10) but for a model the value should be negative (-10 effect on balance)&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2022 09:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817642#M40361</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-12T09:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817653#M40367</link>
      <description>&lt;P&gt;Thanks you for all your inputs! i think you have it spot on! I was worried that maybe it is not possible statistically, that signs can be opposite. But it seems more of a worry for business usage from credit scoring view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a further question -&amp;nbsp; if one sign is opposite, how do I determine the weight of each factor in the final model? Currently, I am standardizing all factors (X-mean/std) and then rerunning the logistic equation - then I take the absolute value of the coefficients to arrive at the weights. I have a feeling this is probably not the best way, i am going wrong somewhere.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2022 12:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817653#M40367</guid>
      <dc:creator>adjn258</dc:creator>
      <dc:date>2022-06-12T12:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817655#M40368</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I have a further question - if one sign is opposite, how do I determine the weight of each factor in the final model?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using my understanding of "weight of each factor in the model", I would say no such thing is possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Currently, I am standardizing all factors (X-mean/std) and then rerunning the logistic equation - then I take the absolute value of the coefficients to arrive at the weights.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This allows you to COMPARE the regression coefficients, the largest in absolute value will have the biggest impact when a 1SD change is made.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please understand that the coefficients are not independent of each other, and the variables in your data set are correlated with each other. So there is no real concept of a variable in the data moving 1SD while the other variables are held constant — this is theoretically possible, and mathematically possible, but it does not happen in real data sets.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2022 12:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817655#M40368</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-06-12T12:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817656#M40369</link>
      <description>&lt;P&gt;Thank you. But the idea of weightage (of what I am trying to derive) is - what is the relative importance of each factor in the equation, since it will be used for scoring - can you please tell me what would be the best way to arrive at that?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2022 12:59:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817656#M40369</guid>
      <dc:creator>adjn258</dc:creator>
      <dc:date>2022-06-12T12:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817657#M40370</link>
      <description>Just to clarify more, that is, all other variables, being constant.</description>
      <pubDate>Sun, 12 Jun 2022 13:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817657#M40370</guid>
      <dc:creator>adjn258</dc:creator>
      <dc:date>2022-06-12T13:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817659#M40371</link>
      <description>Apologies for this question - i re-read your answer, i think you ve already answered this.</description>
      <pubDate>Sun, 12 Jun 2022 13:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817659#M40371</guid>
      <dc:creator>adjn258</dc:creator>
      <dc:date>2022-06-12T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817661#M40372</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To determine the&amp;nbsp;&lt;SPAN&gt;relative importance of each factor in the equation, you can indeed look at the (absolute value of the)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;standardized estimates for the parameters in the "Analysis of Maximum Likelihood Estimates" table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But to get these standardized betas , you do not need to fit your model on standardized variables.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can specify the &lt;SPAN class=" aa-term "&gt;&lt;STRONG&gt;STB&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;option on the MODEL statement of PROC LOGISTIC to get these.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, a sign opposite to the one you expect can be caused by multicollinearity&amp;nbsp;(between independent variables).&lt;BR /&gt;The question is : do you want your model to only predict well (in that case multicollinearity is less of a problem) or do you want your model to be a 'glass box' (focus on interpretability and explain-ability)? In the latter case, you should try to get rid of multicollinearity or reduce it to a reasonable amount.&lt;BR /&gt;&lt;BR /&gt;Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2022 13:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817661#M40372</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-06-12T13:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817769#M40382</link>
      <description>I think OP's boss want Score Card conform to the business logistic (a.k.a have better and reasonable explanation in business).&lt;BR /&gt;For example :&lt;BR /&gt;X variable (INCOME) have positive estimator, Y variable is  the probability of default . &lt;BR /&gt;In our mind, the more INCOME should be less the probability of default (a.k.a they have negative correlation).&lt;BR /&gt;wheras , INCOME have positive estimator (a.k.a they have positive correlation).&lt;BR /&gt;wherefore, it is very hard to explain this Score Card to customer .&lt;BR /&gt;Why Score Card would give us a different result with real business logistic ?&lt;BR /&gt;</description>
      <pubDate>Mon, 13 Jun 2022 12:39:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817769#M40382</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-13T12:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817770#M40383</link>
      <description>" if one sign is opposite, how do I determine the weight of each factor in the final model?"&lt;BR /&gt;I don't understand . What do you mean by "weight"  ?&lt;BR /&gt;Once you got estimator and WOE , you could get Score Card ,no need to "standardizing all factors (X-mean/std) ".&lt;BR /&gt;This variable's Score also has different sign with other variables's Socre.</description>
      <pubDate>Mon, 13 Jun 2022 12:43:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817770#M40383</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-13T12:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817771#M40384</link>
      <description>I think CORRB option on the MODEL statement of PROC LOGISTIC could find out the multicollinearity .&lt;BR /&gt;As I said ,even there are no multicollinearity in MODEL ,you still could get one positive estimator ,others are negative.&lt;BR /&gt;It is coming from data ,not from MODEL .&lt;BR /&gt;Maybe OP's boss want Score Card to have more explanation in real business .that is reason OP was told to drop that positive variable.</description>
      <pubDate>Mon, 13 Jun 2022 12:47:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817771#M40384</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-13T12:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817772#M40385</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Why Score Card would give us a different result with real business logistic ?&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I guess you mean "business logic" (?).&lt;BR /&gt;Opposite (contra-intuitive) signs are always possible.&lt;/P&gt;
&lt;P&gt;First check the training data and how they were collected. There you might find a reason ( aha - erlebnis ).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If training data are OK, ... I keep emphasizing, multi-collinearity is an ugly beast !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 12:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817772#M40385</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-06-13T12:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression: sign of estimates/coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817778#M40388</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;I guess you mean "business logic" (?).&lt;BR /&gt;Opposite (contra-intuitive) signs are always possible.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That is what I mean. But for OP ,it is very hard to explain to customer ,maybe that is reason to drop that positive variable.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 13:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-sign-of-estimates-coefficients/m-p/817778#M40388</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-13T13:07:20Z</dc:date>
    </item>
  </channel>
</rss>

