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

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 656 views
  • 0 likes
  • 2 in conversation