<?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: How to output &amp;quot;objective value&amp;quot; in proc model? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-output-quot-objective-value-quot-in-proc-model/m-p/600845#M76343</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have a SOLVE statement?&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="AAstatement"&gt;SOLVE&lt;/SPAN&gt; &lt;SPAN class="AAstatementoptional"&gt;variables &amp;lt;SATISFY= equations&amp;gt; &amp;lt;/options&amp;gt;&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the options that you need are:&lt;/P&gt;
&lt;P&gt;OUT=&lt;SPAN class=" AAargument"&gt;SAS-data-set&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Only the solution values are output by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" AAterm "&gt;OUTACTUAL &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;outputs the actual values of the solved variables read from the input data set to the OUT= data set. This option is applicable only if the OUT= option is specified.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" AAterm "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" AAterm "&gt;OUTOBJVALS &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;writes the objective function value to the OBJVALS variable in the OUT= data set. The objective function value is computed only when the OPTIMIZE solution method is specified. This value is close to 0 when an unbounded simultaneous solution is computed and can be greater than 0 when bounds are active in the solution. This option applies only if the OUT= option is specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" AAterm "&gt;OUTPREDICT &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;writes the solution values to the OUT= data set. This option applies only if the OUT= option is specified.&lt;/P&gt;
&lt;P&gt;The OUTPREDICT option is the default unless one of the other output options is specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Oct 2019 21:14:00 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2019-10-31T21:14:00Z</dc:date>
    <item>
      <title>How to output "objective value" in proc model?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-output-quot-objective-value-quot-in-proc-model/m-p/600627#M76331</link>
      <description>&lt;P&gt;I am doing bootstraps by rerunning proc model for 1000 randomly selected samples.&lt;/P&gt;&lt;P&gt;It's a system of equations estimated by GMM and the object of interest is the "objective value"&lt;/P&gt;&lt;P&gt;(actually objective*N), which is Hansen's J statistic. I want to save this to an output file at&lt;/P&gt;&lt;P&gt;each bootstrap iteration.&lt;/P&gt;&lt;P&gt;I cannot find how to do this in any of the SAS documentation.&lt;/P&gt;&lt;P&gt;I'm running SAS 9.4.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 06:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-output-quot-objective-value-quot-in-proc-model/m-p/600627#M76331</guid>
      <dc:creator>pmackay</dc:creator>
      <dc:date>2019-10-31T06:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to output "objective value" in proc model?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-output-quot-objective-value-quot-in-proc-model/m-p/600845#M76343</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have a SOLVE statement?&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="AAstatement"&gt;SOLVE&lt;/SPAN&gt; &lt;SPAN class="AAstatementoptional"&gt;variables &amp;lt;SATISFY= equations&amp;gt; &amp;lt;/options&amp;gt;&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the options that you need are:&lt;/P&gt;
&lt;P&gt;OUT=&lt;SPAN class=" AAargument"&gt;SAS-data-set&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Only the solution values are output by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" AAterm "&gt;OUTACTUAL &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;outputs the actual values of the solved variables read from the input data set to the OUT= data set. This option is applicable only if the OUT= option is specified.&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" AAterm "&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" AAterm "&gt;OUTOBJVALS &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;writes the objective function value to the OBJVALS variable in the OUT= data set. The objective function value is computed only when the OPTIMIZE solution method is specified. This value is close to 0 when an unbounded simultaneous solution is computed and can be greater than 0 when bounds are active in the solution. This option applies only if the OUT= option is specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=" AAterm "&gt;OUTPREDICT &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;writes the solution values to the OUT= data set. This option applies only if the OUT= option is specified.&lt;/P&gt;
&lt;P&gt;The OUTPREDICT option is the default unless one of the other output options is specified.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 21:14:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-output-quot-objective-value-quot-in-proc-model/m-p/600845#M76343</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2019-10-31T21:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to output "objective value" in proc model?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-output-quot-objective-value-quot-in-proc-model/m-p/600847#M76344</link>
      <description>&lt;P&gt;Latest 9.4 documentation&lt;/P&gt;
&lt;P&gt;on Hansen’s J test statistic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS/ETS 15.1&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/ets/151/model.pdf" target="_blank"&gt;https://support.sas.com/documentation/onlinedoc/ets/151/model.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;p.1495&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;p.1744: reference to Hansen, L. P. publications.&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 21:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-output-quot-objective-value-quot-in-proc-model/m-p/600847#M76344</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2019-10-31T21:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to output "objective value" in proc model?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-output-quot-objective-value-quot-in-proc-model/m-p/600849#M76345</link>
      <description>&lt;P&gt;You are interested in:&lt;/P&gt;
&lt;P&gt;the object of interest is the "objective value"(actually objective*N), which is Hansen's J statistic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have this statistic in a table for the last bootstrap iteration (nbr. 1000)?&lt;/P&gt;
&lt;P&gt;Are you missing the first 999 values&lt;/P&gt;
&lt;P&gt;or don't you have anything?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 21:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-output-quot-objective-value-quot-in-proc-model/m-p/600849#M76345</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2019-10-31T21:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to output "objective value" in proc model?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-output-quot-objective-value-quot-in-proc-model/m-p/601307#M76380</link>
      <description>&lt;P&gt;That did not work; I'm using a FIT statement - not a SOLVE stement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this did:&lt;/P&gt;&lt;P&gt;"ods output GMMTestStats=GMMST;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding this ODS statement before the Proc Model step outputs exactly what I need to a data file.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 04:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-output-quot-objective-value-quot-in-proc-model/m-p/601307#M76380</guid>
      <dc:creator>pmackay</dc:creator>
      <dc:date>2019-11-04T04:52:42Z</dc:date>
    </item>
  </channel>
</rss>

