BookmarkSubscribeRSS Feed
koushik
Calcite | Level 5

hello community,

in my question i have two variables. no of runners and the people. could some one tell me how do i create histogram using only these variables and i want people on the X axis and the no of runners on the Y axis. here is how my data looks like and my question has got many rows.

No of runners     people

9                         182624

9                         131906

10                       206702

11                        231925

16                        126903

25                        169032

i am very new to sas.

please suggest. Thanks for your time. Smiley Happy

2 REPLIES 2
Reeza
Super User

Do you need to aggregate your data first?

Because you have multiples on the No of runners so it isn't X axis.

Or do you want a histogram for each variable.

Some procs to look into:

proc univariate - histogram statement.

Proc sgplot - hbar/vbar/hbarparm/vbarparm statements.

References:

http://robslink.com/SAS/democd6/aaaindex.htm

koushik
Calcite | Level 5

hi,

thanks for your support and time. this is help ful.

koushik

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 754 views
  • 3 likes
  • 2 in conversation