BookmarkSubscribeRSS Feed
niconegrin
Calcite | Level 5

It seems it does not recognise "set class; as it does not turn blue...

 

Reeza
Super User

I removed the first line. It was an error introduced by the web editor on here.

Try it again.

niconegrin
Calcite | Level 5

thanks

Ksharp
Super User

Do you like to use proc sgplot ?

 

data class;
set sashelp.class;
if name='Alfred' then weight=200;
if name='Robert' then weight=500;
if  name='Alice' then weight=20;
run;
proc sgplot data=class;
vbox weight/category=sex datalabel;
run;
niconegrin
Calcite | Level 5
I am just learning SAS
Reeza
Super User

Welcome to SAS, if you have further questions please feel free to ask.

 

This question appears answered, please mark the appropriate answer correct. BallardW solution was the correct answer. 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 20 replies
  • 11006 views
  • 2 likes
  • 5 in conversation