Statistical programming, matrix languages, and more

Partial Sum

Accepted Solution Solved
Reply
New Contributor
Posts: 4
Accepted Solution

Partial Sum

Hi Rick

I want to find the partial sum of a process ut . The partial sum is defined as :

St=∑ uj

Lower bound for series : j=1

Upper bound for series : t

t= 1,2,...,300

I have no idea how to do this in Proc Iml.


Best Regards


Accepted Solutions
Solution
‎05-24-2014 10:10 AM
SAS Super FREQ
Posts: 3,406

Re: Partial Sum

Half the battle (and fun!) of programming is reading the doc and trying out ideas to see what works.  Give it a try; it's the best way to learn.  You might also want to investigate the colon operator (Smiley Happy.

If you are new to SAS/IL, try these tips for beginners.

View solution in original post


All Replies
SAS Super FREQ
Posts: 3,406

Re: Partial Sum

Please direct your questions to the list.

I think the CUSUM function does what you want.

New Contributor
Posts: 4

Re: Partial Sum

I am new to IMl , so i have no idea how to use that function .Can you write the whole program for me if it is possible ?

Regards

Solution
‎05-24-2014 10:10 AM
SAS Super FREQ
Posts: 3,406

Re: Partial Sum

Half the battle (and fun!) of programming is reading the doc and trying out ideas to see what works.  Give it a try; it's the best way to learn.  You might also want to investigate the colon operator (Smiley Happy.

If you are new to SAS/IL, try these tips for beginners.

New Contributor
Posts: 4

Re: Partial Sum

Dear Rick

Thank you very much for your assist. I get the answer. I also want to thank you for your encouragement . I think i am getting more interested in IML by doing solving this problem myself and with your excellent function.

Best Regards

Hossein

SAS Super FREQ
Posts: 3,406

Re: Partial Sum

Hurray! Congratulations.  Well done!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 484 views
  • 3 likes
  • 2 in conversation