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
;

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