<?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 Generate an index value used in Calculating Predicted values in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generate-an-index-value-used-in-Calculating-Predicted-values/m-p/739410#M38775</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to calculated predicted PD for year 2015, 2016 and 2017 for Bucket1, Bucket2, Bucket3 and Bucket4 using a Z_score and an Index value. This Index value is a random value. The index value is to be generated such that, when we calculate predicted PD for each year then the sum square error of Predicted Pd and Actual PD shoud be minimum.&lt;/P&gt;&lt;P&gt;I am able to do this in Excel using Run solver, and proc optmodel is an equivalent for this. But I am not able to use proc opt model in SAS EG.&lt;/P&gt;&lt;P&gt;Attached is the Input table and desired output table in excel file attached:&lt;/P&gt;&lt;P&gt;Table 1: Need to use Z Score from this&lt;/P&gt;&lt;P&gt;Table 2: Bucket-wise Actual PD for each year&lt;/P&gt;&lt;P&gt;Table 3: Highlighted yellow values are index values generated, and used in calculating predicted values&lt;/P&gt;&lt;P&gt;Table 4: Min sum of squares between actual and predicted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help with this, as I am in urgent need to perform this calculation in SAS.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 07:30:28 GMT</pubDate>
    <dc:creator>Satyakshma</dc:creator>
    <dc:date>2021-05-06T07:30:28Z</dc:date>
    <item>
      <title>Generate an index value used in Calculating Predicted values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generate-an-index-value-used-in-Calculating-Predicted-values/m-p/739410#M38775</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to calculated predicted PD for year 2015, 2016 and 2017 for Bucket1, Bucket2, Bucket3 and Bucket4 using a Z_score and an Index value. This Index value is a random value. The index value is to be generated such that, when we calculate predicted PD for each year then the sum square error of Predicted Pd and Actual PD shoud be minimum.&lt;/P&gt;&lt;P&gt;I am able to do this in Excel using Run solver, and proc optmodel is an equivalent for this. But I am not able to use proc opt model in SAS EG.&lt;/P&gt;&lt;P&gt;Attached is the Input table and desired output table in excel file attached:&lt;/P&gt;&lt;P&gt;Table 1: Need to use Z Score from this&lt;/P&gt;&lt;P&gt;Table 2: Bucket-wise Actual PD for each year&lt;/P&gt;&lt;P&gt;Table 3: Highlighted yellow values are index values generated, and used in calculating predicted values&lt;/P&gt;&lt;P&gt;Table 4: Min sum of squares between actual and predicted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help with this, as I am in urgent need to perform this calculation in SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 07:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generate-an-index-value-used-in-Calculating-Predicted-values/m-p/739410#M38775</guid>
      <dc:creator>Satyakshma</dc:creator>
      <dc:date>2021-05-06T07:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Generate an index value used in Calculating Predicted values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generate-an-index-value-used-in-Calculating-Predicted-values/m-p/739433#M38776</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume you are running SAS 9.4 (Maintenance Level 'something') in SAS Enterprise Guide.&lt;/P&gt;
&lt;P&gt;Find out by running:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%PUT &amp;amp;=sysvlong;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do you have the Operational Research module of SAS (SAS/OR)?&lt;/P&gt;
&lt;P&gt;Find out by submitting:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc setinit; run;
proc product_status; run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you have SAS/OR there's no reason why you couldn't use it in SAS/EG (but you will not find a 'wizard' for it, it needs to be a program).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone with superpowers move this thread to the Analytics &amp;gt; 'Mathematical Optimization, Discrete-Event Simulation, and OR' board?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 09:31:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generate-an-index-value-used-in-Calculating-Predicted-values/m-p/739433#M38776</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-05-06T09:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Generate an index value used in Calculating Predicted values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generate-an-index-value-used-in-Calculating-Predicted-values/m-p/763839#M39402</link>
      <description>I don't have SAS/OR licensed. Is there other way I can create code for above problem using loops or arrays.</description>
      <pubDate>Wed, 25 Aug 2021 13:56:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generate-an-index-value-used-in-Calculating-Predicted-values/m-p/763839#M39402</guid>
      <dc:creator>Satyakshma</dc:creator>
      <dc:date>2021-08-25T13:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Generate an index value used in Calculating Predicted values</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generate-an-index-value-used-in-Calculating-Predicted-values/m-p/763917#M39403</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Optimization can be done with SAS/OR (a.o. PROC OPTMODEL) but also with SAS/IML (PROC IML).&lt;/P&gt;
&lt;P&gt;Do you have SAS/IML (IML = Interactive Matrix Language)?&lt;/P&gt;
&lt;P&gt;I think some intelligent use of loops and arrays can probably be used as well, but I do not have time to write that for you. I am sorry.&lt;/P&gt;
&lt;P&gt;You can give it a try and if you are stuck, start a new topic (so that everybody can help, and not just me).&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 17:04:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Generate-an-index-value-used-in-Calculating-Predicted-values/m-p/763917#M39403</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-08-25T17:04:29Z</dc:date>
    </item>
  </channel>
</rss>

