<?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 Calculate the probability of a logistic regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291607#M15509</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I calculate the probability of a logistic regression model given the values of independent variables not only by hand but also by SAS? Please show me some sample code.&lt;/P&gt;</description>
    <pubDate>Sun, 14 Aug 2016 20:40:27 GMT</pubDate>
    <dc:creator>chowfar</dc:creator>
    <dc:date>2016-08-14T20:40:27Z</dc:date>
    <item>
      <title>Calculate the probability of a logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291607#M15509</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I calculate the probability of a logistic regression model given the values of independent variables not only by hand but also by SAS? Please show me some sample code.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 20:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291607#M15509</guid>
      <dc:creator>chowfar</dc:creator>
      <dc:date>2016-08-14T20:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the probability of a logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291610#M15510</link>
      <description>&lt;P&gt;This is known as scoring a model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As of SAS 9.4 there's the CODE statement that will generate the code you need to score your data.&lt;/P&gt;
&lt;P&gt;See several of the options with example code here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_blank"&gt;http://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This thread has a fully worked example that's a manual process BEFORE the availability of the CODE statement.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-determine-logistic-regression-formula-from-estimates/m-p/120780/highlight/true#M6321" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-determine-logistic-regression-formula-from-estimates/m-p/120780/highlight/true#M6321&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd use the CODE option now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2016 21:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291610#M15510</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-14T21:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the probability of a logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291621#M15511</link>
      <description>&lt;P&gt;Note that the CODE generation is not implemented for all models. I learned the hard way (not in the doc) that I&amp;nbsp;can't get the code for scoring a model containing a constructed spline effect. I am using version 13.1 but I don't see any mention of the feature being added to more recent versions.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 01:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291621#M15511</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-08-15T01:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the probability of a logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291624#M15512</link>
      <description>&lt;PRE&gt;
There are about three way to score data: CODE , SCORE, STORE statements.
Check documentation example Example 72.16: Scoring Data Sets .

The simplest is SCORE

proc logistic data=Crops;
model Crop=x1-x4 / link=glogit;
score data=Test  out=Score1;
run;

&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Aug 2016 02:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291624#M15512</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-08-15T02:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the probability of a logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291628#M15513</link>
      <description>lets say I have the values for x1-x4, how can I find the logistic probability of Crop. What should be the code?</description>
      <pubDate>Mon, 15 Aug 2016 02:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291628#M15513</guid>
      <dc:creator>chowfar</dc:creator>
      <dc:date>2016-08-15T02:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the probability of a logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291629#M15514</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/98831"&gt;@chowfar﻿&lt;/a&gt;&amp;nbsp;Have you looked at any of the indicated references? Which ones were unclear?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 02:52:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291629#M15514</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-08-15T02:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the probability of a logistic regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291630#M15515</link>
      <description>&lt;P&gt;Try&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp﻿&lt;/a&gt;'s code. Start by omitting &lt;STRONG&gt;data=test&lt;/STRONG&gt; to score the original data (the crops dataset).&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2016 03:11:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculate-the-probability-of-a-logistic-regression/m-p/291630#M15515</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-08-15T03:11:38Z</dc:date>
    </item>
  </channel>
</rss>

