<?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: Predicting outcome in Sample Selection Model using PROC QLIM in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-outcome-in-Sample-Selection-Model-using-PROC-QLIM/m-p/885370#M4713</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201923"&gt;@ZMX&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, in my previous post, '&lt;SPAN&gt;CONDITOINAL' is a typo, it should be CONDITIONAL &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2023 21:45:19 GMT</pubDate>
    <dc:creator>SASCom1</dc:creator>
    <dc:date>2023-07-18T21:45:19Z</dc:date>
    <item>
      <title>Predicting outcome in Sample Selection Model using PROC QLIM</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-outcome-in-Sample-Selection-Model-using-PROC-QLIM/m-p/882029#M4697</link>
      <description>&lt;P&gt;I was looking at the example below on the SAS website and I was wondering how to use the results of this model to predict unconditional wages (ie. E(w) versus E(w|inlf=1).&lt;/P&gt;&lt;P&gt;Are the wages predicted using the second regression conditional wage (ie. E(wage|inlf=1) )?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc qlim data=mroz;
      model inlf = nwifeinc educ exper expersq
                   age kidslt6 kidsge6 /discrete;
      model lwage = educ exper expersq / select(inlf=1);
   run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 20:56:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-outcome-in-Sample-Selection-Model-using-PROC-QLIM/m-p/882029#M4697</guid>
      <dc:creator>ZMX</dc:creator>
      <dc:date>2023-06-22T20:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting outcome in Sample Selection Model using PROC QLIM</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-outcome-in-Sample-Selection-Model-using-PROC-QLIM/m-p/885369#M4712</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201923"&gt;@ZMX&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can obtain unconditional expected value and conditional expected values using the EXPECTED and CONDITOINAL options in the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/etsug/etsug_qlim_syntax31.htm" target="_self"&gt;OUTPUT statement&lt;/A&gt; directly in PROC QLIM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the sample selection model, the PREDICTED value is equal to the EXPECTED value, which is also equal to the XBETA value for the continuous dependent variable in the main equation(lwage in the example). You can verify this by specifying the OUTPUT statement like below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;output out = outdata expected xbeta predicted conditional mills ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and look at the outdata data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The conditional expected value differs from the&amp;nbsp; expected/predicted/xbeta values by adding to it another term,&amp;nbsp; rho*sigma_lwage*Mills_inlf, in other words,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Predicted_lwage = Expected_lwage = xbeta_lwage&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;Conditional_lwage = xbeta_lwage + rho*sigma_lwage*Mills_inlf ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 21:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-outcome-in-Sample-Selection-Model-using-PROC-QLIM/m-p/885369#M4712</guid>
      <dc:creator>SASCom1</dc:creator>
      <dc:date>2023-07-18T21:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting outcome in Sample Selection Model using PROC QLIM</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-outcome-in-Sample-Selection-Model-using-PROC-QLIM/m-p/885370#M4713</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/201923"&gt;@ZMX&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, in my previous post, '&lt;SPAN&gt;CONDITOINAL' is a typo, it should be CONDITIONAL &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 21:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-outcome-in-Sample-Selection-Model-using-PROC-QLIM/m-p/885370#M4713</guid>
      <dc:creator>SASCom1</dc:creator>
      <dc:date>2023-07-18T21:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Predicting outcome in Sample Selection Model using PROC QLIM</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-outcome-in-Sample-Selection-Model-using-PROC-QLIM/m-p/903407#M4751</link>
      <description>&lt;P&gt;It did help. Thank you for the response. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 03:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/Predicting-outcome-in-Sample-Selection-Model-using-PROC-QLIM/m-p/903407#M4751</guid>
      <dc:creator>ZMX</dc:creator>
      <dc:date>2023-11-16T03:25:58Z</dc:date>
    </item>
  </channel>
</rss>

