BookmarkSubscribeRSS Feed
GS2
Obsidian | Level 7 GS2
Obsidian | Level 7

Using SAS 9.4

I am running the following code:

 

proc sgplot data = pt.eligible ;
vbar impingment_point_cat;
run;

 

I have impingment_point as a numeric variable and impingment_point_cat as a character variable. I would like to add a cumulative percentage line in the graph just to show the percentage across the graph. Does anyone know an easy way to do this? Thank you

2 REPLIES 2
PeterClemmensen
Tourmaline | Level 20

Can you show us a representable sample of your data?

 

Makes it easier to provide a usable code answer 🙂

GS2
Obsidian | Level 7 GS2
Obsidian | Level 7
data have;
infile datalines delimiter=',';
input impingment_point impingment_point_cat $;
datalines;
100, 100-119
40, 40-59
60, 60-79
110, 100-119
133, 120-139
85, 80-99
;
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
  • 2 replies
  • 1198 views
  • 0 likes
  • 2 in conversation