<?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: Calculate Cumulative release in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Calculate-Cumulative-release/m-p/267619#M2729</link>
    <description>&lt;P&gt;Are the values of the Ci also in a data set? Or have you already computed "sum of Ci"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You posted this to the SAS/IML Support Community, so I will provide a SAS/IML solution. (You can also do this with the SAS data step.)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* make up sample data */
data Coefs;
input Cn V S A;
datalines;
0.1  4  6 16
;
data Ci;
input C;
datalines;
0.01 0.02 0.03 0.04 0.05 0.06
;

proc iml;
/* read data */
use Coefs;
read all var {Cn V S A};
use Ci;
read all var {C};

/* compute Q */
Q = Cn*V + sum(C)*S / A;
print Q;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 02 May 2016 14:40:39 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-05-02T14:40:39Z</dc:date>
    <item>
      <title>Calculate Cumulative release</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Calculate-Cumulative-release/m-p/267607#M2727</link>
      <description>&lt;P&gt;I wanted to calculate value of Q (Please find formula in the attacheed). I have values of Cn, V, S and A in a dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can somepne from community help me in achieving this. Also, I am new to SAS and has no experience with it. I really appreciate a stepwise procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2016 13:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Calculate-Cumulative-release/m-p/267607#M2727</guid>
      <dc:creator>DShah</dc:creator>
      <dc:date>2016-05-02T13:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Cumulative release</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Calculate-Cumulative-release/m-p/267619#M2729</link>
      <description>&lt;P&gt;Are the values of the Ci also in a data set? Or have you already computed "sum of Ci"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You posted this to the SAS/IML Support Community, so I will provide a SAS/IML solution. (You can also do this with the SAS data step.)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* make up sample data */
data Coefs;
input Cn V S A;
datalines;
0.1  4  6 16
;
data Ci;
input C;
datalines;
0.01 0.02 0.03 0.04 0.05 0.06
;

proc iml;
/* read data */
use Coefs;
read all var {Cn V S A};
use Ci;
read all var {C};

/* compute Q */
Q = Cn*V + sum(C)*S / A;
print Q;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 May 2016 14:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Calculate-Cumulative-release/m-p/267619#M2729</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-05-02T14:40:39Z</dc:date>
    </item>
  </channel>
</rss>

