BookmarkSubscribeRSS Feed
Ronein
Meteorite | Level 14

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

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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