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
;

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