<?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: Predictive Probabilities in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predictive-Probabilities/m-p/385452#M2579</link>
    <description>&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;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-determine-logistic-regression-formula-from-estimates/td-p/120780" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-determine-logistic-regression-formula-from-estimates/td-p/120780&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think the CODE option from the first link is a good example. The second has a fully worked example you can walk through. &lt;BR /&gt;</description>
    <pubDate>Thu, 03 Aug 2017 19:13:40 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-08-03T19:13:40Z</dc:date>
    <item>
      <title>Predictive Probabilities</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predictive-Probabilities/m-p/384716#M2575</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to use the proc logistic command in order to obtain the predicted probabilities of each of my &lt;U&gt;variables&lt;/U&gt;. Here is the code I am currently using:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc logistic data=gabarit_final simple alpha=0.05 descending;
	class fin_dec
			cons (ref="0")
			fed (ref="0") 
			EE (ref="0")
			educ_can (ref="0")
			/ param=ref;
	model fin_dec =
			cons
			fed
			nbr_ess_quali
			nbr_multi_crit
			EE
			educ_can
			/link=probit;
	output out=pred predicted=p;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 'p' variable created gives me the predicted probabilities for each &lt;U&gt;observations&lt;/U&gt; in the dataset. However, I would like to estimate the probability by &lt;U&gt;variables&lt;/U&gt; instead of by &lt;U&gt;observations&lt;/U&gt;.&amp;nbsp;For example,&amp;nbsp;how could I calculate what is the probability of fin_dec = 1 if EE = 1 and the probability of fin_dec = 1 if EE = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it be better to use proc qlim or proc probit in order to achieve my goal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 18:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predictive-Probabilities/m-p/384716#M2575</guid>
      <dc:creator>Shawn08</dc:creator>
      <dc:date>2017-08-01T18:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Predictive Probabilities</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predictive-Probabilities/m-p/384743#M2576</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/141055"&gt;@Shawn08&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The 'p' variable created gives me the predicted probabilities for each &lt;U&gt;observations&lt;/U&gt; in the dataset. However, I would like to estimate the probability by &lt;U&gt;variables&lt;/U&gt; instead of by &lt;U&gt;observations&lt;/U&gt;.&amp;nbsp;For example,&amp;nbsp;how could I calculate what is the probability of fin_dec = 1 if EE = 1 and the probability of fin_dec = 1 if EE = 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you're including other variables you still need to consider them - typically this would mean setting them to the mean or reference value. I think you can obtain this in PROC LOGISTIC using ESTIMATE statements. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm surprised you're not reporting the ODDS RATIOS though, usually in a logistic model, that's what would be of interest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 19:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predictive-Probabilities/m-p/384743#M2576</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-01T19:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Predictive Probabilities</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predictive-Probabilities/m-p/385012#M2577</link>
      <description>&lt;P&gt;Also check EFFECTPLOT &amp;nbsp;statement and using ODS OUTPUT to get its result. &amp;nbsp;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 15:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predictive-Probabilities/m-p/385012#M2577</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-08-02T15:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Predictive Probabilities</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predictive-Probabilities/m-p/385284#M2578</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would have another question. I'm attemping to manually calculate the predicted value, but I'm unable to do so with the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods trace on;
ods output ParameterEstimates = estimate;
proc logistic data=gabarit_final simple alpha=0.05 descending outest=out;
	class fin_dec
			cons (ref="0")
			metho_AT (ref="0")
			metho_AA (ref="0")
			fed (ref="0") 
			EE (ref="0")
			educ_can (ref="0")
			multi_crit (ref="0")
			/ param=ref;
	model fin_dec =
			cons
			metho_AT
			metho_AA
			fed
			nbr_ess_quali
			multi_crit
			EE
			educ_can
			/link=probit technique=newton expb;
	output out=pred predicted=p xbeta=xb;
	score data=gabarit_final out=estimates2;
run;
ods trace off;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The coefficient I get is the comparison between the 0 and 1 of each variable. However, I am unable to use these in order to manually calculate the predicted value. I know that I don't need to calculate it as it is already given, but I would like to learn how SAS does it in order to understand a bit more how SAS work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2017 13:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predictive-Probabilities/m-p/385284#M2578</guid>
      <dc:creator>Shawn08</dc:creator>
      <dc:date>2017-08-03T13:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Predictive Probabilities</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predictive-Probabilities/m-p/385452#M2579</link>
      <description>&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;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-determine-logistic-regression-formula-from-estimates/td-p/120780" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/How-to-determine-logistic-regression-formula-from-estimates/td-p/120780&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think the CODE option from the first link is a good example. The second has a fully worked example you can walk through. &lt;BR /&gt;</description>
      <pubDate>Thu, 03 Aug 2017 19:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predictive-Probabilities/m-p/385452#M2579</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-08-03T19:13:40Z</dc:date>
    </item>
  </channel>
</rss>

