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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 258 views
  • 0 likes
  • 2 in conversation