BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

Hello

I want to ask please what exactly this transformation do?

convert X=Cum_X/transformout=(cusum 5);

I am trying to understand the calculation but didn't understand the calculated values.

May anyone help please to understand the calculation of the cumulative sum?


data have;
input  X;
cards;
0
3
0
1
0
0
5
0
0
0
1
1
2
;
run;


proc expand data=have out=want method=none;
convert X=Cum_X/transformout=(cusum 5);
Run;

1 REPLY 1
PaigeMiller
Diamond | Level 26

Show us the output you get. Explain exactly what parts of the output you do not understand.

--
Paige Miller

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 616 views
  • 0 likes
  • 2 in conversation