<?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 Optimization in macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591427#M169407</link>
    <description>&lt;DIV class="container"&gt;&lt;DIV class="snippet-hidden"&gt;&lt;DIV&gt;&lt;DIV class="inner-content clearfix"&gt;&lt;DIV&gt;&lt;DIV class="question"&gt;&lt;DIV class="post-layout"&gt;&lt;DIV class="postcell post-layout--right"&gt;&lt;DIV class="post-text"&gt;&lt;P&gt;Does anyone have experience with a SAS optimizer to support fitting of complex, multi-stage (several data steps and procs), non-linear function fitting? This would presumably be written in macro language. I'm on SAS 9.4.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 25 Sep 2019 08:49:43 GMT</pubDate>
    <dc:creator>Joe_GM</dc:creator>
    <dc:date>2019-09-25T08:49:43Z</dc:date>
    <item>
      <title>Optimization in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591427#M169407</link>
      <description>&lt;DIV class="container"&gt;&lt;DIV class="snippet-hidden"&gt;&lt;DIV&gt;&lt;DIV class="inner-content clearfix"&gt;&lt;DIV&gt;&lt;DIV class="question"&gt;&lt;DIV class="post-layout"&gt;&lt;DIV class="postcell post-layout--right"&gt;&lt;DIV class="post-text"&gt;&lt;P&gt;Does anyone have experience with a SAS optimizer to support fitting of complex, multi-stage (several data steps and procs), non-linear function fitting? This would presumably be written in macro language. I'm on SAS 9.4.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Sep 2019 08:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591427#M169407</guid>
      <dc:creator>Joe_GM</dc:creator>
      <dc:date>2019-09-25T08:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591492#M169438</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292203"&gt;@Joe_GM&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;DIV class="container"&gt;
&lt;DIV class="snippet-hidden"&gt;
&lt;DIV&gt;
&lt;DIV class="inner-content clearfix"&gt;
&lt;DIV&gt;
&lt;DIV class="question"&gt;
&lt;DIV class="post-layout"&gt;
&lt;DIV class="postcell post-layout--right"&gt;
&lt;DIV class="post-text"&gt;
&lt;P&gt;Does anyone have experience with a SAS optimizer to support fitting of complex, multi-stage (several data steps and procs), non-linear function fitting? This would presumably be written in macro language. I'm on SAS 9.4.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;When you say "a SAS optimizer", do you have a particular optimizer in mind, or particular optimization function in mind?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 13:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591492#M169438</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-25T13:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591504#M169446</link>
      <description>&lt;P&gt;I am looking to adjust a set of input parameters to fit a set of outputs to closely match required values. I would expect this to be achieved by minimising e.g. a sum of squared differences. I would be looking to use this for a variety of different 'models'.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 13:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591504#M169446</guid>
      <dc:creator>Joe_GM</dc:creator>
      <dc:date>2019-09-25T13:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591510#M169451</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292203"&gt;@Joe_GM&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am looking to adjust a set of input parameters to fit a set of outputs to closely match required values. I would expect this to be achieved by minimising e.g. a sum of squared differences. I would be looking to use this for a variety of different 'models'.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There are many procedures in SAS that minimize the sum of squared differences. Why do you need to build your own?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 13:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591510#M169451</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-25T13:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591519#M169459</link>
      <description>&lt;P&gt;All the examples that I've seen express the model within a single procedure. My models involve several DATA and PROC steps. Can any of the SAS optimizers handle such a model?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 13:39:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591519#M169459</guid>
      <dc:creator>Joe_GM</dc:creator>
      <dc:date>2019-09-25T13:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591525#M169464</link>
      <description>&lt;P&gt;Please be specific about what you are doing.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 13:44:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591525#M169464</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-25T13:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591552#M169476</link>
      <description>&lt;P&gt;The input parameters are part of a correlation matrix which is fed into PROC COPULA:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc copula;
    var randomfactor1 randomfactor2 randomfactor3 randomfactor4;
    define cop normal (corr = correlmatrix);
    simulate cop / ndraws = %eval(&amp;amp;numsims.*&amp;amp;numtimesteps.)
                   seed = &amp;amp;seed.
                   outuniform = simcopula
                   plots = (datatype=original); 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The output simulations are merged with a set of rates, using the random factors to calculate sets of rates over the &lt;CODE class=" language-sas"&gt;numtimesteps&lt;/CODE&gt; for each of the &lt;CODE class=" language-sas"&gt;numsims&lt;/CODE&gt;.&lt;/P&gt;&lt;P&gt;After several data steps and another merge an output correlation is calculated:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc corr data=rates_forcorr out=rates_corr_mtx;
    var infYield&amp;amp;termyears. infYield1 realYield&amp;amp;termyears. realYield1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;These output correlations are required to match desired values.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 14:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591552#M169476</guid>
      <dc:creator>Joe_GM</dc:creator>
      <dc:date>2019-09-25T14:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization in macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591556#M169479</link>
      <description>&lt;P&gt;Well, at the start you asked if anyone has experience with this, and I have to admit I don't have experience with this type of analysis.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 14:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Optimization-in-macro/m-p/591556#M169479</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-25T14:36:32Z</dc:date>
    </item>
  </channel>
</rss>

