<?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 out and p statements in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-out-and-p-statements/m-p/130760#M6849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It kind of depends on what coding you used for the dependent variable.&amp;nbsp; Do your predicted probabilities look like (1 - expected prob)?&amp;nbsp; Or are they completely mucked about?&amp;nbsp; I wonder about this because of the 0 in your manual equation--I assume that it is a negative sign in your actual calculations.&amp;nbsp; You might want to add XBETA=logitvalue to the OUTPUT statement to check if your difference is, in fact, due to rounding.&amp;nbsp; Logitvalue should be equal to (intercept+ X*B1 +Y*B2 + Z*B3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jul 2013 17:56:10 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2013-07-10T17:56:10Z</dc:date>
    <item>
      <title>Proc logistic out and p statements</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-out-and-p-statements/m-p/130757#M6846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SO I am having trouble knowing why my predicted probabilities do not match up with what I expect it to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am comparing this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; proc logistic data=natdata outmodel=test333;&lt;/P&gt;&lt;P&gt;class ioclass;&lt;/P&gt;&lt;P&gt; model bad (event='1') = X Y Z&lt;/P&gt;&lt;P&gt; output out=reg_result p=predprob;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And in reg_result there is a estimated probability variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I manually create a variable called probability which is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/(1+e^0(intercept+ X*B1 +Y*B2 + Z*B3))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with B1-B3 being the regression coefficients. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ignoring differences due to rounding, shouldnt the two columns be the same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 17:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-out-and-p-statements/m-p/130757#M6846</guid>
      <dc:creator>Xamius32</dc:creator>
      <dc:date>2013-07-10T17:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic out and p statements</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-out-and-p-statements/m-p/130758#M6847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post your full code used, the code above doesn't make sense. You specify a class variable but don't use it and the model statement is missing a semicolon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, the predicted probability will match the calculated probability if done correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 17:47:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-out-and-p-statements/m-p/130758#M6847</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-07-10T17:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic out and p statements</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-out-and-p-statements/m-p/130759#M6848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a good reference thread that has a worked example. &lt;/P&gt;&lt;P&gt;&lt;A __default_attr="155313" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/" modifiedtitle="true" title="Re: How to determine logistic regression formula from estimates output"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 17:52:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-out-and-p-statements/m-p/130759#M6848</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-07-10T17:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc logistic out and p statements</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-out-and-p-statements/m-p/130760#M6849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It kind of depends on what coding you used for the dependent variable.&amp;nbsp; Do your predicted probabilities look like (1 - expected prob)?&amp;nbsp; Or are they completely mucked about?&amp;nbsp; I wonder about this because of the 0 in your manual equation--I assume that it is a negative sign in your actual calculations.&amp;nbsp; You might want to add XBETA=logitvalue to the OUTPUT statement to check if your difference is, in fact, due to rounding.&amp;nbsp; Logitvalue should be equal to (intercept+ X*B1 +Y*B2 + Z*B3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 17:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-logistic-out-and-p-statements/m-p/130760#M6849</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2013-07-10T17:56:10Z</dc:date>
    </item>
  </channel>
</rss>

