<?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 FCMP - How to approximate the internal rate of return? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/282186#M59165</link>
    <description>&lt;P&gt;Thank you! I will try to apply this, and see how far it takes me towards my desired outcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2016 15:55:58 GMT</pubDate>
    <dc:creator>Frieda</dc:creator>
    <dc:date>2016-07-05T15:55:58Z</dc:date>
    <item>
      <title>Proc FCMP - How to approximate the internal rate of return?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/281908#M59145</link>
      <description>&lt;P&gt;Dear All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a project at my university, I like to calculate the internal rate of return for multiple projects. That is, I have data on the "price" of today P, the future monthly Cash flows (CF) for the next 5 years and then a growth assumption for these Cash flows up to infinity. Now, I like to calculate the internal rate of return which discounts the future cash flows to the price of today. I was told its easiest to use proc fcmp for that, but&amp;nbsp;i am not experienced with that...&lt;/P&gt;&lt;P&gt;I uploaded an image of the formula, I need to solve for r - i have data for the rest of the variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd be super thankful if someone could help me, as I am starting to get desperated &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;(I am a SAS newbe, please excuse my unawareness of basic things).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12718i749DE22D0ACA8EF4/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="DCF-formula.JPG" title="DCF-formula.JPG" /&gt;</description>
      <pubDate>Sun, 03 Jul 2016 16:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/281908#M59145</guid>
      <dc:creator>Frieda</dc:creator>
      <dc:date>2016-07-03T16:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FCMP - How to approximate the internal rate of return?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/281911#M59146</link>
      <description>&lt;P&gt;Do not despair! What parameters would you pass to such a function?&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2016 17:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/281911#M59146</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-07-03T17:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FCMP - How to approximate the internal rate of return?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/281947#M59148</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well, I got the price of today and the future cash flow amounts in US dollars. The r is the value that is searched for in decimals.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Frieda&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 06:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/281947#M59148</guid>
      <dc:creator>Frieda</dc:creator>
      <dc:date>2016-07-04T06:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FCMP - How to approximate the internal rate of return?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/282026#M59151</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;First look at&amp;nbsp;&lt;SPAN&gt;Financial functions in&amp;nbsp;SAS Functions and CALL Routines by Category:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p0w6napahk6x0an0z2dzozh2ouzm.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p0w6napahk6x0an0z2dzozh2ouzm.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Your required function might be there. If not...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Your cash flow is quite special, so maybe you really need to use PROC FCMP to solve for r.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is how I would do it:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm starting from the SOLVE Function code examples here:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/68954/HTML/default/viewer.htm#p1xoknqns865t7n1wehj6xarwhdb.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/68954/HTML/default/viewer.htm#p1xoknqns865t7n1wehj6xarwhdb.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="xis-code"&gt;proc fcmp;
      /* define the present value function*/
   function present_value(r, cf1,cf2,cf3,cf4,cf5, cf6_oo);&lt;BR /&gt;      array cfs[6] cf1 cf2 cf3 cf4 cf5 cf6_oo;&lt;BR /&gt; p=0;&lt;BR /&gt; do t=1 to 5;&lt;BR /&gt; p=p + cfs[t]/(1+r)**t + cfs[t+1]/(r*(r+1)**t); /*This is your formula*/&lt;BR /&gt; end;&lt;BR /&gt; return (p);&lt;BR /&gt; endsub;&lt;BR /&gt; function get_r(pv, cf1,cf2,cf3,cf4,cf5, cf6_oo);&lt;BR /&gt; r=solve('present_value', {.}, pv, ., cf1,cf2,cf3,cf4,cf5, cf6_oo);&lt;BR /&gt; return(r);&lt;BR /&gt; endsub;&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt; set have;&lt;BR /&gt; r=get_r(pv, cf1,cf2,cf3,cf4,cf5, cf6_oo);&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;Note, you might need to specify a starting value for r in the solve() functoon call. (See: {.})&lt;/P&gt;
&lt;P&gt;Sorry, I have not run the code - no syntax check at all.&lt;/P&gt;
&lt;P&gt;Hope&amp;nbsp;this helps.&lt;/P&gt;
&lt;P&gt;Greg&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2016 16:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/282026#M59151</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2016-07-04T16:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FCMP - How to approximate the internal rate of return?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/282175#M59163</link>
      <description>&lt;P&gt;You may want to investigate the SAS supplied functions IRR and INIRR or the FINANCE function IRR, MIRR, XIRR options&amp;nbsp;before doing a lot of work unless those don't meet your needs.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 15:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/282175#M59163</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-05T15:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc FCMP - How to approximate the internal rate of return?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/282186#M59165</link>
      <description>&lt;P&gt;Thank you! I will try to apply this, and see how far it takes me towards my desired outcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 15:55:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-FCMP-How-to-approximate-the-internal-rate-of-return/m-p/282186#M59165</guid>
      <dc:creator>Frieda</dc:creator>
      <dc:date>2016-07-05T15:55:58Z</dc:date>
    </item>
  </channel>
</rss>

