<?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 MODEL's solution does not seem right in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472305#M3193</link>
    <description>&lt;P&gt;Additional details: I input the results for delta and T back into these two equations. The outcome is not exactly zero. Could anyone help me with this? Thank you in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2018 22:03:08 GMT</pubDate>
    <dc:creator>OceanDream</dc:creator>
    <dc:date>2018-06-21T22:03:08Z</dc:date>
    <item>
      <title>PROC MODEL's solution does not seem right</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472217#M3190</link>
      <description>&lt;P&gt;I am using PROC MODEL function to solve two unknown variables (delta and T) in two nonlinear equations (shown below). The results I got do not seem right in that values of T for so many observations are same and extremely small (close to zero). Could anyone help me and see what is wrong in my code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*proc model data=USE&amp;nbsp;noprint out=WANT;&lt;BR /&gt;eq.one = PROBNORM((-log(PD)-(s - (delta*delta)/2)*T)/(delta*sqrt(T)))&lt;/P&gt;&lt;P&gt;-(PD*exp(s*T)* PROBNORM((-log(PD)-(s - (delta*delta)/2)*T)/(delta*sqrt(T))- delta*sqrt(T)))&lt;/P&gt;&lt;P&gt;-(1-PD);&lt;BR /&gt;eq.two = delta*PROBNORM((-log(PD)-(s - (delta*delta)/2)*T)/(delta*sqrt(T)))-delta_E*(1-PD);&lt;BR /&gt;solve delta T /solveprint;&lt;BR /&gt;id&amp;nbsp;firmid date pd s delta_e;&lt;BR /&gt;run;*/&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 17:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472217#M3190</guid>
      <dc:creator>OceanDream</dc:creator>
      <dc:date>2018-06-21T17:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MODEL's solution does not seem right</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472281#M3191</link>
      <description>&lt;P&gt;Without data&amp;nbsp;and information as to why a specific model and options&amp;nbsp;may have been chosen it is extremely difficult to assess "rightness" of a model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Small values close to 0 are coming from 1) your data and 2) your model options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output, or may you need to request additional output, from the&amp;nbsp;procedure may have some diagnostic hints.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 19:57:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472281#M3191</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-21T19:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MODEL's solution does not seem right</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472303#M3192</link>
      <description>&lt;P&gt;Hi ballardw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your comment. My follow-up question is if I need to set initial values for delta and T for SAS for the calculation. Is the code the correct way for calculation two unknown variables in two equations? I saw someone posted (see the link below) somewhat similar calculation using loop. For my calculation, do I need to use loop?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www-personal.umich.edu/~shumway/papers.dir/nuiter99_print.sas" target="_blank"&gt;http://www-personal.umich.edu/~shumway/papers.dir/nuiter99_print.sas&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 21:59:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472303#M3192</guid>
      <dc:creator>OceanDream</dc:creator>
      <dc:date>2018-06-21T21:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MODEL's solution does not seem right</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472305#M3193</link>
      <description>&lt;P&gt;Additional details: I input the results for delta and T back into these two equations. The outcome is not exactly zero. Could anyone help me with this? Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 22:03:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472305#M3193</guid>
      <dc:creator>OceanDream</dc:creator>
      <dc:date>2018-06-21T22:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MODEL's solution does not seem right</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472355#M3194</link>
      <description>Hi ballardw,&lt;BR /&gt;&lt;BR /&gt;in terms of model options, do you know anyway that I can constrain unknown variable to certain range? Thanks for your reply.</description>
      <pubDate>Fri, 22 Jun 2018 02:23:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472355#M3194</guid>
      <dc:creator>OceanDream</dc:creator>
      <dc:date>2018-06-22T02:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MODEL's solution does not seem right</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472530#M3196</link>
      <description>&lt;P&gt;I don't have access to Proc Model so don't have a way to directly assess options other than reading the documentation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue about taking output and comparing back to another set, especially with your comment about lots of very small values, could well be round-off and precision of storage. With SAS working with basically 16 significant digits for most purposes if the result of the model "should" include values below 1E-16 then the values get truncated or rounded (hard to tell sometimes which).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might consider a difference of less than 1E-10 or similar close enough to "equal 0" for use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice that the SAS procedure used for comparing data sets, Proc Compare actually has options to set "how close is considered equal" for numeric comparisons, which I use because I create data set weights and often have issues with weights not actually equaling the population they should equal. But the difference is usually less than 1E-8. So I consider them equal as I don't generally expect a difference of 0.00000001 "persons" to be practically significant in my overall results.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 16:03:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/PROC-MODEL-s-solution-does-not-seem-right/m-p/472530#M3196</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-22T16:03:41Z</dc:date>
    </item>
  </channel>
</rss>

